public class DerbyUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DERBY_SINGLE_DB_SHUTDOWN_CODE |
static String |
MEMORY_STORE_LOCATION |
| Constructor and Description |
|---|
DerbyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createConnectionUrl(String name,
String databasePath) |
static void |
deleteDatabaseLocation(String storeLocation) |
protected static byte[] |
getBlobAsBytes(ResultSet rs,
int col) |
static String |
getBlobAsString(ResultSet rs,
int col) |
static void |
loadDerbyDriver() |
static void |
shutdownDatabase(String connectionURL) |
static boolean |
tableExists(String tableName,
Connection conn) |
public static final String MEMORY_STORE_LOCATION
public static final String DERBY_SINGLE_DB_SHUTDOWN_CODE
public static void loadDerbyDriver()
public static void shutdownDatabase(String connectionURL) throws SQLException
SQLExceptionpublic static void deleteDatabaseLocation(String storeLocation)
public static String getBlobAsString(ResultSet rs, int col) throws SQLException
SQLExceptionprotected static byte[] getBlobAsBytes(ResultSet rs, int col) throws SQLException
SQLExceptionpublic static boolean tableExists(String tableName, Connection conn) throws SQLException
SQLExceptionCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.