Package org.h2.table
Interface ColumnResolver
- All Known Implementing Classes:
DomainColumnResolver
,GeneratedColumnResolver
,SelectListColumnResolver
,TableFilter
,TableValueConstructor.TableValueColumnResolver
public interface ColumnResolver
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 TypeMethodDescriptionfindColumn
(String name) Get the column with the specified name.default String
getColumnName
(Column column) Get the name of the specified column.Column[]
Get the column list.default Column
Get the row id pseudo column, if there is one.default String
Get the schema name or null.default Select
Get the select statement.default Column[]
Get the list of system columns, if any.default String
Get the table alias.default TableFilter
Get the table filter.Get the value for the given column.default boolean
Returns whether this column resolver has a derived column list.default Expression
optimize
(ExpressionColumn expressionColumn, Column column) Get the expression that represents this column.
-
Method Details
-
getTableAlias
Get the table alias.- Returns:
- the table alias
-
getColumns
Column[] getColumns()Get the column list.- Returns:
- the column list
-
findColumn
Get the column with the specified name.- 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
-
getColumnName
Get the name of the specified column.- Parameters:
column
- column- Returns:
- column name
-
hasDerivedColumnList
default boolean hasDerivedColumnList()Returns whether this column resolver has a derived column list.- Returns:
true
if this column resolver has a derived column list,false
otherwise
-
getSystemColumns
Get the list of system columns, if any.- Returns:
- the system columns or null
-
getRowIdColumn
Get the row id pseudo column, if there is one.- Returns:
- the row id column or null
-
getSchemaName
Get the schema name or null.- Returns:
- the schema name or null
-
getValue
Get the value for the given column.- Parameters:
column
- the column- Returns:
- the value
-
getTableFilter
Get the table filter.- Returns:
- the table filter
-
getSelect
Get the select statement.- Returns:
- the select statement
-
optimize
Get the expression that represents this column.- Parameters:
expressionColumn
- the expression columncolumn
- the column- Returns:
- the optimized expression
-