Top Description Fields Constructors Methods
org.h2.table

pack-priv Class GeneratedColumnResolver

extends Object
implements ColumnResolver
Class Inheritance
All Implemented Interfaces
org.h2.table.ColumnResolver
Imports
java.util.HashMap, org.h2.result.Row, org.h2.value.Value, .ValueBigint

Column resolver for generated columns.

Field Summary

Modifier and TypeField and Description
private HashMap<String, Column>
private Column[]
private Row
private final Table

Constructor Summary

AccessConstructor and Description
pack-priv
GeneratedColumnResolver(Table
the table
table
)

Column resolver for generated columns.

Method Summary

Modifier and TypeMethod and Description
private Column[]
public Column
findColumn(String
the column name, must be a derived name if this column resolver has a derived column list
name
)

Implements org.h2.table.ColumnResolver.findColumn.

Get the column with the specified name.

public Column[]
getColumns()

Implements org.h2.table.ColumnResolver.getColumns.

Get the column list.

public Column
getRowIdColumn()

Overrides default org.h2.table.ColumnResolver.getRowIdColumn.

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

public Value
getValue(Column
the column
column
)

Implements org.h2.table.ColumnResolver.getValue.

Get the value for the given column.

pack-priv void
set(Row
the current row
current
)

Set the current row.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnMapback to summary
private HashMap<String, Column> columnMap
columnsback to summary
private Column[] columns
currentback to summary
private Row current
tableback to summary
private final Table table

Constructor Detail

GeneratedColumnResolverback to summary
pack-priv GeneratedColumnResolver(Table table)

Column resolver for generated columns.

Parameters
table:Table

the table

Method Detail

createColumnsback to summary
private Column[] createColumns()
findColumnback to summary
public Column findColumn(String name)

Implements org.h2.table.ColumnResolver.findColumn.

Doc from org.h2.table.ColumnResolver.findColumn.

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

Annotations
@Override
getColumnsback to summary
public Column[] getColumns()

Implements org.h2.table.ColumnResolver.getColumns.

Doc from org.h2.table.ColumnResolver.getColumns.

Get the column list.

Returns:Column[]

the column list

Annotations
@Override
getRowIdColumnback to summary
public Column getRowIdColumn()

Overrides default org.h2.table.ColumnResolver.getRowIdColumn.

Doc from org.h2.table.ColumnResolver.getRowIdColumn.

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

Returns:Column

the row id column or null

Annotations
@Override
getValueback to summary
public Value getValue(Column column)

Implements org.h2.table.ColumnResolver.getValue.

Doc from org.h2.table.ColumnResolver.getValue.

Get the value for the given column.

Parameters
column:Column

the column

Returns:Value

the value

Annotations
@Override
setback to summary
pack-priv void set(Row current)

Set the current row.

Parameters
current:Row

the current row