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

Public Member Functions

 SequenceTable (IDatabaseContext dbContext, TableInfo tableInfo)
 
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]
 
DataObject TopValue [get, set]
 
DataObject LastValue [get, set]
 
DataObject CurrentValue [get, set]
 
DataObject Increment [get, set]
 
DataObject MinValue [get, set]
 
DataObject MaxValue [get, set]
 
DataObject Start [get, set]
 
DataObject Cache [get, set]
 
DataObject Cycle [get, set]
 
- 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 Attributes

readonly TableInfo tableInfo
 

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 273 of file SequenceManager.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.SequenceTable ( IDatabaseContext  dbContext,
TableInfo  tableInfo 
)
inline

Definition at line 276 of file SequenceManager.cs.

277  : base(dbContext) {
278  this.tableInfo = tableInfo;
279  }

Member Function Documentation

override DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.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 307 of file SequenceManager.cs.

307  {
308  if (rowNumber != 0)
309  throw new ArgumentOutOfRangeException("rowNumber");
310 
311  switch (columnOffset) {
312  case 0:
313  return LastValue;
314  case 1:
315  return CurrentValue;
316  case 2:
317  return TopValue;
318  case 3:
319  return Increment;
320  case 4:
321  return MinValue;
322  case 5:
323  return MaxValue;
324  case 6:
325  return Start;
326  case 7:
327  return Cache;
328  case 8:
329  return Cycle;
330  default:
331  throw new ArgumentOutOfRangeException("columnOffset");
332  }
333  }

Member Data Documentation

readonly TableInfo Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.tableInfo
private

Definition at line 274 of file SequenceManager.cs.

Property Documentation

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.Cache
getset

Definition at line 303 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.CurrentValue
getset

Definition at line 293 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.Cycle
getset

Definition at line 305 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.Increment
getset

Definition at line 295 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.LastValue
getset

Definition at line 291 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.MaxValue
getset

Definition at line 299 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.MinValue
getset

Definition at line 297 of file SequenceManager.cs.

override int Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.RowCount
get

Definition at line 285 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.Start
getset

Definition at line 301 of file SequenceManager.cs.

override TableInfo Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.TableInfo
get

Definition at line 281 of file SequenceManager.cs.

DataObject Deveel.Data.Sql.Sequences.SequenceManager.SequenceTable.TopValue
getset

Definition at line 289 of file SequenceManager.cs.


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