public class SchemaTable extends TableImpl
columns, columnsByName, 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 |
|---|
SchemaTable(RDBMSStoreManager storeMgr,
String tableName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(RDBMSStoreData data,
org.datanucleus.store.connection.ManagedConnection conn)
Method to insert a row in the SchemaTable.
|
void |
deleteAllClasses(org.datanucleus.store.connection.ManagedConnection conn)
Method to delete all classes from the SchemaTable.
|
void |
deleteClass(String class_name,
org.datanucleus.store.connection.ManagedConnection conn)
Method to delete a class from the SchemaTable.
|
HashSet |
getAllClasses(org.datanucleus.store.connection.ManagedConnection conn)
Accessor for the classes already supported by this Schema Table.
|
JavaTypeMapping |
getIdMapping()
Accessor for a mapping for the ID (persistable) for this table.
|
JavaTypeMapping |
getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor the for the mapping for a field/property stored in this table.
|
void |
initialize(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the table.
|
createConstraints, dropConstraints, getExpectedCandidateKeys, getExpectedForeignKeys, getExpectedIndices, getPrimaryKey, getSQLAddCandidateKeyStatements, getSQLAddFKStatements, getSQLCreateIndexStatements, getSQLCreateStatements, getSQLDropStatements, initializeColumnInfoForPrimaryKeyColumns, initializeColumnInfoFromDatastore, logMapping, postInitialize, preInitialize, validate, validateColumns, validateConstraints, validatePrimaryKeyaddColumn, addColumnInternal, 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, getStoreManager, getVersionColumn, getVersionMapping, getVersionMetaData, hasColumn, hasColumnName, hashCode, isInitialized, isInitializedModified, isPKInitialized, isValidated, tableExistsInDatastore, toStringpublic SchemaTable(RDBMSStoreManager storeMgr, String tableName)
storeMgr - The RDBMSManager for this datastoretableName - Name of the starter table (optional, uses NUCLEUS_TABLES when this is null)public void initialize(org.datanucleus.ClassLoaderResolver clr)
clr - The ClassLoaderResolverpublic JavaTypeMapping getIdMapping()
public HashSet getAllClasses(org.datanucleus.store.connection.ManagedConnection conn) throws SQLException
conn - Connection for this datastore.SQLException - Thrown when an error occurs in the process.public void addClass(RDBMSStoreData data, org.datanucleus.store.connection.ManagedConnection conn) throws SQLException
data - Data for the classconn - Connection to the datastoreSQLException - Thrown when an error occurs inserting the schema.public void deleteClass(String class_name, org.datanucleus.store.connection.ManagedConnection conn) throws SQLException
class_name - Name of class to deleteconn - Connection to the datastoreSQLException - Thrown when an error occurs deleting the schema.public void deleteAllClasses(org.datanucleus.store.connection.ManagedConnection conn)
throws SQLException
conn - Connection to the datastoreSQLException - Thrown when an error occurs deleting the schema.public JavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
mmd - MetaData for the field whose mapping we wantCopyright © 2015. All rights reserved.