public class DerbyUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.qpid.server.store.derby.DerbyUtils.DerbyLogWriter |
DERBY_LOG_WRITER |
static String |
DERBY_SINGLE_DB_SHUTDOWN_CODE |
static String |
DERBY_STREAM_ERROR_METHOD |
static String |
MEMORY_STORE_LOCATION |
Constructor and Description |
---|
DerbyUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
createConnectionUrl(String name,
String databasePath) |
protected static byte[] |
getBlobAsBytes(ResultSet rs,
int col) |
static String |
getBlobAsString(ResultSet rs,
int col) |
static Writer |
getDerbyLogWriter() |
static boolean |
isInMemoryDatabase(String databasePath) |
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 final org.apache.qpid.server.store.derby.DerbyUtils.DerbyLogWriter DERBY_LOG_WRITER
public static final String DERBY_STREAM_ERROR_METHOD
public static void loadDerbyDriver()
public static Writer getDerbyLogWriter()
public static boolean isInMemoryDatabase(String databasePath)
public static void shutdownDatabase(String connectionURL) throws SQLException
SQLException
public static String getBlobAsString(ResultSet rs, int col) throws SQLException
SQLException
protected static byte[] getBlobAsBytes(ResultSet rs, int col) throws SQLException
SQLException
public static boolean tableExists(String tableName, Connection conn) throws SQLException
SQLException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.