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 introw_indexprivate TableDataSourcetable
-
Constructor Summary
Constructors Constructor Description TableRowVariableResolver(TableDataSource table, int row)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intfindColumnName(Variable variable)TObjectresolve(Variable variable)Returns the value of a given variable.TTypereturnTType(Variable variable)Returns the TType of object the given variable is.intsetID()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:VariableResolverA 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:
setIDin interfaceVariableResolver
-
resolve
public TObject resolve(Variable variable)
Description copied from interface:VariableResolverReturns the value of a given variable.- Specified by:
resolvein interfaceVariableResolver
-
returnTType
public TType returnTType(Variable variable)
Description copied from interface:VariableResolverReturns the TType of object the given variable is.- Specified by:
returnTTypein interfaceVariableResolver
-
-