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.Transactions.TransactionConstraintExtensions.TableRowVariableResolver Class Reference
Inheritance diagram for Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver:
Deveel.Data.Sql.IVariableResolver

Public Member Functions

 TableRowVariableResolver (ITable table, int rowIndex)
 
DataObject Resolve (ObjectName variable)
 Returns the value of a given variable. More...
 
SqlType ReturnType (ObjectName variable)
 Returns the SqlType of object the given variable is. More...
 

Properties

int SetId [get]
 

Private Member Functions

int FindColumnName (ObjectName variable)
 

Private Attributes

readonly ITable table
 
readonly int rowIndex
 

Detailed Description

Definition at line 1029 of file TransactionConstraintExtensions.cs.

Constructor & Destructor Documentation

Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver.TableRowVariableResolver ( ITable  table,
int  rowIndex 
)
inline

Member Function Documentation

int Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver.FindColumnName ( ObjectName  variable)
inlineprivate

Definition at line 1039 of file TransactionConstraintExtensions.cs.

1039  {
1040  int colIndex = table.TableInfo.IndexOfColumn(variable.Name);
1041  if (colIndex == -1)
1042  throw new InvalidOperationException("Can't find column: " + variable);
1043 
1044  return colIndex;
1045  }
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
string Name
Gets the name of the object being referenced.
Definition: ObjectName.cs:108
DataObject Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver.Resolve ( ObjectName  variable)
inline

Returns the value of a given variable.

Parameters
variable
Returns

Implements Deveel.Data.Sql.IVariableResolver.

Definition at line 1053 of file TransactionConstraintExtensions.cs.

1053  {
1054  int colIndex = FindColumnName(variable);
1055  return table.GetValue(rowIndex, colIndex);
1056  }
DataObject GetValue(long rowNumber, int columnOffset)
Gets a single cell within the table that is located at the given column offset and row...
SqlType Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver.ReturnType ( ObjectName  variable)
inline

Returns the SqlType of object the given variable is.

Parameters
variable
Returns

Implements Deveel.Data.Sql.IVariableResolver.

Definition at line 1058 of file TransactionConstraintExtensions.cs.

1058  {
1059  int colIndex = FindColumnName(variable);
1060  return table.TableInfo[colIndex].ColumnType;
1061  }
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
Definition: ITable.cs:47

Member Data Documentation

readonly int Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver.rowIndex
private

Definition at line 1032 of file TransactionConstraintExtensions.cs.

readonly ITable Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver.table
private

Definition at line 1031 of file TransactionConstraintExtensions.cs.

Property Documentation

int Deveel.Data.Transactions.TransactionConstraintExtensions.TableRowVariableResolver.SetId
get

Definition at line 1049 of file TransactionConstraintExtensions.cs.


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