com.triactive.jdo.store
Class BaseTable

java.lang.Object
  extended by com.triactive.jdo.store.AbstractTable
      extended by com.triactive.jdo.store.BaseTable
All Implemented Interfaces:
Table
Direct Known Subclasses:
JDOBaseTable, ProbeTable, SchemaTable

abstract class BaseTable
extends AbstractTable


Field Summary
 
Fields inherited from class com.triactive.jdo.store.AbstractTable
columns, columnsByName, dba, name, state, storeMgr, TABLE_STATE_INITIALIZED, TABLE_STATE_NEW, TABLE_STATE_VALIDATED
 
Fields inherited from interface com.triactive.jdo.store.Table
AUTO_CREATE, TABLE_TYPE_BASE_TABLE, TABLE_TYPE_MISSING, TABLE_TYPE_UNKNOWN, TABLE_TYPE_VIEW, VALIDATE
 
Constructor Summary
BaseTable(SQLIdentifier name, StoreManager storeMgr)
           
BaseTable(StoreManager storeMgr)
           
 
Method Summary
 void create(java.sql.Connection conn)
           
 void drop(java.sql.Connection conn)
           
 void dropConstraints(java.sql.Connection conn)
           
protected  java.util.List getExpectedForeignKeys()
           
protected  java.util.Set getExpectedIndices()
           
 PrimaryKey getExpectedPrimaryKey()
           
protected  java.util.Map getSQLAddFKStatements(java.util.Map actualForeignKeysByName)
           
protected  java.util.Map getSQLCreateIndexStatements(java.util.Map actualIndicesByName)
           
protected  java.util.List getSQLCreateStatements()
           
protected  java.util.List getSQLDropStatements()
           
 boolean validate(int flags, java.sql.Connection conn)
           
 boolean validateConstraints(int flags, java.sql.Connection conn)
           
 
Methods inherited from class com.triactive.jdo.store.AbstractTable
addColumn, assertIsInitialized, assertIsUninitialized, assertIsValidated, equals, executeStatementList, exists, getName, getSchemaName, getStoreManager, hasColumnName, hashCode, isInitialized, isValidated, newColumn, newColumn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.triactive.jdo.store.Table
initialize
 

Constructor Detail

BaseTable

public BaseTable(StoreManager storeMgr)

BaseTable

public BaseTable(SQLIdentifier name,
                 StoreManager storeMgr)
Method Detail

getExpectedPrimaryKey

public PrimaryKey getExpectedPrimaryKey()

create

public void create(java.sql.Connection conn)
            throws java.sql.SQLException
Specified by:
create in interface Table
Overrides:
create in class AbstractTable
Throws:
java.sql.SQLException

validate

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

validateConstraints

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

drop

public void drop(java.sql.Connection conn)
          throws java.sql.SQLException
Specified by:
drop in interface Table
Overrides:
drop in class AbstractTable
Throws:
java.sql.SQLException

dropConstraints

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

getExpectedForeignKeys

protected java.util.List getExpectedForeignKeys()

getExpectedIndices

protected java.util.Set getExpectedIndices()

getSQLCreateStatements

protected java.util.List getSQLCreateStatements()
Specified by:
getSQLCreateStatements in class AbstractTable

getSQLAddFKStatements

protected java.util.Map getSQLAddFKStatements(java.util.Map actualForeignKeysByName)

getSQLCreateIndexStatements

protected java.util.Map getSQLCreateIndexStatements(java.util.Map actualIndicesByName)

getSQLDropStatements

protected java.util.List getSQLDropStatements()
Specified by:
getSQLDropStatements in class AbstractTable


Copyright ? 2001 TriActive, Inc. All Rights Reserved.