Class SystemViewH2Adapter

  • All Implemented Interfaces:
    org.h2.engine.DbObject, org.h2.schema.SchemaObject

    public class SystemViewH2Adapter
    extends org.h2.table.TableBase
    System H2 table over a view.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ArrayList<org.h2.index.Index> indexes
      Indexes.
      protected SqlSystemIndex scanIdx
      Scan index.
      protected SqlSystemView view
      Meta view.
      • Fields inherited from class org.h2.table.Table

        columns, compareMode, isHidden, TYPE_CACHED, TYPE_MEMORY
      • Fields inherited from class org.h2.engine.DbObjectBase

        comment, database, trace
      • Fields inherited from interface org.h2.engine.DbObject

        AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.h2.index.Index addIndex​(org.h2.engine.Session ses, String idxName, int idxId, org.h2.table.IndexColumn[] cols, org.h2.index.IndexType idxType, boolean create, String idxComment)
      void addRow​(org.h2.engine.Session ses, org.h2.result.Row row)
      boolean canDrop()
      boolean canGetRowCount()
      boolean canReference()
      void checkRename()
      void checkSupportAlter()
      void close​(org.h2.engine.Session ses)
      long getDiskSpaceUsed()
      ArrayList<org.h2.index.Index> getIndexes()
      long getMaxDataModificationId()
      long getRowCount​(org.h2.engine.Session ses)
      long getRowCountApproximation()
      Iterator<org.h2.result.Row> getRows​(org.h2.engine.Session ses, org.h2.result.SearchRow first, org.h2.result.SearchRow last)  
      org.h2.index.Index getScanIndex​(org.h2.engine.Session ses)
      org.h2.table.TableType getTableType()
      org.h2.index.Index getUniqueIndex()
      boolean isDeterministic()
      boolean isLockedExclusively()
      boolean lock​(org.h2.engine.Session ses, boolean exclusive, boolean forceLockEvenInMvcc)
      void removeChildrenAndResources​(org.h2.engine.Session ses)
      void removeRow​(org.h2.engine.Session ses, org.h2.result.Row row)
      void truncate​(org.h2.engine.Session ses)
      void unlock​(org.h2.engine.Session ses)
      • Methods inherited from class org.h2.table.TableBase

        getCreateSQL, getDropSQL, isGlobalTemporary
      • Methods inherited from class org.h2.table.Table

        addConstraint, addDependencies, addDependentView, addSequence, addSynonym, addTrigger, canTruncate, checkDeadlock, checkWritingAllowed, commit, compareTypeSafe, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getCreateSQLForCopy, getDefaultValue, getDependentViews, getIndex, getIndexForColumn, getOnCommitDrop, getOnCommitTruncate, getOnUpdateValue, getPrimaryKey, getRow, getRowIdColumn, getScanIndex, getTemplateRow, getTemplateSimpleRow, getType, hasSelectTrigger, isHidden, isLockedExclusivelyBy, isMVStore, isPersistData, isPersistIndexes, isQueryComparable, isTableExpression, isView, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, updateRows, validateConvertUpdateSequence
      • Methods inherited from class org.h2.schema.SchemaObjectBase

        getSchema, getSQL, initSchemaObjectBase
      • Methods inherited from class org.h2.engine.DbObjectBase

        getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toString
      • Methods inherited from interface org.h2.engine.DbObject

        getComment, getDatabase, getId, getName, isTemporary, setComment, setTemporary
    • Field Detail

      • indexes

        protected final ArrayList<org.h2.index.Index> indexes
        Indexes. Note: We need ArrayList here by H2 getIndexes() method contract.
    • Constructor Detail

      • SystemViewH2Adapter

        public SystemViewH2Adapter​(org.h2.command.ddl.CreateTableData data,
                                   SqlSystemView view)
        Parameters:
        data - Data.
        view - Meta view.
    • Method Detail

      • addIndex

        public org.h2.index.Index addIndex​(org.h2.engine.Session ses,
                                           String idxName,
                                           int idxId,
                                           org.h2.table.IndexColumn[] cols,
                                           org.h2.index.IndexType idxType,
                                           boolean create,
                                           String idxComment)
        Specified by:
        addIndex in class org.h2.table.Table
      • lock

        public boolean lock​(org.h2.engine.Session ses,
                            boolean exclusive,
                            boolean forceLockEvenInMvcc)
        Specified by:
        lock in class org.h2.table.Table
      • unlock

        public void unlock​(org.h2.engine.Session ses)
        Specified by:
        unlock in class org.h2.table.Table
      • isLockedExclusively

        public boolean isLockedExclusively()
        Specified by:
        isLockedExclusively in class org.h2.table.Table
      • removeRow

        public void removeRow​(org.h2.engine.Session ses,
                              org.h2.result.Row row)
        Specified by:
        removeRow in class org.h2.table.Table
      • addRow

        public void addRow​(org.h2.engine.Session ses,
                           org.h2.result.Row row)
        Specified by:
        addRow in class org.h2.table.Table
      • removeChildrenAndResources

        public void removeChildrenAndResources​(org.h2.engine.Session ses)
        Specified by:
        removeChildrenAndResources in interface org.h2.engine.DbObject
        Overrides:
        removeChildrenAndResources in class org.h2.table.Table
      • close

        public void close​(org.h2.engine.Session ses)
        Specified by:
        close in class org.h2.table.Table
      • checkRename

        public void checkRename()
        Specified by:
        checkRename in interface org.h2.engine.DbObject
        Specified by:
        checkRename in class org.h2.engine.DbObjectBase
      • checkSupportAlter

        public void checkSupportAlter()
        Specified by:
        checkSupportAlter in class org.h2.table.Table
      • truncate

        public void truncate​(org.h2.engine.Session ses)
        Specified by:
        truncate in class org.h2.table.Table
      • getRowCount

        public long getRowCount​(org.h2.engine.Session ses)
        Specified by:
        getRowCount in class org.h2.table.Table
      • canGetRowCount

        public boolean canGetRowCount()
        Specified by:
        canGetRowCount in class org.h2.table.Table
      • getRowCountApproximation

        public long getRowCountApproximation()
        Specified by:
        getRowCountApproximation in class org.h2.table.Table
      • canDrop

        public boolean canDrop()
        Specified by:
        canDrop in class org.h2.table.Table
      • getTableType

        public org.h2.table.TableType getTableType()
        Specified by:
        getTableType in class org.h2.table.Table
      • getScanIndex

        public org.h2.index.Index getScanIndex​(org.h2.engine.Session ses)
        Specified by:
        getScanIndex in class org.h2.table.Table
      • getUniqueIndex

        public org.h2.index.Index getUniqueIndex()
        Specified by:
        getUniqueIndex in class org.h2.table.Table
      • getIndexes

        public ArrayList<org.h2.index.Index> getIndexes()
        Specified by:
        getIndexes in class org.h2.table.Table
      • getMaxDataModificationId

        public long getMaxDataModificationId()
        Specified by:
        getMaxDataModificationId in class org.h2.table.Table
      • getDiskSpaceUsed

        public long getDiskSpaceUsed()
        Specified by:
        getDiskSpaceUsed in class org.h2.table.Table
      • isDeterministic

        public boolean isDeterministic()
        Specified by:
        isDeterministic in class org.h2.table.Table
      • canReference

        public boolean canReference()
        Overrides:
        canReference in class org.h2.table.Table
      • getRows

        public Iterator<org.h2.result.Row> getRows​(org.h2.engine.Session ses,
                                                   org.h2.result.SearchRow first,
                                                   org.h2.result.SearchRow last)
        Parameters:
        ses - Session.
        first - First.
        last - Last.