com.triactive.jdo.store
Interface JDOTable

All Superinterfaces:
Table
All Known Subinterfaces:
ClassTable
All Known Implementing Classes:
ClassBaseTable, ClassView, JDOBaseTable, JDOView

interface JDOTable
extends 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)
           
 java.lang.String getJavaName()
           
 SQLIdentifier getName()
           
 java.lang.String getSchemaName()
           
 StoreManager getStoreManager()
           
 int getTableID()
           
 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)
           
 OID newOID()
           
 boolean validate(int flags, java.sql.Connection conn)
           
 

Field Detail

TABLE_TYPE_MISSING

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

See Also:
Constant Field Values

TABLE_TYPE_UNKNOWN

public 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

public 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

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

See Also:
Constant Field Values

VALIDATE

public 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

public 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

getTableID

public int getTableID()

getJavaName

public java.lang.String getJavaName()

newOID

public OID newOID()

initialize

public void initialize()

isInitialized

public boolean isInitialized()

getName

public SQLIdentifier getName()

getStoreManager

public StoreManager getStoreManager()

getSchemaName

public java.lang.String getSchemaName()

addColumn

public void addColumn(Column col)

newColumn

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

newColumn

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

exists

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

create

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

validate

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

isValidated

public boolean isValidated()

drop

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


Copyright ? 2001 TriActive, Inc. All Rights Reserved.