Documentation of 'org.hsqldb.TableBase' Java class
TableBase
org.hsqldb

Class TableBase

  • Direct Known Subclasses:
    Table


    public class TableBase
    extends java.lang.Object
    The base of all HSQLDB table implementations.
    Since:
    1.7.2
    • Constructor Detail

      • TableBase

        public TableBase(Session session,
                         Database database,
                         int scope,
                         int type,
                         Type[] colTypes)
    • Method Detail

      • getTableType

        public final int getTableType()
      • getPersistenceId

        public long getPersistenceId()
      • getSpaceID

        public int getSpaceID()
      • setSpaceID

        public void setSpaceID(int id)
      • onCommitPreserve

        public final boolean onCommitPreserve()
      • getIndexCount

        public final int getIndexCount()
      • getPrimaryIndex

        public final Index getPrimaryIndex()
      • getPrimaryKeyTypes

        public final Type[] getPrimaryKeyTypes()
      • hasPrimaryKey

        public final boolean hasPrimaryKey()
      • getPrimaryKey

        public final int[] getPrimaryKey()
      • getColumnTypes

        public final Type[] getColumnTypes()
        Returns an array of Type indicating the SQL type of the columns
      • getFullIndex

        public Index getFullIndex()
        Returns an index on all the columns
      • getIndex

        public final Index getIndex(int i)
        Returns the Index object at the given index
      • getIndexList

        public final Index[] getIndexList()
        Returns the indexes
      • getNewColumnCheckList

        public final boolean[] getNewColumnCheckList()
        Returns empty boolean array.
      • getColumnCount

        public int getColumnCount()
        Returns the count of all visible columns.
      • getDataColumnCount

        public final int getDataColumnCount()
        Returns the count of all columns.
      • isTransactional

        public boolean isTransactional()
      • setTransactional

        public void setTransactional(boolean value)
      • setBestRowIdentifiers

        public final void setBestRowIdentifiers()
        This method is called whenever there is a change to table structure and serves two porposes: (a) to reset the best set of columns that identify the rows of the table (b) to reset the best index that can be used to find rows of the table given a column value. (a) gives most weight to a primary key index, followed by a unique address with the lowest count of nullable columns. Otherwise there is no best row identifier. (b) finds for each column an index with a corresponding first column. It uses any type of visible index and accepts the one with the largest column count. bestIndex is the user defined, primary key, the first unique index, or the first non-unique index. NULL if there is no user-defined index.
      • getColumnNotNull

        public boolean[] getColumnNotNull()
      • createAndAddIndexStructure

        public final Index createAndAddIndexStructure(Session session,
                                                      HsqlNameManager.HsqlName name,
                                                      int[] columns,
                                                      boolean[] descending,
                                                      boolean[] nullsLast,
                                                      boolean unique,
                                                      boolean constraint,
                                                      boolean forward)
      • dropIndex

        public void dropIndex(Session session,
                              int todrop)
        Performs Table structure modification and changes to the index nodes to remove a given index from a MEMORY or TEXT table. Not for PK index.
      • setIndexes

        public final void setIndexes(Index[] indexes)
      • getEmptyRowData

        public final java.lang.Object[] getEmptyRowData()
      • createIndex

        public final Index createIndex(Session session,
                                       HsqlNameManager.HsqlName name,
                                       int[] columns,
                                       boolean[] descending,
                                       boolean[] nullsLast,
                                       boolean unique,
                                       boolean constraint,
                                       boolean forward)
        Create new memory-resident index. For MEMORY and TEXT tables.
      • clearAllData

        public void clearAllData(Session session)
      • isEmpty

        public final boolean isEmpty(Session session)
        Returns true if the table has any rows at all.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.