|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.rdbms.table.AbstractTable
org.jpox.store.rdbms.table.ViewImpl
Representation of a View in a datastore (RDBMS).
Field Summary |
Fields inherited from class org.jpox.store.rdbms.table.AbstractTable |
columns, columnsByName, dba, ddlDumpWriter, identifier, LOCALISER, state, storeMgr |
Fields inherited from interface org.jpox.store.rdbms.table.Table |
TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED, TABLE_TYPE_MISSING, TABLE_TYPE_TABLE, TABLE_TYPE_UNKNOWN, TABLE_TYPE_VIEW |
Constructor Summary | |
ViewImpl(DatastoreIdentifier name,
RDBMSManager storeMgr)
Constructor, taking the table identifier. |
Method Summary | |
protected void |
addColumnInternal(Column col)
Method to add a Column to the View. |
protected java.util.List |
getSQLDropStatements()
Internal method to generate the SQL statements for dropping the view. |
void |
postInitialize(ClassLoaderResolver clr)
Post initilize. |
void |
preInitialize(ClassLoaderResolver clr)
Pre initilize. |
boolean |
validate(java.sql.Connection conn,
boolean validateColumnStructure,
boolean autoCreate,
java.util.Collection autoCreateErrors)
Method to validate the view in the datastore. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jpox.store.rdbms.table.Table |
initialize |
Methods inherited from interface org.jpox.store.DatastoreContainerObject |
getFieldMapping, getIDMapping |
Constructor Detail |
public ViewImpl(DatastoreIdentifier name, RDBMSManager storeMgr)
name
- The identifier for the table.storeMgr
- The Store ManagerMethod Detail |
public void preInitialize(ClassLoaderResolver clr)
clr
- the ClassLoaderResolverpublic void postInitialize(ClassLoaderResolver clr)
clr
- the ClassLoaderResolverpublic boolean validate(java.sql.Connection conn, boolean validateColumnStructure, boolean autoCreate, java.util.Collection autoCreateErrors) throws java.sql.SQLException
conn
- The JDBC ConnectionvalidateColumnStructure
- Whether to validate down to column structure, or just their existenceautoCreate
- Whether to update the view to fix errors (not used).autoCreateErrors
- Errors found during the auto-create process
java.sql.SQLException
- Thrown when an error occurs in the JDBC callsprotected java.util.List getSQLDropStatements()
getSQLDropStatements
in class AbstractTable
protected void addColumnInternal(Column col)
addColumnInternal
in class AbstractTable
col
- The column
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |