Class DerbyDataStore
- java.lang.Object
-
- org.apache.jackrabbit.core.data.AbstractDataStore
-
- org.apache.jackrabbit.core.data.db.DbDataStore
-
- org.apache.jackrabbit.core.data.db.DerbyDataStore
-
- All Implemented Interfaces:
DataStore,MultiDataStoreAware,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
Constructors Constructor Description DerbyDataStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the data storeprotected ConnectionHelpercreateConnectionHelper(DataSource dataSrc)This method is called from theDbDataStore.init(String)method of this class and returns aConnectionHelperinstance which is assigned to theconHelperfield.-
Methods inherited from class org.apache.jackrabbit.core.data.db.DbDataStore
addRecord, clearInUse, convert, createCheckSchemaOperation, deleteAllOlderThan, deleteRecord, getAllIdentifiers, getCopyWhenReading, getDatabaseType, getDataSourceName, getDigest, getDriver, getMaxConnections, getMinRecordLength, getPassword, getProperty, 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 org.apache.jackrabbit.core.data.AbstractDataStore
encodeHexString, getOrCreateReferenceKey, getRecord, getRecordFromReference, getReferenceFromIdentifier
-
-
-
-
Method Detail
-
createConnectionHelper
protected ConnectionHelper createConnectionHelper(DataSource dataSrc) throws Exception
This method is called from theDbDataStore.init(String)method of this class and returns aConnectionHelperinstance which is assigned to theconHelperfield. Subclasses may override it to return a specialized connection helper.- Overrides:
createConnectionHelperin classDbDataStore- Parameters:
dataSrc- theDataSourceof this persistence manager- Returns:
- a
ConnectionHelper - Throws:
Exception- on error
-
close
public void close() throws DataStoreExceptionClose the data store- Specified by:
closein interfaceDataStore- Overrides:
closein classDbDataStore- Throws:
DataStoreException- if a problem occurred
-
-