public interface DatabaseSchemaService
Modifier and Type | Method and Description |
---|---|
void |
create()
Creates the database schema, upgrading an existing schema if it is present.
|
void |
drop()
Drops the database schema.
|
DatabaseSchemaStatus<?> |
getStatus()
Returns the status of the database schema.
|
void |
setListeners(DatabaseSchemaServiceListener... databaseSchemaServiceListener)
Set the
DatabaseSchemaServiceListener which gets called before and after each operation. |
void |
validate()
Validates the database schema and checks if the codebase is able to use the schema.
|
void create()
DatabaseSchemaException
- if there was an error creating the schemavoid validate()
DatabaseSchemaException
- if the database schema is not validvoid drop()
DatabaseSchemaException
- if there was an error dropping the schemaDatabaseSchemaStatus<?> getStatus()
DatabaseSchemaException
- if there was an error getting the status of the schemavoid setListeners(DatabaseSchemaServiceListener... databaseSchemaServiceListener)
DatabaseSchemaServiceListener
which gets called before and after each operation.databaseSchemaServiceListener
- the database schema service listenerCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.