Package org.datanucleus.store.schema
Interface SchemaAwareStoreManager
public interface SchemaAwareStoreManager
Interface to be implemented by all store managers that manage a "schema".
This interface makes the StoreManager usable with SchemaTool.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createDatabase
(String catalogName, String schemaName, Properties props) Method that will create a database (catalog/schema) in the datastore (if the datastore supports it).void
createSchemaForClasses
(Set<String> classNames, Properties props) Create the schema (tables/constraints) for the specified classes (if supported by this datastore).void
deleteDatabase
(String catalogName, String schemaName, Properties props) Method that will delete a database (catalog/schema) from the datastore (if the datastore supports it).void
deleteSchemaForClasses
(Set<String> classNames, Properties props) Delete the schema (tables/constraints) for the specified classes (if supported by this datastore).void
validateSchemaForClasses
(Set<String> classNames, Properties props) Validate the schema (tables/constraints) for the specified classes (if supported by this datastore).
-
Method Details
-
createDatabase
Method that will create a database (catalog/schema) in the datastore (if the datastore supports it).- Parameters:
catalogName
- Name of the catalog to createschemaName
- Name of the schema to createprops
- Any optional properties- Throws:
UnsupportedOperationException
- If not supported
-
deleteDatabase
Method that will delete a database (catalog/schema) from the datastore (if the datastore supports it).- Parameters:
catalogName
- Name of the catalog to deleteschemaName
- Name of the schema to deleteprops
- Any optional properties- Throws:
UnsupportedOperationException
- If not supported
-
createSchemaForClasses
Create the schema (tables/constraints) for the specified classes (if supported by this datastore).- Parameters:
classNames
- Names of the classesprops
- Any optional properties- Throws:
UnsupportedOperationException
- If not supported
-
deleteSchemaForClasses
Delete the schema (tables/constraints) for the specified classes (if supported by this datastore).- Parameters:
classNames
- Names of the classesprops
- Any optional properties- Throws:
UnsupportedOperationException
- If not supported
-
validateSchemaForClasses
Validate the schema (tables/constraints) for the specified classes (if supported by this datastore).- Parameters:
classNames
- Names of the classesprops
- Any optional properties- Throws:
UnsupportedOperationException
- If not supported
-