Package org.h2.table

Class GeneratedColumnResolver

  • All Implemented Interfaces:
    ColumnResolver

    class GeneratedColumnResolver
    extends java.lang.Object
    implements ColumnResolver
    Column resolver for generated columns.
    • Field Detail

      • table

        private final Table table
      • columns

        private Column[] columns
      • columnMap

        private java.util.HashMap<java.lang.String,​Column> columnMap
      • current

        private Row current
    • 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
      • createColumns

        private Column[] createColumns()
      • findColumn

        public Column findColumn​(java.lang.String name)
        Description copied from interface: ColumnResolver
        Get the column with the specified name.
        Specified by:
        findColumn in interface ColumnResolver
        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: ColumnResolver
        Get the value for the given column.
        Specified by:
        getValue in interface ColumnResolver
        Parameters:
        column - the column
        Returns:
        the value
      • getRowIdColumn

        public Column getRowIdColumn()
        Description copied from interface: ColumnResolver
        Get the row id pseudo column, if there is one.
        Specified by:
        getRowIdColumn in interface ColumnResolver
        Returns:
        the row id column or null