Package org.h2.table
Interface ColumnResolver
-
- All Known Implementing Classes:
DomainColumnResolver,GeneratedColumnResolver,SelectListColumnResolver,TableFilter,TableValueConstructor.TableValueColumnResolver
public interface ColumnResolverA column resolver is list of column (for example, a table) that can map a column name to an actual column.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ColumnfindColumn(java.lang.String name)Get the column with the specified name.default java.lang.StringgetColumnName(Column column)Get the name of the specified column.Column[]getColumns()Get the column list.default ColumngetRowIdColumn()Get the row id pseudo column, if there is one.default java.lang.StringgetSchemaName()Get the schema name or null.default SelectgetSelect()Get the select statement.default Column[]getSystemColumns()Get the list of system columns, if any.default java.lang.StringgetTableAlias()Get the table alias.default TableFiltergetTableFilter()Get the table filter.ValuegetValue(Column column)Get the value for the given column.default booleanhasDerivedColumnList()Returns whether this column resolver has a derived column list.default Expressionoptimize(ExpressionColumn expressionColumn, Column column)Get the expression that represents this column.
-
-
-
Method Detail
-
getTableAlias
default java.lang.String getTableAlias()
Get the table alias.- Returns:
- the table alias
-
getColumns
Column[] getColumns()
Get the column list.- Returns:
- the column list
-
findColumn
Column findColumn(java.lang.String name)
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
default java.lang.String getColumnName(Column column)
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:
trueif this column resolver has a derived column list,falseotherwise
-
getSystemColumns
default Column[] getSystemColumns()
Get the list of system columns, if any.- Returns:
- the system columns or null
-
getRowIdColumn
default Column getRowIdColumn()
Get the row id pseudo column, if there is one.- Returns:
- the row id column or null
-
getSchemaName
default java.lang.String getSchemaName()
Get the schema name or null.- Returns:
- the schema name or null
-
getValue
Value getValue(Column column)
Get the value for the given column.- Parameters:
column- the column- Returns:
- the value
-
getTableFilter
default TableFilter getTableFilter()
Get the table filter.- Returns:
- the table filter
-
getSelect
default Select getSelect()
Get the select statement.- Returns:
- the select statement
-
optimize
default Expression optimize(ExpressionColumn expressionColumn, Column column)
Get the expression that represents this column.- Parameters:
expressionColumn- the expression columncolumn- the column- Returns:
- the optimized expression
-
-