public interface StoreSchemaHandler
Modifier and Type | Method and Description |
---|---|
void |
clear()
Method to clear out any cached schema information.
|
void |
createDatabase(String catalogName,
String schemaName,
Properties props,
Object connection)
Method to create the specified database (catalog/schema).
|
void |
createSchemaForClasses(Set<String> classNames,
Properties props,
Object connection)
Method to generate the required schema for the supplied classes.
|
void |
deleteDatabase(String catalogName,
String schemaName,
Properties props,
Object connection)
Method to delete the specified database (catalog/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 |
isAutoCreateDatabase() |
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 isAutoCreateDatabase()
boolean isAutoCreateTables()
boolean isAutoCreateConstraints()
boolean isAutoCreateColumns()
boolean isAutoCreateWarnOnError()
boolean isAutoDeleteColumns()
boolean isValidateTables()
boolean isValidateColumns()
boolean isValidateConstraints()
void clear()
void createDatabase(String catalogName, String schemaName, Properties props, Object connection)
catalogName
- Name of the catalogschemaName
- Name of the schemaprops
- Any properties controlling the schema generationconnection
- Connection to use (null implies this will obtain its own connection)void deleteDatabase(String catalogName, String schemaName, Properties props, Object connection)
catalogName
- Name of the catalogschemaName
- 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 © 2019. All rights reserved.