|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Table
Field Summary | |
---|---|
static int |
TABLE_TYPE_BASE_TABLE
Returned by MgmtTransaction.getTableType() if the table is a base table. |
static int |
TABLE_TYPE_MISSING
Returned by MgmtTransaction.getTableType() if the table does not exist. |
static int |
TABLE_TYPE_UNKNOWN
Returned by MgmtTransaction.getTableType() if the table type is not recognized. |
static int |
TABLE_TYPE_VIEW
Returned by MgmtTransaction.getTableType() if the table is a view. |
Method Summary | |
---|---|
void |
addColumn(Column col)
|
void |
create(StoreManager.MgmtTransaction mtx)
|
void |
drop(StoreManager.MgmtTransaction mtx)
|
boolean |
exists(StoreManager.MgmtTransaction mtx)
Tests if the database table exists. |
DatabaseAdapter |
getDatabaseAdapter()
|
TableName |
getName()
|
void |
initialize(StoreManager.MgmtTransaction mtx)
|
Table |
intern()
Returns a canonical representation for the table object. |
boolean |
isInitialized()
|
boolean |
isValidated()
|
Column |
newColumn(java.lang.Class type,
ColumnName baseName,
Role role)
|
Column |
newColumn(java.lang.Class type,
java.lang.String javaName)
|
boolean |
validate(StoreManager.MgmtTransaction mtx)
|
Field Detail |
---|
static final int TABLE_TYPE_MISSING
static final int TABLE_TYPE_UNKNOWN
static final int TABLE_TYPE_BASE_TABLE
static final int TABLE_TYPE_VIEW
Method Detail |
---|
void initialize(StoreManager.MgmtTransaction mtx)
boolean isInitialized()
TableName getName()
DatabaseAdapter getDatabaseAdapter()
void addColumn(Column col)
Column newColumn(java.lang.Class type, java.lang.String javaName)
Column newColumn(java.lang.Class type, ColumnName baseName, Role role)
Table intern()
This method behaves much like String.intern()
.
A pool of tables, initially empty, is maintained privately.
When the intern method is invoked, if the pool already contains a table
equal to this Table
object as determined by the
equals(Object)
method, then the table from the pool is
returned.
Otherwise, this Table
object is added to the pool and a
reference to this Table
object is returned.
It follows that for any two tables t1
and t2
,
t1.intern() == t2.intern()
is true
if and only if t1.equals(t2)
is true
.
boolean exists(StoreManager.MgmtTransaction mtx) throws java.sql.SQLException
mtx
- the active management transaction
java.sql.SQLException
void create(StoreManager.MgmtTransaction mtx) throws java.sql.SQLException
java.sql.SQLException
boolean validate(StoreManager.MgmtTransaction mtx) throws java.sql.SQLException
java.sql.SQLException
boolean isValidated()
void drop(StoreManager.MgmtTransaction mtx) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |