Class DerbyUtils


  • public class DerbyUtils
    extends java.lang.Object
    • Constructor Detail

      • DerbyUtils

        public DerbyUtils()
    • 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