public class DerbyUtils extends Object
| Constructor and Description |
|---|
DerbyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureDerbyLogging() |
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 |
isAvailable() |
static boolean |
isInMemoryDatabase(String databasePath) |
static void |
loadDerbyDriver() |
static void |
shutdownDatabase(String connectionURL) |
static boolean |
tableExists(String tableName,
Connection conn) |
public static void configureDerbyLogging()
public static boolean isAvailable()
public static void loadDerbyDriver()
public static Writer getDerbyLogWriter()
public static boolean isInMemoryDatabase(String databasePath)
public static void shutdownDatabase(String connectionURL) throws SQLException
SQLExceptionpublic 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–2018 The Apache Software Foundation. All rights reserved.