DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.Tables.GeneratedTable Class Referenceabstract
Inheritance diagram for Deveel.Data.Sql.Tables.GeneratedTable:
Deveel.Data.Sql.Tables.ITable Deveel.Data.Sql.IDbObject Deveel.Data.Routines.RoutineManager.RoutinesTableContainer.RoutineTable Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable Deveel.Data.Sql.Triggers.TriggerManager.TriggersTableContainer.TriggerTable Deveel.Data.SystemSchema.OpenSessionsTable Deveel.Data.SystemSchema.PrivilegesTable Deveel.Data.SystemSchema.ProductInfoTable Deveel.Data.SystemSchema.SessionInfoTable Deveel.Data.SystemSchema.SqlTypesTable Deveel.Data.SystemSchema.StatisticsTable Deveel.Data.SystemSchema.TableColumnsTable Deveel.Data.SystemSchema.TableInfoTable Deveel.Data.SystemSchema.VariablesTable Deveel.Data.Transactions.Transaction.OldAndNewTableContainer.TriggeredOldNew

Public Member Functions

IEnumerator< RowGetEnumerator ()
 
abstract DataObject GetValue (long rowNumber, int columnOffset)
 Gets a single cell within the table that is located at the given column offset and row. More...
 
virtual ColumnIndex GetIndex (int columnOffset)
 Gets an index for given column that can be used to select values from this table. More...
 
void Dispose ()
 

Protected Member Functions

 GeneratedTable (IContext dbContext)
 
DataObject GetColumnValue (int column, ISqlObject obj)
 
virtual void Dispose (bool disposing)
 

Properties

IContext Context [get, private set]
 
ObjectName IDbObject. FullName [get]
 
DbObjectType IDbObject. ObjectType [get]
 
abstract TableInfo TableInfo [get]
 
abstract int RowCount [get]
 
- Properties inherited from Deveel.Data.Sql.Tables.ITable
IContext Context [get]
 
TableInfo TableInfo [get]
 Gets the metadata information of the table, used to resolve the column sources. More...
 
int RowCount [get]
 Gets the total number of rows in the table. More...
 
- Properties inherited from Deveel.Data.Sql.IDbObject
ObjectName FullName [get]
 Gets the fully qualified name of the object used to resolve it uniquely within the database. More...
 
DbObjectType ObjectType [get]
 Gets the type of database object that the implementation is for More...
 

Private Member Functions

 ~GeneratedTable ()
 
IEnumerator IEnumerable. GetEnumerator ()
 

Detailed Description

Definition at line 25 of file GeneratedTable.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Tables.GeneratedTable.GeneratedTable ( IContext  dbContext)
inlineprotected

Definition at line 26 of file GeneratedTable.cs.

26  {
27  Context = dbContext;
28  }
Deveel.Data.Sql.Tables.GeneratedTable.~GeneratedTable ( )
inlineprivate

Definition at line 30 of file GeneratedTable.cs.

30  {
31  Dispose(false);
32  }

Member Function Documentation

void Deveel.Data.Sql.Tables.GeneratedTable.Dispose ( )
inline

Definition at line 67 of file GeneratedTable.cs.

67  {
68  Dispose(true);
69  GC.SuppressFinalize(this);
70  }
virtual void Deveel.Data.Sql.Tables.GeneratedTable.Dispose ( bool  disposing)
inlineprotectedvirtual
DataObject Deveel.Data.Sql.Tables.GeneratedTable.GetColumnValue ( int  column,
ISqlObject  obj 
)
inlineprotected

Definition at line 62 of file GeneratedTable.cs.

62  {
63  var type = TableInfo[column].ColumnType;
64  return new DataObject(type, obj);
65  }
IEnumerator<Row> Deveel.Data.Sql.Tables.GeneratedTable.GetEnumerator ( )
inline

Definition at line 44 of file GeneratedTable.cs.

44  {
45  return new SimpleRowEnumerator(this);
46  }
IEnumerator IEnumerable. Deveel.Data.Sql.Tables.GeneratedTable.GetEnumerator ( )
inlineprivate

Definition at line 48 of file GeneratedTable.cs.

48  {
49  return GetEnumerator();
50  }
virtual ColumnIndex Deveel.Data.Sql.Tables.GeneratedTable.GetIndex ( int  columnOffset)
inlinevirtual

Gets an index for given column that can be used to select values from this table.

Parameters
columnOffsetThe zero-based offset of the column which to get the index.
Returns
Returns an instance of ColumnIndex that is used to select a subset of rows from the table.

Implements Deveel.Data.Sql.Tables.ITable.

Definition at line 58 of file GeneratedTable.cs.

58  {
59  return new BlindSearchIndex(this, columnOffset);
60  }
abstract DataObject Deveel.Data.Sql.Tables.GeneratedTable.GetValue ( long  rowNumber,
int  columnOffset 
)
pure virtual

Gets a single cell within the table that is located at the given column offset and row.

Parameters
rowNumberThe unique number of the row where the cell is located.
columnOffsetThe zero-based offset of the column of the cell to return.
Returns
Returns an instance of DataObject that is contained in the cell located by the row and column coordinates provided.
Exceptions
ArgumentOutOfRangeExceptionIf the given columnOffset is less than zero or greater or equal than the number of columns defined in the table metadata.
See also
Tables.TableInfo.IndexOfColumn(string)

Implements Deveel.Data.Sql.Tables.ITable.

Implemented in Deveel.Data.SystemSchema.StatisticsTable, Deveel.Data.SystemSchema.SessionInfoTable, Deveel.Data.SystemSchema.PrivilegesTable, Deveel.Data.SystemSchema.VariablesTable, Deveel.Data.SystemSchema.ProductInfoTable, Deveel.Data.SystemSchema.OpenSessionsTable, Deveel.Data.SystemSchema.SqlTypesTable, Deveel.Data.SystemSchema.TableColumnsTable, Deveel.Data.SystemSchema.TableInfoTable, Deveel.Data.Transactions.Transaction.OldAndNewTableContainer.TriggeredOldNew, Deveel.Data.Sql.Triggers.TriggerManager.TriggersTableContainer.TriggerTable, Deveel.Data.Routines.RoutineManager.RoutinesTableContainer.RoutineTable, and Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.

Property Documentation

IContext Deveel.Data.Sql.Tables.GeneratedTable.Context
getprivate set

Definition at line 34 of file GeneratedTable.cs.

ObjectName IDbObject. Deveel.Data.Sql.Tables.GeneratedTable.FullName
getprivate

Definition at line 36 of file GeneratedTable.cs.

DbObjectType IDbObject. Deveel.Data.Sql.Tables.GeneratedTable.ObjectType
getprivate

Definition at line 40 of file GeneratedTable.cs.

abstract int Deveel.Data.Sql.Tables.GeneratedTable.RowCount
get

Definition at line 54 of file GeneratedTable.cs.

abstract TableInfo Deveel.Data.Sql.Tables.GeneratedTable.TableInfo
get

Definition at line 52 of file GeneratedTable.cs.


The documentation for this class was generated from the following file: