|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager
org.apache.jackrabbit.core.persistence.bundle.H2PersistenceManager
public class H2PersistenceManager
Extends the BundleDbPersistenceManager
by H2 specific code.
bundleCacheSize
" value="8"/>
consistencyCheck
" value="false"/>
minBlobSize
" value="16384"/>
driver
" value="org.hsqldb.jdbcDriver"/>
url
" value="jdbc:hsqldb:file:${wsp.home}/db/itemState"/>
user
" value="sa"/>
password
" value=""/>
schema
" value="native"/>
schemaObjectPrefix
" value=""/>
errorHandling
" value=""/>
setLockTimeout(String)
(String) lockTimeout}" value="10000"/>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
---|
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore |
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager |
---|
binding, blobStore, blockOnConnectionLoss, bundleDeleteSQL, bundleInsertSQL, bundleSelectAllIdsFromSQL, bundleSelectAllIdsSQL, bundleSelectSQL, bundleUpdateSQL, connectionManager, consistencyCheck, consistencyFix, driver, errorHandling, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDeleteSQL, nodeReferenceInsertSQL, nodeReferenceSelectSQL, nodeReferenceUpdateSQL, password, schema, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix, SM_BINARY_KEYS, SM_LONGLONG_KEYS, url, user |
Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager |
---|
context, NODEFILENAME, NODEREFSFILENAME, RES_NAME_INDEX, RES_NS_INDEX |
Constructor Summary | |
---|---|
H2PersistenceManager()
Creates a new h2 persistence manager. |
Method Summary | |
---|---|
protected void |
checkSchema()
Checks if the required schema objects exist and creates them if they don't exist yet. |
void |
close()
Closes the persistence manager. |
String |
getLockTimeout()
Returns the lock timeout. |
void |
init(PMContext context)
Initializes the persistence manager. The persistence manager is permanently bound to the given context, and any required external resources are acquired. An appropriate exception is thrown if the persistence manager initialization fails for whatever reason. In this case the state of the persistence manager is undefined and the instance should be discarded. Initializes the internal structures of this abstract persistence manager. |
void |
setLockTimeout(String lockTimeout)
Sets the lock timeout in milliseconds. |
Methods inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager |
---|
buildBlobFilePath, buildNodeFilePath, buildNodeFolderPath, buildNodeReferencesFilePath, buildPropFilePath, createNew, createNew, exists, exists, getBundleCacheSize, getNsIndex, load, load, onExternalUpdate, setBundleCacheSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public H2PersistenceManager()
Method Detail |
---|
public String getLockTimeout()
public void setLockTimeout(String lockTimeout)
lockTimeout
- the lock timeout.public void init(PMContext context) throws Exception
An appropriate exception is thrown if the persistence manager initialization fails for whatever reason. In this case the state of the persistence manager is undefined and the instance should be discarded. Initializes the internal structures of this abstract persistence manager.
init
in interface PersistenceManager
init
in class BundleDbPersistenceManager
context
- persistence manager context
Exception
- if the persistence manager initialization failedprotected void checkSchema() throws SQLException, RepositoryException
checkSchema
in class BundleDbPersistenceManager
SQLException
- if an SQL error occurs.
RepositoryException
- if an error occurs.public void close() throws Exception
BundleDbPersistenceManager
An appropriate exception is thrown if the persistence manager could not be closed properly. In this case the state of the persistence manager is undefined and the instance should be discarded.
close
in interface PersistenceManager
close
in class BundleDbPersistenceManager
Exception
- if the persistence manager failed to close properlyPersistenceManager#close
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |