org.apache.jackrabbit.core.data.db
Class DerbyDataStore

java.lang.Object
  extended by org.apache.jackrabbit.core.data.db.DbDataStore
      extended by org.apache.jackrabbit.core.data.db.DerbyDataStore
All Implemented Interfaces:
DataStore, DatabaseAware

public class DerbyDataStore
extends DbDataStore

The Derby data store closes the database when the data store is closed (embedded databases only).


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.data.db.DbDataStore
conHelper, copyWhenReading, createTableSQL, databaseType, dataSourceName, DEFAULT_MIN_RECORD_LENGTH, deleteOlderSQL, deleteSQL, DIGEST, driver, insertTempSQL, inUse, minModifiedDate, minRecordLength, password, schemaObjectPrefix, selectAllSQL, selectDataSQL, selectMetaSQL, STORE_SIZE_MAX, STORE_SIZE_MINUS_ONE, STORE_TEMP_FILE, storeStream, tablePrefix, tableSQL, TEMP_PREFIX, temporaryInUse, updateDataSQL, updateLastModifiedSQL, updateSQL, url, user
 
Constructor Summary
DerbyDataStore()
           
 
Method Summary
 void close()
          Close the data store
protected  ConnectionHelper createConnectionHelper(DataSource dataSrc)
          This method is called from the DbDataStore.init(String) method of this class and returns a ConnectionHelper instance which is assigned to the conHelper field.
 
Methods inherited from class org.apache.jackrabbit.core.data.db.DbDataStore
addRecord, clearInUse, convert, createCheckSchemaOperation, deleteAllOlderThan, getAllIdentifiers, getCopyWhenReading, getDatabaseType, getDataSourceName, getDigest, getDriver, getMaxConnections, getMinRecordLength, getPassword, getProperty, getRecord, getRecordIfStored, getSchemaObjectPrefix, getTablePrefix, getUrl, getUser, init, initDatabaseType, isSchemaCheckEnabled, setConnectionFactory, setCopyWhenReading, setDatabaseType, setDataSourceName, setDriver, setMaxConnections, setMinRecordLength, setPassword, setSchemaCheckEnabled, setSchemaObjectPrefix, setTablePrefix, setUrl, setUser, updateModifiedDateOnAccess, usesIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerbyDataStore

public DerbyDataStore()
Method Detail

createConnectionHelper

protected ConnectionHelper createConnectionHelper(DataSource dataSrc)
                                           throws Exception
This method is called from the DbDataStore.init(String) method of this class and returns a ConnectionHelper instance which is assigned to the conHelper field. Subclasses may override it to return a specialized connection helper.

Overrides:
createConnectionHelper in class DbDataStore
Parameters:
dataSrc - the DataSource of this persistence manager
Returns:
a ConnectionHelper
Throws:
Exception - on error

close

public void close()
           throws DataStoreException
Close the data store

Specified by:
close in interface DataStore
Overrides:
close in class DbDataStore
Throws:
DataStoreException - if a problem occured


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