class: DataSrc

public class: DataSrc
Author:
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 6.12.2005 14:48:29; Modified: 11.12.2005 2:53:02;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {E0BA1B2B-BBA1-4941-B1D1-8DA0F0AA6FEC}
obtain a new unique table name for not read only table and attach to existing temp table in read only case

 

Goto: Fields, Methods

See also: DataSrcEx, DBDataAdmin, TableInstance, BP_Visualiss, MBAForm

Appears in: Versions

Connections
 
DataSrc Attributes
Attribute Details
protected bool
  readOnly
Notes: is read only

protected DBDataAdmin
  dbAdmin
Notes: reference to DMDataAdmin

protected TableInstance
  ti
Notes: instance of TableInstance class

protected bool
  tableIsOpen
Notes: table is is open for reading GetRow() method

protected OdbcConnection
  tConnection
Notes: Connection associated with received table instance

protected OdbcDataReader
  MyDataReader
Notes: specific DataReader instance for reading with GetRow() method

protected OdbcCommand
  MyCommand
Notes: command set to valid connection

private bool
  failed
Notes: Validity of this object

 
DataSrc Methods
Operation Details
public
DataSrc(
   TableInstance tInst,
   bool ro,
   DBDataAdmin dbAdmin):
Notes: Constructor
public
DataSrc(
   ColumnsInfo csi,
   DBDataAdmin dbAdmin):
Notes: Create new temporary table for update according Columns Info. This DataSrc table is implicit updatable. This DataSrc table will be destroy at Dispose method processing.
public
DataSrc(
   DataSrc dsrc):
Notes: Copy constructor
private
Freeze():bool
Tags: virtual=true
Notes: Show dialog and save data from tmp_table into user specific table

@returns true if success
public
ReadOnly():bool
<<property>>
Notes: Table is read only
public
Table():Table
<<property>>
Notes: Reference to table object
public
VersionId():int
<<property>>
Notes: Version Id
public
OdbcComm():OdbcCommand
<<property>>
Notes: Create new OdbcCommand object
public
Connection():OdbcConnection
<<property>>
Notes: Odbc Connection associated to DataSrc object
protected
TableOpen():bool
Notes: Open table and prepare for data reading.

@returns true if table is open
public
TableClose():void
Notes: Close table
public
GetRow():object
Notes: Return one row as object[].

@returns All row as object[]
public
ResetRead():bool
Notes: Init read from table. Next call GetRow() return the first of row.

@returns true if succeed
public
NumberOfRows():int
<<property>>
Notes: Number of rows in table
public
Dispose():void
Notes: Remove one instance.
public
IsOK():bool
<<property>>
Notes: Validity of this object