public abstract class ViewImpl extends AbstractTable
columns, columnsByIdentifier, dba, existsInDatastore, identifier, state, storeMgr, TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED
Constructor and Description |
---|
ViewImpl(DatastoreIdentifier name,
RDBMSStoreManager storeMgr)
Constructor, taking the table identifier.
|
Modifier and Type | Method and Description |
---|---|
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 initialise.
|
void |
preInitialize(org.datanucleus.ClassLoaderResolver clr)
Pre-initialise.
|
boolean |
validate(Connection conn,
boolean validateColumnStructure,
boolean autoCreate,
Collection autoCreateErrors)
Method to validate the view in the datastore.
|
addColumn, allowDDLOutput, assertIsInitialized, assertIsInitializedModified, assertIsPKInitialized, assertIsPKUninitialized, assertIsUninitialized, assertIsValidated, create, drop, equals, executeDdlStatement, executeDdlStatementList, exists, getCatalogName, getClassMetaData, getColumn, getColumnForName, getColumnForPosition, getColumns, getDatastoreIdColumn, getDatastoreIdentifierFullyQualified, getDiscriminatorColumn, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getMultitenancyColumn, getMultitenancyMapping, getName, getNumberOfColumns, getSchemaName, getSQLCreateStatements, getStoreManager, getVersionColumn, getVersionMapping, getVersionMetaData, hasColumn, hasColumnName, hashCode, isInitialized, isInitializedModified, isPKInitialized, isValidated, tableExistsInDatastore, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIdMapping, getMemberMapping, initialize
public ViewImpl(DatastoreIdentifier name, RDBMSStoreManager storeMgr)
name
- The identifier for the table.storeMgr
- The Store Managerpublic void preInitialize(org.datanucleus.ClassLoaderResolver clr)
clr
- the ClassLoaderResolverpublic void postInitialize(org.datanucleus.ClassLoaderResolver clr)
clr
- the ClassLoaderResolverpublic 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 processSQLException
- Thrown when an error occurs in the JDBC callsprotected List getSQLDropStatements()
getSQLDropStatements
in class AbstractTable
protected void addColumnInternal(Column col)
addColumnInternal
in class AbstractTable
col
- The columnCopyright © 2017. All rights reserved.