Package org.h2.constraint
Class DomainColumnResolver
- java.lang.Object
-
- org.h2.constraint.DomainColumnResolver
-
- All Implemented Interfaces:
ColumnResolver
public class DomainColumnResolver extends java.lang.Object implements ColumnResolver
The single column resolver resolves the VALUE column. It is used to parse a domain constraint.
-
-
Constructor Summary
Constructors Constructor Description DomainColumnResolver(TypeInfo typeInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnfindColumn(java.lang.String name)Get the column with the specified name.java.lang.StringgetColumnName()Return column name to use or null.Column[]getColumns()Get the column list.ValuegetValue(Column col)Get the value for the given column.TypeInfogetValueType()Return the type of the column.(package private) voidresetColumnName()(package private) voidsetColumnName(java.lang.String newName)voidsetValue(Value value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.h2.table.ColumnResolver
getColumnName, getRowIdColumn, getSchemaName, getSelect, getSystemColumns, getTableAlias, getTableFilter, hasDerivedColumnList, optimize
-
-
-
-
Constructor Detail
-
DomainColumnResolver
public DomainColumnResolver(TypeInfo typeInfo)
-
-
Method Detail
-
setValue
public void setValue(Value value)
-
getValue
public Value getValue(Column col)
Description copied from interface:ColumnResolverGet the value for the given column.- Specified by:
getValuein interfaceColumnResolver- Parameters:
col- the column- Returns:
- the value
-
getColumns
public Column[] getColumns()
Description copied from interface:ColumnResolverGet the column list.- Specified by:
getColumnsin interfaceColumnResolver- Returns:
- the column list
-
findColumn
public Column findColumn(java.lang.String name)
Description copied from interface:ColumnResolverGet the column with the specified name.- Specified by:
findColumnin interfaceColumnResolver- Parameters:
name- the column name, must be a derived name if this column resolver has a derived column list- Returns:
- the column with the specified name, or
null
-
setColumnName
void setColumnName(java.lang.String newName)
-
resetColumnName
void resetColumnName()
-
getColumnName
public java.lang.String getColumnName()
Return column name to use or null.- Returns:
- column name to use or null
-
getValueType
public TypeInfo getValueType()
Return the type of the column.- Returns:
- the type of the column
-
-