DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Attributes | List of all members
Deveel.Data.Sql.Tables.ReferenceTable Class Reference
Inheritance diagram for Deveel.Data.Sql.Tables.ReferenceTable:
Deveel.Data.Sql.Tables.FilterTable Deveel.Data.Sql.Tables.IRootTable Deveel.Data.Sql.Tables.Table Deveel.Data.Sql.Tables.ITable Deveel.Data.Sql.Tables.IQueryTable Deveel.Data.Transactions.ILockable Deveel.Data.Sql.IDbObject Deveel.Data.Sql.Tables.ITable Deveel.Data.Sql.IDbObject

Public Member Functions

 ReferenceTable (ITable parent, ObjectName tableName)
 
 ReferenceTable (ITable parent, TableInfo tableInfo)
 
bool TypeEquals (IRootTable other)
 
- Public Member Functions inherited from Deveel.Data.Sql.Tables.FilterTable
 FilterTable (ITable parent)
 
override IEnumerator< RowGetEnumerator ()
 
override void Lock ()
 
override void Release ()
 
override DataObject GetValue (long rowNumber, int columnOffset)
 Gets a single cell within the table that is located at the given column offset and row. More...
 
- Public Member Functions inherited from Deveel.Data.Sql.Tables.Table
void Dispose ()
 
ColumnIndex GetIndex (int columnOffset)
 Gets an index for given column that can be used to select values from this table. More...
 

Protected Member Functions

override int IndexOfColumn (ObjectName columnName)
 
override ObjectName GetResolvedColumnName (int column)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Tables.FilterTable
override RawTableInfo GetRawTableInfo (RawTableInfo rootInfo)
 
override ColumnIndex GetIndex (int column, int originalColumn, ITable table)
 
override IEnumerable< int > ResolveRows (int column, IEnumerable< int > rowSet, ITable ancestor)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Tables.Table
virtual void Dispose (bool disposing)
 
virtual void OnLockAcquired (Lock @lock)
 
virtual void OnLockReleased (Lock @lock)
 
int FindColumn (ObjectName columnName)
 

Properties

ObjectName TableName [get, private set]
 
override TableInfo TableInfo [get]
 
- Properties inherited from Deveel.Data.Sql.Tables.FilterTable
ITable Parent [get, private set]
 
override IContext Context [get]
 
override TableInfo TableInfo [get]
 
override int RowCount [get]
 
- Properties inherited from Deveel.Data.Sql.Tables.Table
abstract IContext Context [get]
 
abstract TableInfo TableInfo [get]
 
bool IsLocked [get, private set]
 
object ILockable. RefId [get]
 
int IQueryTable. ColumnCount [get]
 
virtual int ColumnCount [get]
 
abstract int RowCount [get]
 
ObjectName FullName [get]
 
DbObjectType IDbObject. ObjectType [get]
 
- Properties inherited from Deveel.Data.Sql.Tables.IQueryTable
int ColumnCount [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...
 
- Properties inherited from Deveel.Data.Transactions.ILockable
object RefId [get]
 

Private Attributes

readonly TableInfo tableInfo
 

Detailed Description

Definition at line 20 of file ReferenceTable.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Tables.ReferenceTable.ReferenceTable ( ITable  parent,
ObjectName  tableName 
)
inline

Definition at line 23 of file ReferenceTable.cs.

24  : this(parent, parent.TableInfo.Alias(tableName)) {
25  }
Deveel.Data.Sql.Tables.ReferenceTable.ReferenceTable ( ITable  parent,
TableInfo  tableInfo 
)
inline

Definition at line 27 of file ReferenceTable.cs.

28  : base(parent) {
30  this.tableInfo = tableInfo;
31  }
ObjectName TableName
Gets the fully qualified name of the table that is ensured to be unique within the system...
Definition: TableInfo.cs:97

Member Function Documentation

override ObjectName Deveel.Data.Sql.Tables.ReferenceTable.GetResolvedColumnName ( int  column)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Tables.FilterTable.

Definition at line 47 of file ReferenceTable.cs.

47  {
48  return new ObjectName(TableName, tableInfo[column].ColumnName);
49  }
override int Deveel.Data.Sql.Tables.ReferenceTable.IndexOfColumn ( ObjectName  columnName)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Tables.Table.

Definition at line 39 of file ReferenceTable.cs.

39  {
40  var tableName = columnName.Parent;
41  if (tableName != null && tableName.Equals(TableName))
42  return TableInfo.IndexOfColumn(columnName.Name);
43 
44  return -1;
45  }
int IndexOfColumn(string columnName)
Gets the offset of the column with the given name.
Definition: TableInfo.cs:310
bool Deveel.Data.Sql.Tables.ReferenceTable.TypeEquals ( IRootTable  other)
inline

Implements Deveel.Data.Sql.Tables.IRootTable.

Definition at line 51 of file ReferenceTable.cs.

51  {
52  return other == this;
53  }

Member Data Documentation

readonly TableInfo Deveel.Data.Sql.Tables.ReferenceTable.tableInfo
private

Definition at line 21 of file ReferenceTable.cs.

Property Documentation

override TableInfo Deveel.Data.Sql.Tables.ReferenceTable.TableInfo
get

Definition at line 35 of file ReferenceTable.cs.

ObjectName Deveel.Data.Sql.Tables.ReferenceTable.TableName
getprivate set

Definition at line 33 of file ReferenceTable.cs.


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