org.hsqldb
Class Table

java.lang.Object
  extended byorg.hsqldb.BaseTable
      extended byorg.hsqldb.Table

public class Table
extends BaseTable

To Do:
fredt - move error and assert string literals to Trace

Field Summary
protected  org.hsqldb.Cache cache
           
static int CACHED_TABLE
           
protected  Database database
           
protected  int iColumnCount
           
protected  int indexType
           
protected  boolean isCached
           
protected  boolean isReadOnly
           
protected  boolean isTemp
           
protected  int iVisibleColumns
           
static int MEMORY_TABLE
           
protected  int ownerSessionId
           
static int SYSTEM_SUBQUERY
           
static int SYSTEM_TABLE
           
protected  org.hsqldb.HsqlNameManager.HsqlName tableName
           
protected  int tableType
           
static int TEMP_TABLE
           
static int TEMP_TEXT_TABLE
           
static int TEXT_TABLE
           
 HashMappedList vColumn
           
static int VIEW
           
 
Method Summary
protected  Table duplicate()
           
protected  void enforceCheckConstraints(Object[] data)
          Checks a row against NOT NULL constraints on columns.
 int getColumnCount()
          Method declaration
 int[] getColumnTypes()
          Method declaration
protected  String getDataSource()
           
protected  org.hsqldb.Index getIndex(int i)
          Method declaration
 org.hsqldb.HsqlNameManager.HsqlName getName()
          Method declaration
 int getTableType()
           
 boolean hasPrimaryKey()
           
protected  void insertNoChange(org.hsqldb.CachedDataRow r)
          Used by TextCache to insert a row into the indexes when the source file is first read.
 void insertNoCheck(Object[] row, Session c, boolean log)
          Low level method for row insert.
 boolean isDataReadOnly()
           
protected  boolean isDescDataSource()
           
 boolean isReadOnly()
           
 boolean isTemp()
           
 boolean isText()
           
protected  void setDataSource(String source, boolean isDesc, Session s, boolean newFile)
           
protected  void setIdentityColumn(Object[] row, Session c)
          If there is an identity column (visible or hidden) on the table, sets the value and/or adjusts the iIdentiy value for the table.
 
Methods inherited from class org.hsqldb.BaseTable
iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_TABLE

public static final int SYSTEM_TABLE
See Also:
Constant Field Values

SYSTEM_SUBQUERY

public static final int SYSTEM_SUBQUERY
See Also:
Constant Field Values

TEMP_TABLE

public static final int TEMP_TABLE
See Also:
Constant Field Values

MEMORY_TABLE

public static final int MEMORY_TABLE
See Also:
Constant Field Values

CACHED_TABLE

public static final int CACHED_TABLE
See Also:
Constant Field Values

TEMP_TEXT_TABLE

public static final int TEMP_TEXT_TABLE
See Also:
Constant Field Values

TEXT_TABLE

public static final int TEXT_TABLE
See Also:
Constant Field Values

VIEW

public static final int VIEW
See Also:
Constant Field Values

vColumn

public HashMappedList vColumn

iColumnCount

protected int iColumnCount

iVisibleColumns

protected int iVisibleColumns

database

protected Database database

cache

protected org.hsqldb.Cache cache

tableName

protected org.hsqldb.HsqlNameManager.HsqlName tableName

tableType

protected int tableType

ownerSessionId

protected int ownerSessionId

isReadOnly

protected boolean isReadOnly

isTemp

protected boolean isTemp

isCached

protected boolean isCached

indexType

protected int indexType
Method Detail

isText

public final boolean isText()

isTemp

public final boolean isTemp()

isReadOnly

public final boolean isReadOnly()

getTableType

public final int getTableType()

isDataReadOnly

public final boolean isDataReadOnly()

setDataSource

protected void setDataSource(String source,
                             boolean isDesc,
                             Session s,
                             boolean newFile)
                      throws HsqlException
Throws:
HsqlException

getDataSource

protected String getDataSource()

isDescDataSource

protected boolean isDescDataSource()

getName

public org.hsqldb.HsqlNameManager.HsqlName getName()
Method declaration

Returns:

duplicate

protected Table duplicate()
                   throws HsqlException
Throws:
HsqlException

getColumnCount

public int getColumnCount()
Method declaration

Returns:

hasPrimaryKey

public boolean hasPrimaryKey()

insertNoCheck

public void insertNoCheck(Object[] row,
                          Session c,
                          boolean log)
                   throws HsqlException
Low level method for row insert. Is used when reading db scripts. UNIQUE or PRIMARY constraints are enforced by attempting to add the row to the indexes.

Throws:
HsqlException

insertNoChange

protected void insertNoChange(org.hsqldb.CachedDataRow r)
                       throws HsqlException
Used by TextCache to insert a row into the indexes when the source file is first read.

Throws:
HsqlException

enforceCheckConstraints

protected void enforceCheckConstraints(Object[] data)
                                throws HsqlException
Checks a row against NOT NULL constraints on columns.

Throws:
HsqlException

setIdentityColumn

protected void setIdentityColumn(Object[] row,
                                 Session c)
                          throws HsqlException
If there is an identity column (visible or hidden) on the table, sets the value and/or adjusts the iIdentiy value for the table.

Throws:
HsqlException

getColumnTypes

public int[] getColumnTypes()
Method declaration

Returns:

getIndex

protected org.hsqldb.Index getIndex(int i)
Method declaration

Parameters:
i -
Returns:


Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.