com.triactive.jdo.store
Interface Table

All Known Subinterfaces:
ClassTable, JDOTable
All Known Implementing Classes:
AbstractTable, BaseTable, ClassBaseTable, ClassView, FieldTable, JDOBaseTable, JDOView, MapTable, ProbeTable, SchemaTable, SetTable, View

interface Table


Field Summary
static int AUTO_CREATE
          Bit flag passed to validate() to indicate that the table should be created if it is missing.
static int TABLE_TYPE_BASE_TABLE
          Returned by StoreManager.getTableType() if the table is a base table.
static int TABLE_TYPE_MISSING
          Returned by StoreManager.getTableType() if the table does not exist.
static int TABLE_TYPE_UNKNOWN
          Returned by StoreManager.getTableType() if the table type is not recognized.
static int TABLE_TYPE_VIEW
          Returned by StoreManager.getTableType() if the table is a view.
static int VALIDATE
          Bit flag passed to validate() to indicate that the table structure should be validated using JDBC metadata.
 
Method Summary
 void addColumn(Column col)
           
 void create(java.sql.Connection conn)
           
 void drop(java.sql.Connection conn)
           
 boolean exists(java.sql.Connection conn)
           
 SQLIdentifier getName()
           
 java.lang.String getSchemaName()
           
 StoreManager getStoreManager()
           
 void initialize()
           
 boolean isInitialized()
           
 boolean isValidated()
           
 Column newColumn(java.lang.Class type, SQLIdentifier name, Role role)
           
 Column newColumn(java.lang.Class type, java.lang.String javaName)
           
 boolean validate(int flags, java.sql.Connection conn)
           
 

Field Detail

TABLE_TYPE_MISSING

static final int TABLE_TYPE_MISSING
Returned by StoreManager.getTableType() if the table does not exist.

See Also:
Constant Field Values

TABLE_TYPE_UNKNOWN

static final int TABLE_TYPE_UNKNOWN
Returned by StoreManager.getTableType() if the table type is not recognized.

See Also:
Constant Field Values

TABLE_TYPE_BASE_TABLE

static final int TABLE_TYPE_BASE_TABLE
Returned by StoreManager.getTableType() if the table is a base table.

See Also:
Constant Field Values

TABLE_TYPE_VIEW

static final int TABLE_TYPE_VIEW
Returned by StoreManager.getTableType() if the table is a view.

See Also:
Constant Field Values

VALIDATE

static final int VALIDATE
Bit flag passed to validate() to indicate that the table structure should be validated using JDBC metadata.

See Also:
Constant Field Values

AUTO_CREATE

static final int AUTO_CREATE
Bit flag passed to validate() to indicate that the table should be created if it is missing.

See Also:
Constant Field Values
Method Detail

initialize

void initialize()

isInitialized

boolean isInitialized()

getName

SQLIdentifier getName()

getStoreManager

StoreManager getStoreManager()

getSchemaName

java.lang.String getSchemaName()

addColumn

void addColumn(Column col)

newColumn

Column newColumn(java.lang.Class type,
                 java.lang.String javaName)

newColumn

Column newColumn(java.lang.Class type,
                 SQLIdentifier name,
                 Role role)

exists

boolean exists(java.sql.Connection conn)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

create

void create(java.sql.Connection conn)
            throws java.sql.SQLException
Throws:
java.sql.SQLException

validate

boolean validate(int flags,
                 java.sql.Connection conn)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

isValidated

boolean isValidated()

drop

void drop(java.sql.Connection conn)
          throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright ? 2001 TriActive, Inc. All Rights Reserved.