Package org.h2.table
Class GeneratedColumnResolver
- java.lang.Object
-
- org.h2.table.GeneratedColumnResolver
-
- All Implemented Interfaces:
ColumnResolver
class GeneratedColumnResolver extends java.lang.Object implements ColumnResolver
Column resolver for generated columns.
-
-
Constructor Summary
Constructors Constructor Description GeneratedColumnResolver(Table table)Column resolver for generated columns.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Column[]createColumns()ColumnfindColumn(java.lang.String name)Get the column with the specified name.Column[]getColumns()Get the column list.ColumngetRowIdColumn()Get the row id pseudo column, if there is one.ValuegetValue(Column column)Get the value for the given column.(package private) voidset(Row current)Set the current row.-
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, getSchemaName, getSelect, getSystemColumns, getTableAlias, getTableFilter, hasDerivedColumnList, optimize
-
-
-
-
Constructor Detail
-
GeneratedColumnResolver
GeneratedColumnResolver(Table table)
Column resolver for generated columns.- Parameters:
table- the table
-
-
Method Detail
-
set
void set(Row current)
Set the current row.- Parameters:
current- the current row
-
getColumns
public Column[] getColumns()
Description copied from interface:ColumnResolverGet the column list.- Specified by:
getColumnsin interfaceColumnResolver- Returns:
- the column list
-
createColumns
private Column[] createColumns()
-
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
-
getValue
public Value getValue(Column column)
Description copied from interface:ColumnResolverGet the value for the given column.- Specified by:
getValuein interfaceColumnResolver- Parameters:
column- the column- Returns:
- the value
-
getRowIdColumn
public Column getRowIdColumn()
Description copied from interface:ColumnResolverGet the row id pseudo column, if there is one.- Specified by:
getRowIdColumnin interfaceColumnResolver- Returns:
- the row id column or null
-
-