|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Table
Representation of a table in a datastore.
There are 2 aspects to a table. The first is the internal representation, provided here. This has a state. The second aspect to the table is its external (datastore) representation. This reflects whether it exists, or whether it has been deleted, etc.
This interface provides some methods for mapping from the internal representation to the external representation. These are the methods
| Method Summary | |
|---|---|
boolean |
create(Connection conn)
Method to create the table in the datastore representation. |
void |
drop(Connection conn)
Method to drop the table from the datastore representation. |
boolean |
exists(Connection conn,
boolean create)
Accessor for whether the table exists in the datastore. |
String |
getCatalogName()
Accessor for the Catalog name for this table. |
String |
getSchemaName()
Accessor for the Schema name for this table. |
void |
initialize(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the table. |
boolean |
isInitialized()
Accessor for whether the table has been initialised. |
boolean |
isInitializedModified()
Accessor for whether the table has been modified after being initialised. |
boolean |
isValidated()
Accessor for whether the table is validated. |
void |
postInitialize(org.datanucleus.ClassLoaderResolver clr)
Post-initialize; for things that must be set after all classes have been initialized. |
void |
preInitialize(org.datanucleus.ClassLoaderResolver clr)
Pre-initialize method; for things that must be initialized right after construction. |
boolean |
validate(Connection conn,
boolean validateColumnStructure,
boolean autoCreate,
Collection autoCreateErrors)
Method to validate the table against what is in the datastore. |
| Methods inherited from interface org.datanucleus.store.mapped.DatastoreContainerObject |
|---|
addDatastoreField, getDatastoreField, getDatastoreFields, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getIdMapping, getMemberMapping, getMultitenancyMapping, getStoreManager, getVersionMapping, getVersionMetaData, hasDatastoreField |
| Method Detail |
|---|
String getCatalogName()
String getSchemaName()
void initialize(org.datanucleus.ClassLoaderResolver clr)
clr - The ClassLoaderResolvervoid preInitialize(org.datanucleus.ClassLoaderResolver clr)
clr - the ClassLoaderResolvervoid postInitialize(org.datanucleus.ClassLoaderResolver clr)
clr - the ClassLoaderResolverboolean isInitialized()
boolean isInitializedModified()
boolean validate(Connection conn,
boolean validateColumnStructure,
boolean autoCreate,
Collection autoCreateErrors)
throws SQLException
conn - The connectionvalidateColumnStructure - Whether to validate down to the column structure, or just the existenceautoCreate - Whether to update the table to fix any errors.autoCreateErrors - Errors found during the auto-create process
SQLException - Thrown if an error occurrs in the validationboolean isValidated()
boolean exists(Connection conn,
boolean create)
throws SQLException
conn - The connecton to use to verify itcreate - Whether to create it if it doesn't exist
SQLException - Thrown if an error occurs in the check
boolean create(Connection conn)
throws SQLException
conn - The connection to use
SQLException - Thrown if an error occurs creating the table.
void drop(Connection conn)
throws SQLException
conn - The connection to use
SQLException - Thrown if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||