Class DerbyConnectionHelper

    • Field Detail

      • DERBY_EMBEDDED_DRIVER

        public static final java.lang.String DERBY_EMBEDDED_DRIVER
        name of the embedded driver
        See Also:
        Constant Field Values
    • Constructor Detail

      • DerbyConnectionHelper

        public DerbyConnectionHelper​(javax.sql.DataSource dataSrc,
                                     boolean block)
        Parameters:
        dataSrc - the DataSource on which this helper acts
        block - whether to block on connection loss until the db is up again
    • Method Detail

      • shutDown

        public void shutDown​(java.lang.String driver)
                      throws java.sql.SQLException
        Shuts the embedded Derby database down.
        Parameters:
        driver - the driver
        Throws:
        java.sql.SQLException - on failure