Class DerbyUtils
- java.lang.Object
-
- org.apache.qpid.server.store.derby.DerbyUtils
-
public class DerbyUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description DerbyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigureDerbyLogging()static StringcreateConnectionUrl(String name, String databasePath)protected static InputStreamgetBlobAsInputStream(ResultSet rs, int col)static StringgetBlobAsString(ResultSet rs, int col)static WritergetDerbyLogWriter()static booleanisAvailable()static booleanisInMemoryDatabase(String databasePath)static voidloadDerbyDriver()static voidshutdownDatabase(String connectionURL)static booleantableExists(String tableName, Connection conn)
-
-
-
Method Detail
-
configureDerbyLogging
public static void configureDerbyLogging()
-
isAvailable
public static boolean isAvailable()
-
loadDerbyDriver
public static void loadDerbyDriver()
-
getDerbyLogWriter
public static Writer getDerbyLogWriter()
-
isInMemoryDatabase
public static boolean isInMemoryDatabase(String databasePath)
-
shutdownDatabase
public static void shutdownDatabase(String connectionURL) throws SQLException
- Throws:
SQLException
-
getBlobAsString
public static String getBlobAsString(ResultSet rs, int col) throws SQLException
- Throws:
SQLException
-
getBlobAsInputStream
protected static InputStream getBlobAsInputStream(ResultSet rs, int col) throws SQLException
- Throws:
SQLException
-
tableExists
public static boolean tableExists(String tableName, Connection conn) throws SQLException
- Throws:
SQLException
-
-