Top Description Methods
org.h2.table

public Interface ColumnResolver

Known Direct Implementers
org.h2.table.GeneratedColumnResolver, org.h2.table.TableFilter, org.h2.command.query.SelectListColumnResolver, org.h2.command.query.TableValueConstructor.TableValueColumnResolver, org.h2.constraint.DomainColumnResolver
Imports
org.h2.command.query.Select, org.h2.expression.Expression, .ExpressionColumn, org.h2.value.Value

A column resolver is list of column (for example, a table) that can map a column name to an actual column.

Method Summary

Modifier and TypeMethod and Description
public Column

Returns:

the column with the specified name, or null
findColumn
(String
the column name, must be a derived name if this column resolver has a derived column list
name
)

Get the column with the specified name.

public default String

Returns:

column name
getColumnName
(Column
column
column
)

Get the name of the specified column.

public Column[]

Returns:

the column list
getColumns
()

Get the column list.

public default Column

Returns:

the row id column or null
getRowIdColumn
()

Get the row id pseudo column, if there is one.

public default String

Returns:

the schema name or null
getSchemaName
()

Get the schema name or null.

public default Select

Returns:

the select statement
getSelect
()

Get the select statement.

public default Column[]

Returns:

the system columns or null
getSystemColumns
()

Get the list of system columns, if any.

public default String

Returns:

the table alias
getTableAlias
()

Get the table alias.

public default TableFilter

Returns:

the table filter
getTableFilter
()

Get the table filter.

public Value

Returns:

the value
getValue
(Column
the column
column
)

Get the value for the given column.

public default boolean

Returns:

true if this column resolver has a derived column list, false otherwise
hasDerivedColumnList
()

Returns whether this column resolver has a derived column list.

public default Expression

Returns:

the optimized expression
optimize
(ExpressionColumn
the expression column
expressionColumn
,
Column
the column
column
)

Get the expression that represents this column.

Method Detail

findColumnback to summary
public Column findColumn(String name)

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

getColumnNameback to summary
public default String getColumnName(Column column)

Get the name of the specified column.

Parameters
column:Column

column

Returns:String

column name

getColumnsback to summary
public Column[] getColumns()

Get the column list.

Returns:Column[]

the column list

getRowIdColumnback to summary
public default Column getRowIdColumn()

Get the row id pseudo column, if there is one.

Returns:Column

the row id column or null

getSchemaNameback to summary
public default String getSchemaName()

Get the schema name or null.

Returns:String

the schema name or null

getSelectback to summary
public default Select getSelect()

Get the select statement.

Returns:Select

the select statement

getSystemColumnsback to summary
public default Column[] getSystemColumns()

Get the list of system columns, if any.

Returns:Column[]

the system columns or null

getTableAliasback to summary
public default String getTableAlias()

Get the table alias.

Returns:String

the table alias

getTableFilterback to summary
public default TableFilter getTableFilter()

Get the table filter.

Returns:TableFilter

the table filter

getValueback to summary
public Value getValue(Column column)

Get the value for the given column.

Parameters
column:Column

the column

Returns:Value

the value

hasDerivedColumnListback to summary
public default boolean hasDerivedColumnList()

Returns whether this column resolver has a derived column list.

Returns:boolean

true if this column resolver has a derived column list, false otherwise

optimizeback to summary
public default Expression optimize(ExpressionColumn expressionColumn, Column column)

Get the expression that represents this column.

Parameters
expressionColumn:ExpressionColumn

the expression column

column:Column

the column

Returns:Expression

the optimized expression