Top Description Fields Constructors Methods
org.h2.constraint

public Class DomainColumnResolver

extends Object
implements ColumnResolver
Class Inheritance
All Implemented Interfaces
org.h2.table.ColumnResolver
Imports
org.h2.table.Column, .ColumnResolver, org.h2.value.TypeInfo, .Value

The single column resolver resolves the VALUE column. It is used to parse a domain constraint.

Field Summary

Modifier and TypeField and Description
private final Column
private String
private Value

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Column
findColumn(String
the column name, must be a derived name if this column resolver has a derived column list
name
)

Implements org.h2.table.ColumnResolver.findColumn.

Get the column with the specified name.

public String

Returns:

column name to use or null
getColumnName
()

Return column name to use or null.

public Column[]
getColumns()

Implements org.h2.table.ColumnResolver.getColumns.

Get the column list.

public Value
getValue(Column
the column
col
)

Implements org.h2.table.ColumnResolver.getValue.

Get the value for the given column.

public TypeInfo

Returns:

the type of the column
getValueType
()

Return the type of the column.

pack-priv void
pack-priv void
public void
setValue(Value value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
private final Column column
nameback to summary
private String name
valueback to summary
private Value value

Constructor Detail

DomainColumnResolverback to summary
public DomainColumnResolver(TypeInfo typeInfo)

Method Detail

findColumnback to summary
public Column findColumn(String name)

Implements org.h2.table.ColumnResolver.findColumn.

Doc from org.h2.table.ColumnResolver.findColumn.

Get the column with the specified name.

Parameters
name:String

the column name, must be a derived name if this column resolver has a derived column list

Returns:Column

the column with the specified name, or null

Annotations
@Override
getColumnNameback to summary
public String getColumnName()

Return column name to use or null.

Returns:String

column name to use or null

getColumnsback to summary
public Column[] getColumns()

Implements org.h2.table.ColumnResolver.getColumns.

Doc from org.h2.table.ColumnResolver.getColumns.

Get the column list.

Returns:Column[]

the column list

Annotations
@Override
getValueback to summary
public Value getValue(Column col)

Implements org.h2.table.ColumnResolver.getValue.

Doc from org.h2.table.ColumnResolver.getValue.

Get the value for the given column.

Parameters
col:Column

the column

Returns:Value

the value

Annotations
@Override
getValueTypeback to summary
public TypeInfo getValueType()

Return the type of the column.

Returns:TypeInfo

the type of the column

resetColumnNameback to summary
pack-priv void resetColumnName()
setColumnNameback to summary
pack-priv void setColumnName(String newName)
setValueback to summary
public void setValue(Value value)