DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.SystemSchema.ProductInfoTable Class Reference
Inheritance diagram for Deveel.Data.SystemSchema.ProductInfoTable:
Deveel.Data.Sql.Tables.GeneratedTable Deveel.Data.Sql.Tables.ITable Deveel.Data.Sql.IDbObject

Public Member Functions

 ProductInfoTable (ITransaction transaction)
 
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.GeneratedTable
IEnumerator< RowGetEnumerator ()
 
virtual ColumnIndex GetIndex (int columnOffset)
 Gets an index for given column that can be used to select values from this table. More...
 
void Dispose ()
 

Properties

override TableInfo TableInfo [get]
 
override int RowCount [get]
 
- Properties inherited from Deveel.Data.Sql.Tables.GeneratedTable
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

void Init ()
 

Private Attributes

List< ISqlStringkeyValuePairs
 

Additional Inherited Members

- Protected Member Functions inherited from Deveel.Data.Sql.Tables.GeneratedTable
 GeneratedTable (IContext dbContext)
 
DataObject GetColumnValue (int column, ISqlObject obj)
 
virtual void Dispose (bool disposing)
 

Detailed Description

Definition at line 800 of file SystemSchema.cs.

Constructor & Destructor Documentation

Deveel.Data.SystemSchema.ProductInfoTable.ProductInfoTable ( ITransaction  transaction)
inline

Definition at line 803 of file SystemSchema.cs.

804  : base(transaction.Database.Context) {
805  Init();
806  }
IDatabase Database
Gets the database this transaction belongs to.
Definition: ITransaction.cs:48
new IDatabaseContext Context
Gets the context that contains this database.
Definition: IDatabase.cs:50

Member Function Documentation

override DataObject Deveel.Data.SystemSchema.ProductInfoTable.GetValue ( long  rowNumber,
int  columnOffset 
)
inlinevirtual

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.GeneratedTable.

Definition at line 838 of file SystemSchema.cs.

838  {
839  switch (columnOffset) {
840  case 0: // var
841  return GetColumnValue(columnOffset, keyValuePairs[(int)rowNumber * 2]);
842  case 1: // value
843  return GetColumnValue(columnOffset, keyValuePairs[(int)(rowNumber * 2) + 1]);
844  default:
845  throw new ArgumentOutOfRangeException("columnOffset");
846  }
847  }
DataObject GetColumnValue(int column, ISqlObject obj)
void Deveel.Data.SystemSchema.ProductInfoTable.Init ( )
inlineprivate

Definition at line 816 of file SystemSchema.cs.

816  {
817  keyValuePairs = new List<ISqlString>();
818 
819  var productInfo = ProductInfo.Current;
820 
821  // Set up the product variables.
822  keyValuePairs.Add(new SqlString("title"));
823  keyValuePairs.Add(new SqlString(productInfo.Title));
824 
825  keyValuePairs.Add(new SqlString("version"));
826  keyValuePairs.Add(new SqlString(productInfo.Version.ToString()));
827 
828  keyValuePairs.Add(new SqlString("copyright"));
829  keyValuePairs.Add(new SqlString(productInfo.Copyright));
830 
831  keyValuePairs.Add(new SqlString("description"));
832  keyValuePairs.Add(new SqlString(productInfo.Description));
833 
834  keyValuePairs.Add(new SqlString("company"));
835  keyValuePairs.Add(new SqlString(productInfo.Company));
836  }
Deveel.Data.Sql.Objects.SqlString SqlString
Definition: DataObject.cs:27
static ProductInfo Current
Definition: ProductInfo.cs:31

Member Data Documentation

List<ISqlString> Deveel.Data.SystemSchema.ProductInfoTable.keyValuePairs
private

Definition at line 801 of file SystemSchema.cs.

Property Documentation

override int Deveel.Data.SystemSchema.ProductInfoTable.RowCount
get

Definition at line 812 of file SystemSchema.cs.

override TableInfo Deveel.Data.SystemSchema.ProductInfoTable.TableInfo
get

Definition at line 808 of file SystemSchema.cs.


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