Class DerbyConnectionHelper
- java.lang.Object
-
- org.apache.jackrabbit.core.util.db.ConnectionHelper
-
- org.apache.jackrabbit.core.util.db.DerbyConnectionHelper
-
public final class DerbyConnectionHelper extends ConnectionHelper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.util.db.ConnectionHelper
ConnectionHelper.RetryManager<T>
-
-
Field Summary
Fields Modifier and Type Field Description static String
DERBY_EMBEDDED_DRIVER
name of the embedded driver-
Fields inherited from class org.apache.jackrabbit.core.util.db.ConnectionHelper
dataSource
-
-
Constructor Summary
Constructors Constructor Description DerbyConnectionHelper(DataSource dataSrc, boolean block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shutDown(String driver)
Shuts the embedded Derby database down.-
Methods inherited from class org.apache.jackrabbit.core.util.db.ConnectionHelper
closeResources, endBatch, exec, exec, execute, getConnection, inBatchMode, prepareDbIdentifier, query, replaceCharacter, startBatch, tableExists, update
-
-
-
-
Field Detail
-
DERBY_EMBEDDED_DRIVER
public static final String DERBY_EMBEDDED_DRIVER
name of the embedded driver- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DerbyConnectionHelper
public DerbyConnectionHelper(DataSource dataSrc, boolean block)
- Parameters:
dataSrc
- theDataSource
on which this helper actsblock
- whether to block on connection loss until the db is up again
-
-
Method Detail
-
shutDown
public void shutDown(String driver) throws SQLException
Shuts the embedded Derby database down.- Parameters:
driver
- the driver- Throws:
SQLException
- on failure
-
-