Package com.mckoi.database
Class TableDataConglomerate.TableRowVariableResolver
- java.lang.Object
-
- com.mckoi.database.TableDataConglomerate.TableRowVariableResolver
-
- All Implemented Interfaces:
VariableResolver
- Enclosing class:
- TableDataConglomerate
private static class TableDataConglomerate.TableRowVariableResolver extends java.lang.Object implements VariableResolver
A variable resolver for a single row of a table source. Used when evaluating a check constraint for newly added row.
-
-
Field Summary
Fields Modifier and Type Field Description private int
row_index
private TableDataSource
table
-
Constructor Summary
Constructors Constructor Description TableRowVariableResolver(TableDataSource table, int row)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
findColumnName(Variable variable)
TObject
resolve(Variable variable)
Returns the value of a given variable.TType
returnTType(Variable variable)
Returns the TType of object the given variable is.int
setID()
A number that uniquely identifies the current state of the variable resolver.
-
-
-
Field Detail
-
table
private TableDataSource table
-
row_index
private int row_index
-
-
Constructor Detail
-
TableRowVariableResolver
public TableRowVariableResolver(TableDataSource table, int row)
-
-
Method Detail
-
findColumnName
private int findColumnName(Variable variable)
-
setID
public int setID()
Description copied from interface:VariableResolver
A number that uniquely identifies the current state of the variable resolver. This typically returns the row_index of the table we are resolving variables on.- Specified by:
setID
in interfaceVariableResolver
-
resolve
public TObject resolve(Variable variable)
Description copied from interface:VariableResolver
Returns the value of a given variable.- Specified by:
resolve
in interfaceVariableResolver
-
returnTType
public TType returnTType(Variable variable)
Description copied from interface:VariableResolver
Returns the TType of object the given variable is.- Specified by:
returnTType
in interfaceVariableResolver
-
-