DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
A single row in a table of a database. More...
Classes | |
class | RowVariableResolver |
Public Member Functions | |
Row (ITable table, RowId rowId) | |
Constructs a new row object for the table given, identified by the given RowId. More... | |
Row (ITable table, int rowNumber) | |
Row (ITable table) | |
Constructs a new row on the given table that is not established into that table. More... | |
DataObject | GetValue (int columnOffset) |
Gets or the value of a cell of the row at the given offset. More... | |
void | SetValue (int columnOffset, DataObject value) |
Sets the value of a cell of the row at the given offset. More... | |
DataObject | GetValue (string columnName) |
Gets a value for a cell of the row that corresponds to the column of the table with the given name. More... | |
void | SetValue (string columnName, DataObject value) |
void | SetValue (int columnIndex, string value) |
void | SetValue (int columnIndex, int value) |
void | SetValue (int columnIndex, long value) |
void | SetValue (int columnIndex, short value) |
void | SetValue (int columnIndex, float value) |
void | SetValue (int columnIndex, double value) |
void | SetValue (int columnIndex, SqlNumber value) |
void | SetValue (int columnIndex, bool value) |
void | SetValue (int columnIndex, byte[] bytes) |
void | SetValue (int columnIndex, SqlBinary binary) |
void | SetNull (int columnOffset) |
Sets the value of a cell of the row at the given offset to NULL . More... | |
void | SetDefault (int columnOffset, IQuery context) |
Sets the value of a cell of the row at the given offset to the DEFAULT set at the column definition. More... | |
void | SetDefault (IQuery context) |
Sets the DEFAULT value of all cells in the row as configured in the columns definition corresponding to the cells. More... | |
void | SetNumber (int number) |
Sets the row number part of the identificator More... | |
void | SetRowNumber (int rowNumber) |
Sets the number component of the ID of this column. More... | |
void | SetFromTable () |
Gathers the original values from the table for the row number corresponding and populates this row with those values, making it ready to be accessed. More... | |
void | EvaluateAssignment (SqlAssignExpression assignExpression, IQuery context) |
Properties | |
ITable | Table [get, private set] |
Gets the instance of the table that contains the row. More... | |
RowId | RowId [get, private set] |
Gets the row unique identifier within the database. More... | |
ObjectName IDbObject. | FullName [get] |
DbObjectType IDbObject. | ObjectType [get] |
DataObject | this[int columnOffset] [get, set] |
Gets or sets the value of a cell of the row at the given offset. More... | |
DataObject | this[string columnName] [get, set] |
Gets or sets the value of a cell of the row for the given column. More... | |
IVariableResolver | VariableResolver [get] |
int | ColumnCount [get] |
Gets the number of columns in the parent table of this row. More... | |
bool | Exists [get] |
Gets a boolean value indicating if the column exists in the parent table. More... | |
bool | CanBeCached [get] |
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 | |
DataObject | Evaluate (SqlExpression expression, IQuery queryContext) |
Private Attributes | |
RowVariableResolver | variableResolver |
Dictionary< int, DataObject > | values |
bool | canBeCached |
A single row in a table of a database.
This object is a convenience to access the data provided by a ITable implementation, preserving the behavior of a tabular model.
Any row in a database can be identified by a unique RowId coordinate, formed by the id of the table that contains it and its unique number within the table.
Constructs a new row object for the table given, identified by the given RowId.
table | The table that contains the row. |
rowId | The unique identifier of the row within the database. |
ArgumentNullException | If the provided table is null . |
ArgumentException | If the table defines any id and this does not match the given rowId . |
Definition at line 61 of file Row.cs.
|
inline |
Definition at line 76 of file Row.cs.
|
inline |
Constructs a new row on the given table that is not established into that table.
table | The parent table of the row. |
Definition at line 85 of file Row.cs.
|
inlineprivate |
Definition at line 401 of file Row.cs.
|
inline |
Definition at line 500 of file Row.cs.
|
inline |
Gets or the value of a cell of the row at the given offset.
columnOffset | The zero-based column offset identifying the value to get from the table. |
This methods keeps a cached versions of the values after the first time it is called: that means the
ArgumentOutOfRangeException | If the given columnOffset is smaller than zero or greater than the number of columns in the table. |
InvalidOperationException | If the id of this row does not point to any row in the underlying table. |
Definition at line 203 of file Row.cs.
|
inline |
Gets a value for a cell of the row that corresponds to the column of the table with the given name.
columnName | The name of the column corresponding to the cell to get. |
ArgumentNullException | If the columnName is empty or null . |
ArgumentException | If no column with the given name was found in the parent table. |
Definition at line 285 of file Row.cs.
|
inline |
Sets the value of a cell of the row at the given offset to the DEFAULT
set at the column definition.
columnOffset | The zero based offset of the column. |
context | The context that is used to evaluate the DEFAULT SqlExpression of the column. |
ArgumentOutOfRangeException | If the given columnOffset is smaller than zero or greater than the number of columns in the table. |
InvalidOperationException | If the column has no DEFAULT value defined. |
Definition at line 374 of file Row.cs.
|
inline |
Sets the DEFAULT
value of all cells in the row as configured in the columns definition corresponding to the cells.
context | The context that is used to evaluate the DEFAULT SqlExpression of the column. |
Definition at line 393 of file Row.cs.
|
inline |
Gathers the original values from the table for the row number corresponding and populates this row with those values, making it ready to be accessed.
Definition at line 494 of file Row.cs.
|
inline |
Sets the value of a cell of the row at the given offset to NULL
.
columnOffset | The zero based offset of the column. |
Definition at line 352 of file Row.cs.
|
inline |
Sets the row number part of the identificator
number | The unique row number within the underlying table |
When a row is made permanent in a table (by a call to IMutableTable.AddRow), this method is called to update the address of the
If a row has no number locator to the underlying table all access methods will throw exceptions.
Definition at line 428 of file Row.cs.
|
inline |
Sets the number component of the ID of this column.
rowNumber | The zero-based number to set for identifying this row. |
Definition at line 484 of file Row.cs.
|
inline |
Sets the value of a cell of the row at the given offset.
columnOffset | The zero-based column offset identifying the value to get from the table. |
value | The value to set to the cell. |
ArgumentOutOfRangeException | If the given columnOffset is smaller than zero or greater than the number of columns in the table. |
InvalidOperationException | If the id of this row does not point to any row in the underlying table. |
Definition at line 247 of file Row.cs.
|
inline |
Definition at line 296 of file Row.cs.
|
inline |
Definition at line 307 of file Row.cs.
|
inline |
Definition at line 311 of file Row.cs.
|
inline |
Definition at line 315 of file Row.cs.
|
inline |
Definition at line 319 of file Row.cs.
|
inline |
Definition at line 323 of file Row.cs.
|
inline |
Definition at line 327 of file Row.cs.
|
inline |
Definition at line 331 of file Row.cs.
|
inline |
Definition at line 335 of file Row.cs.
|
inline |
Definition at line 339 of file Row.cs.
|
inline |
Definition at line 343 of file Row.cs.
|
private |
|
private |
|
get |
|
get |
|
getprivate |
|
getprivate |
|
getprivate set |
Gets the row unique identifier within the database.
When a row is not established in the parent table, this value is Tables.RowId.Null.
|
getprivate set |
|
getset |
Gets or sets the value of a cell of the row at the given offset.
columnOffset | The zero-based column offset identifying the value to get from the table. |
|
getset |
Gets or sets the value of a cell of the row for the given column.
columnName | The name of the column in the table. |
|
getprivate |