|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.table.AbstractTable
org.datanucleus.store.rdbms.table.ViewImpl
public abstract class ViewImpl
Representation of a View in a datastore (RDBMS).
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.table.AbstractTable |
|---|
columns, columnsByName, dba, existsInDatastore, identifier, LOCALISER, state, storeMgr, TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED |
| Constructor Summary | |
|---|---|
ViewImpl(org.datanucleus.store.mapped.DatastoreIdentifier name,
RDBMSStoreManager storeMgr)
Constructor, taking the table identifier. |
|
| Method Summary | |
|---|---|
protected void |
addColumnInternal(Column col)
Method to add a Column to the View. |
protected List |
getSQLDropStatements()
Internal method to generate the SQL statements for dropping the view. |
void |
postInitialize(org.datanucleus.ClassLoaderResolver clr)
Post initilize. |
void |
preInitialize(org.datanucleus.ClassLoaderResolver clr)
Pre initilize. |
boolean |
validate(Connection conn,
boolean validateColumnStructure,
boolean autoCreate,
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.datanucleus.store.rdbms.table.Table |
|---|
initialize |
| Methods inherited from interface org.datanucleus.store.mapped.DatastoreContainerObject |
|---|
getIdMapping, getMemberMapping |
| Constructor Detail |
|---|
public ViewImpl(org.datanucleus.store.mapped.DatastoreIdentifier name,
RDBMSStoreManager storeMgr)
name - The identifier for the table.storeMgr - The Store Manager| Method Detail |
|---|
public void preInitialize(org.datanucleus.ClassLoaderResolver clr)
clr - the ClassLoaderResolverpublic void postInitialize(org.datanucleus.ClassLoaderResolver clr)
clr - the ClassLoaderResolver
public boolean validate(Connection conn,
boolean validateColumnStructure,
boolean autoCreate,
Collection autoCreateErrors)
throws 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
SQLException - Thrown when an error occurs in the JDBC callsprotected List getSQLDropStatements()
getSQLDropStatements in class AbstractTableprotected void addColumnInternal(Column col)
addColumnInternal in class AbstractTablecol - The column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||