DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Classes | Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Tables.Row Class Reference

A single row in a table of a database. More...

Inheritance diagram for Deveel.Data.Sql.Tables.Row:
Deveel.Data.Sql.IDbObject

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, DataObjectvalues
 
bool canBeCached
 

Detailed Description

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.

See also
ITable.GetValue, TableInfo.Id, RowId

Definition at line 44 of file Row.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Tables.Row.Row ( ITable  table,
RowId  rowId 
)
inline

Constructs a new row object for the table given, identified by the given RowId.

Parameters
tableThe table that contains the row.
rowIdThe unique identifier of the row within the database.
Exceptions
ArgumentNullExceptionIf the provided table is null.
ArgumentExceptionIf the table defines any id and this does not match the given rowId .

Definition at line 61 of file Row.cs.

61  {
62  if (table == null)
63  throw new ArgumentNullException("table");
64 
65  if (!rowId.IsNull &&
66  table.TableInfo.Id >= 0 &&
67  table.TableInfo.Id != rowId.TableId)
68  throw new ArgumentException(String.Format("The table ID {0} does not match the identifier specified by the row ID ({1})",
69  table.TableInfo.Id,
70  rowId.TableId));
71 
72  Table = table;
73  RowId = rowId;
74  }
A long string in the system.
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
RowId RowId
Gets the row unique identifier within the database.
Definition: Row.cs:101
Deveel.Data.Sql.Tables.Row.Row ( ITable  table,
int  rowNumber 
)
inline

Definition at line 76 of file Row.cs.

77  : this(table, new RowId(table.TableInfo.Id, rowNumber)) {
78  }
RowId RowId
Gets the row unique identifier within the database.
Definition: Row.cs:101
Deveel.Data.Sql.Tables.Row.Row ( ITable  table)
inline

Constructs a new row on the given table that is not established into that table.

Parameters
tableThe parent table of the row.

Definition at line 85 of file Row.cs.

86  : this(table, RowId.Null) {
87  }
static readonly RowId Null
Gets a NULL instance of RowId.
Definition: RowId.cs:28
RowId RowId
Gets the row unique identifier within the database.
Definition: Row.cs:101

Member Function Documentation

DataObject Deveel.Data.Sql.Tables.Row.Evaluate ( SqlExpression  expression,
IQuery  queryContext 
)
inlineprivate

Definition at line 401 of file Row.cs.

401  {
402  var ignoreCase = queryContext.IgnoreIdentifiersCase();
403  // Resolve any variables to the table_def for this expression.
404  expression = Table.TableInfo.ResolveColumns(ignoreCase, expression);
405  // Get the variable resolver and evaluate over this data.
406  IVariableResolver vresolver = VariableResolver;
407  var reduced = expression.Evaluate(queryContext, vresolver, null);
408  if (reduced.ExpressionType != SqlExpressionType.Constant)
409  throw new InvalidOperationException("The DEFAULT expression of the column cannot be reduced to a constant");
410 
411  return ((SqlConstantExpression) reduced).Value;
412  }
SqlExpressionType
All the possible type of SqlExpression supported
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
virtual SqlExpression Evaluate(EvaluateContext context)
When overridden by a derived class, this method evaluates the expression within the provided context...
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
An expression that holds a constant value.
IVariableResolver VariableResolver
Definition: Row.cs:142
SqlExpression ResolveColumns(bool ignoreCase, SqlExpression expression)
Definition: TableInfo.cs:350
void Deveel.Data.Sql.Tables.Row.EvaluateAssignment ( SqlAssignExpression  assignExpression,
IQuery  context 
)
inline

Definition at line 500 of file Row.cs.

500  {
501  var colRef = (SqlReferenceExpression) assignExpression.ReferenceExpression;
502  var valueExp = assignExpression.ValueExpression;
503  var value = valueExp.EvaluateToConstant(context, VariableResolver);
504 
505  // Check the column name is within this row.
506  var columnName = colRef.ReferenceName;
507  int column = Table.FindColumn(columnName);
508 
509  if (column == -1)
510  throw new ObjectNotFoundException(columnName,
511  String.Format("Table '{0}' has none column named '{1}': cannot assign.", Table.TableInfo.TableName, columnName));
512 
513  SetValue(column, value);
514  }
An expression that references an object within a context.
A long string in the system.
ObjectName TableName
Gets the fully qualified name of the table that is ensured to be unique within the system...
Definition: TableInfo.cs:97
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
IVariableResolver VariableResolver
Definition: Row.cs:142
DataObject Deveel.Data.Sql.Tables.Row.GetValue ( int  columnOffset)
inline

Gets or the value of a cell of the row at the given offset.

Parameters
columnOffsetThe 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

Returns
Returns a DataObject that encapsulates the type and value of the cell stored in the database.
Exceptions
ArgumentOutOfRangeExceptionIf the given columnOffset is smaller than zero or greater than the number of columns in the table.
InvalidOperationExceptionIf the id of this row does not point to any row in the underlying table.
See also
TableInfo.ColumnCount

Definition at line 203 of file Row.cs.

203  {
204  if (columnOffset < 0 || columnOffset >= Table.TableInfo.ColumnCount)
205  throw new ArgumentOutOfRangeException("columnOffset");
206 
207  if (values == null) {
208  if (RowId.IsNull)
209  throw new InvalidOperationException("Row was not established to any table.");
210 
211  var colCount = Table.TableInfo.ColumnCount;
212  values = new Dictionary<int, DataObject>(colCount);
213 
214  for (int i = 0; i < colCount; i++) {
216  }
217  }
218 
219  DataObject value;
220  if (!values.TryGetValue(columnOffset, out value)) {
221  var columnType = Table.TableInfo[columnOffset].ColumnType;
222  return DataObject.Null(columnType);
223  }
224 
225  return value;
226  }
bool IsNull
Gets a boolean value indicating if the object equivales to a NULL.
Definition: RowId.cs:64
DataObject GetValue(long rowNumber, int columnOffset)
Gets a single cell within the table that is located at the given column offset and row...
int RowNumber
Gets the number of the column within the table referenced.
Definition: RowId.cs:58
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
int ColumnCount
Gets a count of the columns defined by this object.
Definition: TableInfo.cs:159
Dictionary< int, DataObject > values
Definition: Row.cs:46
RowId RowId
Gets the row unique identifier within the database.
Definition: Row.cs:101
DataObject Deveel.Data.Sql.Tables.Row.GetValue ( string  columnName)
inline

Gets a value for a cell of the row that corresponds to the column of the table with the given name.

Parameters
columnNameThe name of the column corresponding to the cell to get.
Returns
Returns a DataObject that encapsulates the type and value of the cell stored in the database.
Exceptions
ArgumentNullExceptionIf the columnName is empty or null.
ArgumentExceptionIf no column with the given name was found in the parent table.
See also
GetValue(int)

Definition at line 285 of file Row.cs.

285  {
286  if (String.IsNullOrEmpty(columnName))
287  throw new ArgumentNullException("columnName");
288 
289  var offset = Table.TableInfo.IndexOfColumn(columnName);
290  if (offset < 0)
291  throw new ArgumentException(String.Format("Could not find column '{0}' in the table '{1}'.", columnName, Table.FullName));
292 
293  return GetValue(offset);
294  }
A long string in the system.
DataObject GetValue(int columnOffset)
Gets or the value of a cell of the row at the given offset.
Definition: Row.cs:203
ObjectName FullName
Gets the fully qualified name of the object used to resolve it uniquely within the database...
Definition: IDbObject.cs:30
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
int IndexOfColumn(string columnName)
Gets the offset of the column with the given name.
Definition: TableInfo.cs:310
void Deveel.Data.Sql.Tables.Row.SetDefault ( int  columnOffset,
IQuery  context 
)
inline

Sets the value of a cell of the row at the given offset to the DEFAULT set at the column definition.

Parameters
columnOffsetThe zero based offset of the column.
contextThe context that is used to evaluate the DEFAULT SqlExpression of the column.
Exceptions
ArgumentOutOfRangeExceptionIf the given columnOffset is smaller than zero or greater than the number of columns in the table.
InvalidOperationExceptionIf the column has no DEFAULT value defined.

Definition at line 374 of file Row.cs.

374  {
375  if (columnOffset < 0 || columnOffset >= Table.TableInfo.ColumnCount)
376  throw new ArgumentOutOfRangeException("columnOffset");
377 
378  var column = Table.TableInfo[columnOffset];
379  if (!column.HasDefaultExpression)
380  throw new InvalidOperationException(String.Format("Column '{0}' in table '{1}' has no DEFAULT set.", column.ColumnName, Table.FullName));
381 
382  var value = Evaluate(column.DefaultExpression, context);
383  SetValue(columnOffset, value);
384  }
A long string in the system.
ObjectName FullName
Gets the fully qualified name of the object used to resolve it uniquely within the database...
Definition: IDbObject.cs:30
DataObject Evaluate(SqlExpression expression, IQuery queryContext)
Definition: Row.cs:401
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
int ColumnCount
Gets a count of the columns defined by this object.
Definition: TableInfo.cs:159
void Deveel.Data.Sql.Tables.Row.SetDefault ( IQuery  context)
inline

Sets the DEFAULT value of all cells in the row as configured in the columns definition corresponding to the cells.

Parameters
contextThe context that is used to evaluate the DEFAULT SqlExpression of the column.
See also
SetDefault(int, IQuery)

Definition at line 393 of file Row.cs.

393  {
394  for (int i = 0; i < Table.TableInfo.ColumnCount; ++i) {
395  if (!values.ContainsKey(i)) {
396  SetDefault(i, context);
397  }
398  }
399  }
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
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...
Definition: Row.cs:374
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
int ColumnCount
Gets a count of the columns defined by this object.
Definition: TableInfo.cs:159
Dictionary< int, DataObject > values
Definition: Row.cs:46
void Deveel.Data.Sql.Tables.Row.SetFromTable ( )
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.

See also
SetValue(int, DataObject)

Definition at line 494 of file Row.cs.

494  {
495  for (int i = 0; i < Table.TableInfo.ColumnCount; i++) {
497  }
498  }
DataObject GetValue(long rowNumber, int columnOffset)
Gets a single cell within the table that is located at the given column offset and row...
int RowNumber
Gets the number of the column within the table referenced.
Definition: RowId.cs:58
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
int ColumnCount
Gets a count of the columns defined by this object.
Definition: TableInfo.cs:159
RowId RowId
Gets the row unique identifier within the database.
Definition: Row.cs:101
void Deveel.Data.Sql.Tables.Row.SetNull ( int  columnOffset)
inline

Sets the value of a cell of the row at the given offset to NULL.

Parameters
columnOffsetThe zero based offset of the column.
See also
SetValue(int, DataObject)

Definition at line 352 of file Row.cs.

352  {
353  if (columnOffset < 0 || columnOffset >= Table.TableInfo.ColumnCount)
354  throw new ArgumentOutOfRangeException("columnOffset");
355 
356  var columnType = Table.TableInfo[columnOffset].ColumnType;
357  SetValue(columnOffset, new DataObject(columnType, null));
358  }
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
int ColumnCount
Gets a count of the columns defined by this object.
Definition: TableInfo.cs:159
void Deveel.Data.Sql.Tables.Row.SetNumber ( int  number)
inline

Sets the row number part of the identificator

Parameters
numberThe 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.

428  {
429  RowId = new RowId(Table.TableInfo.Id, number);
430  }
int Id
Gets a unique identifier of the table in a database system.
Definition: TableInfo.cs:107
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
RowId RowId
Gets the row unique identifier within the database.
Definition: Row.cs:101
void Deveel.Data.Sql.Tables.Row.SetRowNumber ( int  rowNumber)
inline

Sets the number component of the ID of this column.

Parameters
rowNumberThe zero-based number to set for identifying this row.
See also
Tables.RowId.RowNumber, RowId

Definition at line 484 of file Row.cs.

484  {
485  RowId = new RowId(Table.TableInfo.Id, rowNumber);
486  }
int Id
Gets a unique identifier of the table in a database system.
Definition: TableInfo.cs:107
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
RowId RowId
Gets the row unique identifier within the database.
Definition: Row.cs:101
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnOffset,
DataObject  value 
)
inline

Sets the value of a cell of the row at the given offset.

Parameters
columnOffsetThe zero-based column offset identifying the value to get from the table.
valueThe value to set to the cell.
Returns
Returns a DataObject that encapsulates the type and value of the cell stored in the database.
Exceptions
ArgumentOutOfRangeExceptionIf the given columnOffset is smaller than zero or greater than the number of columns in the table.
InvalidOperationExceptionIf the id of this row does not point to any row in the underlying table.
See also
TableInfo.ColumnCount

Definition at line 247 of file Row.cs.

247  {
248  var colCount = Table.TableInfo.ColumnCount;
249 
250  if (columnOffset < 0 || columnOffset >= Table.TableInfo.ColumnCount)
251  throw new ArgumentOutOfRangeException("columnOffset");
252 
253  if (values == null)
254  values = new Dictionary<int, DataObject>(colCount);
255 
256  var column = Table.TableInfo[columnOffset];
257  var columnType = column.ColumnType;
258 
259  if (!value.Type.IsComparable(columnType)) {
260  throw new ArgumentException(
261  String.Format("The specified value of type '{0}' is not comparable to '{1}' defined by '{2}'.",
262  value.Type, columnType, column.FullColumnName));
263  }
264 
265  values[columnOffset] = value;
266  }
A long string in the system.
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
int ColumnCount
Gets a count of the columns defined by this object.
Definition: TableInfo.cs:159
Dictionary< int, DataObject > values
Definition: Row.cs:46
void Deveel.Data.Sql.Tables.Row.SetValue ( string  columnName,
DataObject  value 
)
inline

Definition at line 296 of file Row.cs.

296  {
297  if (String.IsNullOrEmpty(columnName))
298  throw new ArgumentNullException("columnName");
299 
300  var offset = Table.TableInfo.IndexOfColumn(columnName);
301  if (offset < 0)
302  throw new ArgumentException(String.Format("Could not find column '{0}' in the table '{1}'.", columnName, Table.FullName));
303 
304  SetValue(offset, value);
305  }
A long string in the system.
ObjectName FullName
Gets the fully qualified name of the object used to resolve it uniquely within the database...
Definition: IDbObject.cs:30
ITable Table
Gets the instance of the table that contains the row.
Definition: Row.cs:92
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47
int IndexOfColumn(string columnName)
Gets the offset of the column with the given name.
Definition: TableInfo.cs:310
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
string  value 
)
inline

Definition at line 307 of file Row.cs.

307  {
308  SetValue(columnIndex, DataObject.String(value));
309  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
int  value 
)
inline

Definition at line 311 of file Row.cs.

311  {
312  SetValue(columnIndex, DataObject.Integer(value));
313  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
long  value 
)
inline

Definition at line 315 of file Row.cs.

315  {
316  SetValue(columnIndex, DataObject.BigInt(value));
317  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
short  value 
)
inline

Definition at line 319 of file Row.cs.

319  {
320  SetValue(columnIndex, DataObject.SmallInt(value));
321  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
float  value 
)
inline

Definition at line 323 of file Row.cs.

323  {
324  SetValue(columnIndex, new SqlNumber(value));
325  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
double  value 
)
inline

Definition at line 327 of file Row.cs.

327  {
328  SetValue(columnIndex, DataObject.Number(new SqlNumber(value)));
329  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
SqlNumber  value 
)
inline

Definition at line 331 of file Row.cs.

331  {
332  SetValue(columnIndex, DataObject.Number(value));
333  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
bool  value 
)
inline

Definition at line 335 of file Row.cs.

335  {
336  SetValue(columnIndex, DataObject.Boolean(value));
337  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
byte[]  bytes 
)
inline

Definition at line 339 of file Row.cs.

339  {
340  SetValue(columnIndex, DataObject.Binary(bytes));
341  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247
void Deveel.Data.Sql.Tables.Row.SetValue ( int  columnIndex,
SqlBinary  binary 
)
inline

Definition at line 343 of file Row.cs.

343  {
344  SetValue(columnIndex, DataObject.Binary(binary));
345  }
void SetValue(int columnOffset, DataObject value)
Sets the value of a cell of the row at the given offset.
Definition: Row.cs:247

Member Data Documentation

bool Deveel.Data.Sql.Tables.Row.canBeCached
private

Definition at line 168 of file Row.cs.

Dictionary<int, DataObject> Deveel.Data.Sql.Tables.Row.values
private

Definition at line 46 of file Row.cs.

RowVariableResolver Deveel.Data.Sql.Tables.Row.variableResolver
private

Definition at line 45 of file Row.cs.

Property Documentation

bool Deveel.Data.Sql.Tables.Row.CanBeCached
get

Definition at line 170 of file Row.cs.

int Deveel.Data.Sql.Tables.Row.ColumnCount
get

Gets the number of columns in the parent table of this row.

Definition at line 156 of file Row.cs.

bool Deveel.Data.Sql.Tables.Row.Exists
get

Gets a boolean value indicating if the column exists in the parent table.

Definition at line 164 of file Row.cs.

ObjectName IDbObject. Deveel.Data.Sql.Tables.Row.FullName
getprivate

Definition at line 103 of file Row.cs.

DbObjectType IDbObject. Deveel.Data.Sql.Tables.Row.ObjectType
getprivate

Definition at line 107 of file Row.cs.

RowId Deveel.Data.Sql.Tables.Row.RowId
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.

Definition at line 101 of file Row.cs.

ITable Deveel.Data.Sql.Tables.Row.Table
getprivate set

Gets the instance of the table that contains the row.

Definition at line 92 of file Row.cs.

DataObject Deveel.Data.Sql.Tables.Row.this[int columnOffset]
getset

Gets or sets the value of a cell of the row at the given offset.

Parameters
columnOffsetThe zero-based column offset identifying the value to get from the table.
Returns
Returns a DataObject that encapsulates the type and value of the cell stored in the database.
See also
GetValue(int), SetValue(int, DataObject)

Definition at line 122 of file Row.cs.

DataObject Deveel.Data.Sql.Tables.Row.this[string columnName]
getset

Gets or sets the value of a cell of the row for the given column.

Parameters
columnNameThe name of the column in the table.
Returns
Returns a DataObject that encapsulates the type and value of the cell stored in the database.
See also
GetValue(string), SetValue(string, DataObject)

Definition at line 137 of file Row.cs.

IVariableResolver Deveel.Data.Sql.Tables.Row.VariableResolver
getprivate

Definition at line 142 of file Row.cs.


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