| java.lang.Object com.quadcap.sql.TupleImpl com.quadcap.sql.Table
Constructor Summary | |
public | Table() | public | Table(String tableName, int modifiers) |
Method Summary | |
public void | addColumn(Column col) Add a column to the table; called during initial table construction
only. | public void | addConstraint(Constraint c) | public void | deleteColumn(int c) | public void | deleteConstraint(String name) Delete the specified table constraint. | final IndexConstraint | getAnyIndex(Session session) | final IndexConstraint | getAnyIndexBut(Session session, IndexConstraint notMe) | final public Constraint | getConstraint(int num) | public Constraint | getConstraint(String name) Get the constraint with the specified name
XXX Maybe we should profile this sucker. | public Cursor | getCursor(Session session, Expression where, String asName, Cursor outer) | public Cursor | getCursor(Session session, Expression where, String asName) | public IndexCursor | getCursor(Session session, IndexConstraint notMe) | IndexConstraint | getIndexConstraint(Session session, Hashtable names, IndexConstraint notMe) | UniqueConstraint | getIndexForColumns(int[] cols) | final IndexConstraint | getIndexForNames(Session session, Hashtable names) | public int | getModifiers() | Hashtable | getNames(Expression ex) | final public int | getNumConstraints() | public UniqueConstraint | getPrimaryKey() Return the table's primary key constraint, if it is defined,
otherwise return null. | Row | getRow(Database db, long rowId) | public String | getType() | public boolean | hasBlobs() | public void | insertRow(Session session, Row row) | public boolean | isUnderConstruction() Get/Set the value of the 'is under construction' flag. | public boolean | isUpdatable() | public void | nameConstraint(Constraint c) Generate a unique, semi-meaningful, name for this constratint,
in case the user didn't specify one. | final public static long | putRow(Session session, Tuple t, Row row) | public void | readExternal(ObjectInput in) | public void | resetColumnConstraints() | public void | setUnderConstruction(boolean v) Set the value of the 'is under construction' flag. | final static String | strip(String s) | public String | toString() | public void | writeExternal(ObjectOutput out) |
GLOBAL | final public static int GLOBAL(Code) | | |
LOCAL | final public static int LOCAL(Code) | | |
STATEMENT_TEMP | final public static int STATEMENT_TEMP(Code) | | |
TEMPORARY | final public static int TEMPORARY(Code) | | Table modifiers, bit fields. If temporary, either global or local
must be specified.
|
hasBlobs | transient int hasBlobs(Code) | | |
tableIdentity | long tableIdentity(Code) | | For in-memory mode, the table identity
|
underConstruction | transient boolean underConstruction(Code) | | |
Table | public Table()(Code) | | Default constructor (required for deserialization)
|
Table | public Table(String tableName, int modifiers)(Code) | | Explicit constructor
|
addColumn | public void addColumn(Column col) throws SQLException(Code) | | Add a column to the table; called during initial table construction
only.
|
deleteColumn | public void deleteColumn(int c) throws SQLException, IOException(Code) | | Delete a column from this table, and reset any column-constraint
mappings
|
getConstraint | final public Constraint getConstraint(int num)(Code) | | Return the specified table constraint (zero-based)
|
getConstraint | public Constraint getConstraint(String name)(Code) | | Get the constraint with the specified name
XXX Maybe we should profile this sucker. A hashtable?
|
getModifiers | public int getModifiers()(Code) | | Return the modifier bits for this table
|
getNumConstraints | final public int getNumConstraints()(Code) | | Return the number of table constraints
|
getPrimaryKey | public UniqueConstraint getPrimaryKey()(Code) | | Return the table's primary key constraint, if it is defined,
otherwise return null.
|
hasBlobs | public boolean hasBlobs() throws SQLException(Code) | | Are any of this table's columns BLOB (or CLOB) types?
|
isUnderConstruction | public boolean isUnderConstruction()(Code) | | Get/Set the value of the 'is under construction' flag. This is used to
determine when ADD CONSTRAINT really has work to do ;-)
|
isUpdatable | public boolean isUpdatable()(Code) | | (haiku-comment)
I am a table
and therefore updateable
true not false |
nameConstraint | public void nameConstraint(Constraint c)(Code) | | Generate a unique, semi-meaningful, name for this constratint,
in case the user didn't specify one.
|
resetColumnConstraints | public void resetColumnConstraints() throws SQLException(Code) | | Reset any constraint-column mapping (typically after a column
has been added or dropped)
|
setUnderConstruction | public void setUnderConstruction(boolean v)(Code) | | Set the value of the 'is under construction' flag.
|
toString | public String toString()(Code) | | String representation for debugging
|
|
|