class: TableInstance

public class: TableInstance
Author:
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 6.12.2005 14:48:30; Modified: 6.12.2005 14:55:10;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {C7A2CC03-D4DE-4fd4-A478-74F5D15AA6BF}
 

Goto: Fields, Methods

See also: Table, DBDataAdmin, Freeze, Version, DataSrc

Appears in: Versions

Connections
 
TableInstance Attributes
Attribute Details
protected Table
  table
Notes: information about table name and connection

protected int
  tableId
Notes: ID table instance

protected bool
  isTmpTable
Notes: if table is temporary (derived from other version or is a copy of original table)

protected bool
  readOnly
Notes: if table is read only

private static int
  instId
Initial: 1
Notes: authority, which give instance id

protected OdbcConnection
  myConn
Notes: connection associated with connection

private DBDataAdmin
  dbAdmin
Notes: Reference to data admin

protected int
  numberOfInstances
Notes: number of instances (if table is read only, then may be shared)

private int
  versionId
Notes: version ID, in which is

 
TableInstance Methods
Operation Details
public
TableInstance(
   DBDataAdmin dbAdmin,
   Table table,
   bool isTmpTable,
   bool readOnly,
   int versionId):
Notes: Create table instance. Table name is specified in table (if null then new table is created).
public
Drop(
   bool finalDrop):bool
Notes: Drop this table instance if SessionStatus is in {ToDeleteAll, ToDeleteWithoutVers, DeleteOneVersion}

@returns true if succeed
public
Table():Table
<<property>>
Notes: Table for this instance
public
NumberOfInstances():int
<<property>>
Notes: Number of instances associated table
public
TableId():int
<<property>>
Notes: Uniquie Id for each table instance
public
IsTmpTable():bool
<<property>>
Notes: If table is temporary
public
ReadOnly():bool
<<property>>
Notes: If table is read only
public
VersionId():int
<<property>>
Notes: Version Id instance belong to