DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Public Member Functions | |
TriggeredOldNew (IDatabaseContext dbContext, TableInfo tableInfo) | |
void | SetData (Row row) |
void | SetReadOnly (bool flag) |
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... | |
RowId | AddRow (Row row) |
Persists a new row to the table. More... | |
void | UpdateRow (Row row) |
Updates the values of a row into the table. More... | |
bool | RemoveRow (RowId rowId) |
Deletes row identified by the given coordinates from the table. More... | |
void | FlushIndexes () |
Flushes all changes made on this table to the backing index scheme. More... | |
void | AssertConstraints () |
Performs all constraint integrity checks and actions to any modifications based on any changes that happened to the table since that last call to this method. More... | |
void | AddLock () |
void | RemoveLock () |
Public Member Functions inherited from Deveel.Data.Sql.Tables.GeneratedTable | |
IEnumerator< Row > | GetEnumerator () |
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] |
TableEventRegistry | EventRegistry [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... | |
Properties inherited from Deveel.Data.Sql.Tables.IMutableTable | |
TableEventRegistry | EventRegistry [get] |
Private Attributes | |
readonly TableInfo | tableInfo |
Row | data |
bool | readOnly |
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) |
Definition at line 433 of file Transaction.cs.
|
inline |
Definition at line 438 of file Transaction.cs.
|
inline |
Implements Deveel.Data.Sql.Tables.IMutableTable.
Definition at line 497 of file Transaction.cs.
|
inline |
Persists a new row to the table.
The row to be added must belong to the table context, otherwise an exception will be thrown.
row | The row to be persisted. |
ArgumentException | If the gven row does not belong to the table context. |
ArgumentNullException | If the given row is null . |
Implements Deveel.Data.Sql.Tables.IMutableTable.
Definition at line 470 of file Transaction.cs.
|
inline |
Performs all constraint integrity checks and actions to any modifications based on any changes that happened to the table since that last call to this method.
It is important that is called after any call to AddRow, RemoveRow or UpdateRow.
Any constraints that are marked as ConstraintDeferrability.InitiallyImmediate are checked when this is called, otherwise the constraint is checked at commit time.
Any referential actions are performed when this method is called. If a referential action causes a modification to another table, this method is recursively called on the table modified.
If a referential integrity constraint is violated and a referential action is unable to maintain the integrity of the database, any changes made to the table are reverted.
Implements Deveel.Data.Sql.Tables.IMutableTable.
Definition at line 494 of file Transaction.cs.
|
inline |
Flushes all changes made on this table to the backing index scheme.
This is used during the commit phase of this objects lifetime. The transaction control mechanism has found that there are no clashes and now we need to commit the current table view to the conglomerate. Because this object may not update index information immediately, we call this to flush all the changes to the table to the backing index set.
When this method returns, the backing index-set of this view will be completely up to date.
Implements Deveel.Data.Sql.Tables.IMutableTable.
Definition at line 491 of file Transaction.cs.
|
inlinevirtual |
Gets a single cell within the table that is located at the given column offset and row.
rowNumber | The unique number of the row where the cell is located. |
columnOffset | The zero-based offset of the column of the cell to return. |
ArgumentOutOfRangeException | If the given columnOffset is less than zero or greater or equal than the number of columns defined in the table metadata. |
Implements Deveel.Data.Sql.Tables.GeneratedTable.
Definition at line 459 of file Transaction.cs.
|
inline |
Implements Deveel.Data.Sql.Tables.IMutableTable.
Definition at line 500 of file Transaction.cs.
|
inline |
Deletes row identified by the given coordinates from the table.
rowId | The unique identifier of the row to be removed. |
true
if the row identified was found and removed, false
otherwise. ArgumentException | Thrown if the given rowId does not belong to this table. |
Implements Deveel.Data.Sql.Tables.IMutableTable.
Definition at line 487 of file Transaction.cs.
|
inline |
Definition at line 451 of file Transaction.cs.
|
inline |
Definition at line 455 of file Transaction.cs.
|
inline |
Updates the values of a row into the table.
row | The object containing the values to update. |
ArgumentNullException | If the given row is null . |
Implements Deveel.Data.Sql.Tables.IMutableTable.
Definition at line 474 of file Transaction.cs.
|
private |
Definition at line 435 of file Transaction.cs.
|
private |
Definition at line 436 of file Transaction.cs.
|
private |
Definition at line 434 of file Transaction.cs.
|
get |
Definition at line 466 of file Transaction.cs.
|
get |
Definition at line 447 of file Transaction.cs.
|
get |
Definition at line 443 of file Transaction.cs.