org.apache.jackrabbit.core.util.db
Class DerbyConnectionHelper

java.lang.Object
  extended by org.apache.jackrabbit.core.util.db.ConnectionHelper
      extended by 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
static String DERBY_EMBEDDED_DRIVER
          name of the embedded driver
 
Fields inherited from class org.apache.jackrabbit.core.util.db.ConnectionHelper
dataSource
 
Constructor Summary
DerbyConnectionHelper(DataSource dataSrc, boolean block)
           
 
Method Summary
 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, replaceCharacter, startBatch, tableExists, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - 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(String driver)
              throws SQLException
Shuts the embedded Derby database down.

Parameters:
driver - the driver
Throws:
SQLException - on failure


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.