public class MuleDerbyTestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupDerbyDb(String databaseName) |
static void |
cleanupDerbyDb(String derbySystemHome,
String databaseName) |
static void |
createDataBase(String databaseName)
Create a new embedded database
|
static void |
createDataBase(String databaseName,
String creationSql)
Create a new embedded database
|
static void |
createDataBase(String databaseName,
String[] creationSql)
Create a new embedded database
|
static void |
createDataBase(String databaseName,
String[] creationSql,
Properties properties)
Create a new embedded database
|
static void |
defaultDerbyCleanAndInit(String propertiesLocation,
String propertyName) |
static String |
loadDatabaseName(String propertiesLocation,
String propertyName) |
static String |
setDerbyHome() |
static String |
setDerbyHome(String path) |
static void |
startDataBase(String databaseName)
Start a previously created (and stopped) database
|
static void |
stopDatabase()
Properly shutdown an embedded Derby database
|
public static String setDerbyHome()
public static void stopDatabase()
throws SQLException
SQLExceptionpublic static void cleanupDerbyDb(String databaseName) throws IOException, SQLException
IOExceptionSQLExceptionpublic static void cleanupDerbyDb(String derbySystemHome, String databaseName) throws IOException, SQLException
IOExceptionSQLExceptionpublic static void startDataBase(String databaseName) throws Exception
Exceptionpublic static void createDataBase(String databaseName) throws SQLException
databaseName - SQLExceptionpublic static void createDataBase(String databaseName, String creationSql) throws SQLException
databaseName - creationSql - - SQL used to create and populate initial database tablesSQLExceptionpublic static void createDataBase(String databaseName, String[] creationSql) throws SQLException
databaseName - creationSql - - SQL used to create and populate initial database tablesSQLExceptionpublic static void createDataBase(String databaseName, String[] creationSql, Properties properties) throws SQLException
databaseName - creationSql - - SQL used to create and populate initial database tablesSQLExceptionpublic static String loadDatabaseName(String propertiesLocation, String propertyName) throws IOException
IOExceptionpublic static void defaultDerbyCleanAndInit(String propertiesLocation, String propertyName) throws IOException, SQLException
IOExceptionSQLExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.