|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final int TABLE_TYPE_MISSING
public static final int TABLE_TYPE_UNKNOWN
public static final int TABLE_TYPE_BASE_TABLE
public static final int TABLE_TYPE_VIEW
Method Detail |
public void initialize(StoreManager.MgmtTransaction mtx)
public boolean isInitialized()
public TableName getName()
public DatabaseAdapter getDatabaseAdapter()
public void addColumn(Column col)
public Column newColumn(java.lang.Class type, java.lang.String javaName)
public Column newColumn(java.lang.Class type, ColumnName baseName, Role role)
public 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
.
public boolean exists(StoreManager.MgmtTransaction mtx) throws java.sql.SQLException
mtx
- the active management transaction
java.sql.SQLException
public void create(StoreManager.MgmtTransaction mtx) throws java.sql.SQLException
java.sql.SQLException
public boolean validate(StoreManager.MgmtTransaction mtx) throws java.sql.SQLException
java.sql.SQLException
public boolean isValidated()
public 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 |