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