public interface StoreSchemaHandler
Modifier and Type | Method and Description |
---|---|
void |
clear()
Method to clear out any cached schema information.
|
void |
createSchema(String schemaName,
Properties props,
Object connection)
Method to create the specified schema.
|
void |
createSchemaForClasses(Set<String> classNames,
Properties props,
Object connection)
Method to generate the required schema for the supplied classes.
|
void |
deleteSchema(String schemaName,
Properties props,
Object connection)
Method to delete the specified schema.
|
void |
deleteSchemaForClasses(Set<String> classNames,
Properties props,
Object connection)
Method to delete the schema for the supplied classes.
|
StoreSchemaData |
getSchemaData(Object connection,
String name,
Object[] values)
Accessor for schema data store under the provided name and defined by the specified values.
|
StoreManager |
getStoreManager() |
boolean |
isAutoCreateColumns() |
boolean |
isAutoCreateConstraints() |
boolean |
isAutoCreateSchema() |
boolean |
isAutoCreateTables() |
boolean |
isAutoCreateWarnOnError() |
boolean |
isAutoDeleteColumns() |
boolean |
isValidateColumns() |
boolean |
isValidateConstraints() |
boolean |
isValidateTables() |
void |
validateSchema(Set<String> classNames,
Properties props,
Object connection)
Method to validate the schema for the supplied classes.
|
StoreManager getStoreManager()
boolean isAutoCreateSchema()
boolean isAutoCreateTables()
boolean isAutoCreateConstraints()
boolean isAutoCreateColumns()
boolean isAutoCreateWarnOnError()
boolean isAutoDeleteColumns()
boolean isValidateTables()
boolean isValidateColumns()
boolean isValidateConstraints()
void clear()
void createSchema(String schemaName, Properties props, Object connection)
schemaName
- Name of the schemaprops
- Any properties controlling the schema generationconnection
- Connection to use (null implies this will obtain its own connection)void deleteSchema(String schemaName, Properties props, Object connection)
schemaName
- Name of the schemaprops
- Any properties controlling the schema deletionconnection
- Connection to use (null implies this will obtain its own connection)void createSchemaForClasses(Set<String> classNames, Properties props, Object connection)
classNames
- Names of the classes we want the schema generating for.props
- Any properties controlling the schema generationconnection
- Connection to use (null implies this will obtain its own connection)void deleteSchemaForClasses(Set<String> classNames, Properties props, Object connection)
classNames
- Names of the classes we want the schema deleting for.props
- Any properties controlling the schema deletionconnection
- Connection to use (null implies this will obtain its own connection)void validateSchema(Set<String> classNames, Properties props, Object connection)
classNames
- Names of classesprops
- Any properties controlling schema validationconnection
- Connection to use (null implies this will obtain its own connection)StoreSchemaData getSchemaData(Object connection, String name, Object[] values)
connection
- Connection to the datastorename
- Name of the schema component to return.values
- Value(s) to use as qualifier(s) for selecting the schema componentCopyright © 2017. All rights reserved.