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

Class Table

    • Field Detail

      • emptyArray

        public static final Table[] emptyArray
    • Method Detail

      • getReferencesForDependents

        public OrderedHashSet getReferencesForDependents()
      • getSQL

        public java.lang.String getSQL()
        Specified by:
        getSQL in interface SchemaObject
      • getSQLForReadOnly

        public java.lang.String getSQLForReadOnly()
      • getSQLForTextSource

        public java.lang.String[] getSQLForTextSource(boolean withHeader)
      • getSQLForClustered

        public java.lang.String getSQLForClustered()
      • getSQLForTableSpace

        public java.lang.String getSQLForTableSpace()
      • getTriggerSQL

        public java.lang.String[] getTriggerSQL()
      • getIndexRootsSQL

        public java.lang.String getIndexRootsSQL(long[] roots)
      • getColumnListSQL

        public java.lang.String getColumnListSQL(int[] col,
                                                 int len)
      • getColumnListWithTypeSQL

        public java.lang.String getColumnListWithTypeSQL()
      • isConnected

        public boolean isConnected()
      • compareRows

        public static int compareRows(Session session,
                                      java.lang.Object[] a,
                                      java.lang.Object[] b,
                                      int[] cols,
                                      Type[] coltypes)
        compares two full table rows based on a set of columns
        Parameters:
        a - a full row
        b - a full row
        cols - array of column indexes to compare
        coltypes - array of column types for the full row
        Returns:
        comparison result, -1,0,+1
      • getId

        public int getId()
        Used to create row id's
      • isSchemaBaseTable

        public final boolean isSchemaBaseTable()
      • isWithDataSource

        public final boolean isWithDataSource()
      • isText

        public final boolean isText()
      • isTemp

        public final boolean isTemp()
      • isReadOnly

        public final boolean isReadOnly()
      • isView

        public final boolean isView()
      • isQueryBased

        public boolean isQueryBased()
      • isCached

        public boolean isCached()
      • isDataReadOnly

        public boolean isDataReadOnly()
      • isDropped

        public boolean isDropped()
      • checkDataReadOnly

        public void checkDataReadOnly()
        Used by INSERT, DELETE, UPDATE operations
      • setDataReadOnly

        public void setDataReadOnly(boolean value)
      • isFileBased

        public boolean isFileBased()
        Text or Cached Tables are normally file based
      • addConstraint

        public void addConstraint(Constraint c)
        Adds a constraint.
      • getConstraints

        public Constraint[] getConstraints()
        Returns the list of constraints.
      • getFKConstraints

        public Constraint[] getFKConstraints()
        Returns the list of FK constraints.
      • getPrimaryConstraint

        public Constraint getPrimaryConstraint()
        Returns the primary constraint.
      • getUniqueOrPKConstraintForIndex

        public Constraint getUniqueOrPKConstraintForIndex(Index index)
        Returns any unique Constraint using this index
        Parameters:
        index -
      • addColumn

        public void addColumn(ColumnSchema column)
        Performs the table level checks and adds a column to the table at the DDL level. Only used at table creation, not at alter column.
      • addColumnNoCheck

        public void addColumnNoCheck(ColumnSchema column)
      • hasGeneratedColumn

        public boolean hasGeneratedColumn()
      • hasLobColumn

        public boolean hasLobColumn()
      • hasIdentityColumn

        public boolean hasIdentityColumn()
      • getNextIdentity

        public long getNextIdentity()
      • getDependentExternalConstraints

        public OrderedHashSet getDependentExternalConstraints()
      • getUniquePKConstraintNames

        public OrderedHashSet getUniquePKConstraintNames()
      • getColumnIndex

        public int getColumnIndex(java.lang.String name)
        Returns the index of given column name or throws if not found
      • findColumn

        public int findColumn(java.lang.String name)
        Returns the index of given column name or -1 if not found.
      • getBestRowIdentifiers

        public int[] getBestRowIdentifiers()
      • isBestRowIdentifiersStrict

        public boolean isBestRowIdentifiersStrict()
      • getClusteredIndex

        public Index getClusteredIndex()
      • createPrimaryKey

        public void createPrimaryKey()
        Shortcut for creating default PK's.
      • createPrimaryKey

        public void createPrimaryKey(HsqlNameManager.HsqlName indexName,
                                     int[] columns,
                                     boolean columnsNotNull)
        Creates a single or multi-column primary key and index. sets the colTypes array. Finalises the creation of the table. (fredt@users)
      • createPrimaryKeyConstraint

        public void createPrimaryKeyConstraint(HsqlNameManager.HsqlName indexName,
                                               int[] columns,
                                               boolean columnsNotNull)
      • getColumn

        public ColumnSchema getColumn(int i)
        Returns the Column object at the given index
      • getColumnNameSet

        public OrderedHashSet getColumnNameSet(int[] columnIndexes)
      • getColumnNameSet

        public OrderedHashSet getColumnNameSet(boolean[] columnCheckList)
      • getColumnNames

        public void getColumnNames(boolean[] columnCheckList,
                                   Set set)
      • getTriggerIndex

        public int getTriggerIndex(java.lang.String name)
      • getConstraint

        public Constraint getConstraint(java.lang.String constraintName)
        return the named constriant
      • getUniqueConstraintForIndex

        public Constraint getUniqueConstraintForIndex(Index index)
        Returns any unique Constraint using this index
        Parameters:
        index -
        Returns:
      • isWritable

        public boolean isWritable()
      • isInsertable

        public boolean isInsertable()
      • isUpdatable

        public boolean isUpdatable()
      • isTriggerInsertable

        public boolean isTriggerInsertable()
      • isTriggerUpdatable

        public boolean isTriggerUpdatable()
      • isTriggerDeletable

        public boolean isTriggerDeletable()
      • getUpdatableColumns

        public int[] getUpdatableColumns()
      • getBaseTable

        public Table getBaseTable()
      • getBaseTableColumnMap

        public int[] getBaseTableColumnMap()
      • enforceRowConstraints

        public void enforceRowConstraints(Session session,
                                          java.lang.Object[] data)
        Enforce max field sizes according to SQL column definition. SQL92 13.8
      • enforceTypeLimits

        public void enforceTypeLimits(Session session,
                                      java.lang.Object[] data)
      • getIndexRootsArray

        public final long[] getIndexRootsArray()
        Return the list of file pointers to root nodes for this table's indexes.
      • setIndexRoots

        public void setIndexRoots(long[] roots)
        Sets the index roots of a cached/text table to specified file pointers. If a file pointer is -1 then the particular index root is null. A null index root signifies an empty table. Accordingly, all index roots should be null or all should be a valid file pointer/reference.
      • insertNoCheckFromLog

        public void insertNoCheckFromLog(Session session,
                                         java.lang.Object[] data)
      • insertSys

        public int insertSys(Session session,
                             PersistentStore store,
                             Result ins)
        Used for system table inserts. No checks. No identity columns.
      • insertFromScript

        public void insertFromScript(Session session,
                                     PersistentStore store,
                                     java.lang.Object[] data)
        Not for general use. Used by ScriptReader to unconditionally insert a row into the table when the .script file is read.
      • insertData

        public void insertData(Session session,
                               PersistentStore store,
                               java.lang.Object[] data)
        For system operations outside transaction control
      • insertSys

        public void insertSys(Session session,
                              PersistentStore store,
                              java.lang.Object[] data)
        Used by the system tables only
      • setGeneratedColumns

        public void setGeneratedColumns(Session session,
                                        java.lang.Object[] data)
      • systemSetIdentityColumn

        public void systemSetIdentityColumn(Session session,
                                            java.lang.Object[] data)
      • getDeleteRowFromLog

        public Row getDeleteRowFromLog(Session session,
                                       java.lang.Object[] data)
        For log statements. Find a single row to delete.
      • getDataExpression

        public Expression getDataExpression()
      • prepareTable

        public void prepareTable()
      • materialise

        public void materialise(Session session)
      • materialiseCorrelated

        public void materialiseCorrelated(Session session)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.