Package org.h2.table
Class GeneratedColumnResolver
java.lang.Object
org.h2.table.GeneratedColumnResolver
- All Implemented Interfaces:
ColumnResolver
Column resolver for generated columns.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Column[]
findColumn
(String name) Get the column with the specified name.Column[]
Get the column list.Get the row id pseudo column, if there is one.Get the value for the given column.(package private) void
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
-
Field Details
-
table
-
columns
-
columnMap
-
current
-
-
Constructor Details
-
GeneratedColumnResolver
GeneratedColumnResolver(Table table) Column resolver for generated columns.- Parameters:
table
- the table
-
-
Method Details
-
set
Set the current row.- Parameters:
current
- the current row
-
getColumns
Description copied from interface:ColumnResolver
Get the column list.- Specified by:
getColumns
in interfaceColumnResolver
- Returns:
- the column list
-
createColumns
-
findColumn
Description copied from interface:ColumnResolver
Get the column with the specified name.- Specified by:
findColumn
in 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
Description copied from interface:ColumnResolver
Get the value for the given column.- Specified by:
getValue
in interfaceColumnResolver
- Parameters:
column
- the column- Returns:
- the value
-
getRowIdColumn
Description copied from interface:ColumnResolver
Get the row id pseudo column, if there is one.- Specified by:
getRowIdColumn
in interfaceColumnResolver
- Returns:
- the row id column or null
-