public interface DatabaseUtility
Modifier and Type | Method and Description |
---|---|
boolean |
doesTableExist(java.lang.String tableName)
Does table exist.
|
void |
dropDatabase(java.lang.String databaseName)
Drop database.
|
void |
executeScript(org.springframework.core.io.Resource creationScript)
Execute script.
|
void |
executeScript(org.springframework.core.io.Resource creationScript,
java.lang.String tableSetPrefix) |
void |
executeScript(org.springframework.core.io.Resource creationScript,
java.lang.String commonPrefix,
java.lang.String tableSetPrefix)
Execute script.
|
void |
executeScript(java.lang.String creationScript)
Execute script.
|
void |
executeScript(java.lang.String creationScript,
java.lang.String tableSetPrefix) |
void |
executeScript(java.lang.String creationScript,
java.lang.String commonPrefix,
java.lang.String tableSetPrefix) |
void |
truncateTable(java.lang.String tableName)
Truncate table.
|
void dropDatabase(java.lang.String databaseName) throws java.lang.Exception
databaseName
- the database namejava.lang.Exception
- the exceptionvoid truncateTable(java.lang.String tableName) throws java.lang.Exception
tableName
- the table namejava.lang.Exception
- the exceptionboolean doesTableExist(java.lang.String tableName)
tableName
- the table namevoid executeScript(org.springframework.core.io.Resource creationScript) throws java.lang.Exception
creationScript
- the creation scriptjava.lang.Exception
- the exceptionvoid executeScript(org.springframework.core.io.Resource creationScript, java.lang.String commonPrefix, java.lang.String tableSetPrefix) throws java.lang.Exception
creationScript
- the creation scriptprefix
- the prefixjava.lang.Exception
- the exceptionvoid executeScript(java.lang.String creationScript, java.lang.String commonPrefix, java.lang.String tableSetPrefix) throws java.lang.Exception
java.lang.Exception
void executeScript(org.springframework.core.io.Resource creationScript, java.lang.String tableSetPrefix) throws java.lang.Exception
java.lang.Exception
void executeScript(java.lang.String creationScript) throws java.lang.Exception
creationScript
- the creation scriptjava.lang.Exception
- the exceptionvoid executeScript(java.lang.String creationScript, java.lang.String tableSetPrefix) throws java.lang.Exception
java.lang.Exception