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
SQLException
public static void cleanupDerbyDb(String databaseName) throws IOException, SQLException
IOException
SQLException
public static void cleanupDerbyDb(String derbySystemHome, String databaseName) throws IOException, SQLException
IOException
SQLException
public static void startDataBase(String databaseName) throws Exception
Exception
public static void createDataBase(String databaseName) throws SQLException
databaseName
- SQLException
public static void createDataBase(String databaseName, String creationSql) throws SQLException
databaseName
- creationSql
- - SQL used to create and populate initial database tablesSQLException
public static void createDataBase(String databaseName, String[] creationSql) throws SQLException
databaseName
- creationSql
- - SQL used to create and populate initial database tablesSQLException
public static void createDataBase(String databaseName, String[] creationSql, Properties properties) throws SQLException
databaseName
- creationSql
- - SQL used to create and populate initial database tablesSQLException
public static String loadDatabaseName(String propertiesLocation, String propertyName) throws IOException
IOException
public static void defaultDerbyCleanAndInit(String propertiesLocation, String propertyName) throws IOException, SQLException
IOException
SQLException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.