Class JNDIDatabasePersistenceManager
- java.lang.Object
-
- org.apache.jackrabbit.core.persistence.AbstractPersistenceManager
-
- org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
-
- org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager
-
- All Implemented Interfaces:
PersistenceManager
@Deprecated public class JNDIDatabasePersistenceManager extends DatabasePersistenceManager
Deprecated.Please migrate to a bundle persistence manager (JCR-2802)Database persistence manager that uses JNDI to acquire the database connection. The JNDI location of theDataSource
to be used in given as thedataSourceLocation
configuration property. See theSimpleDbPersistenceManager
for more configuration details.WARNING: The acquired database connection is kept for the entire lifetime of the persistence manager instance. The configured data source should be prepared for this.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
autoReconnect, blobDeleteSQL, blobFS, blobInsertSQL, blobSelectExistSQL, blobSelectSQL, blobStore, blobUpdateSQL, con, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDeleteSQL, nodeReferenceInsertSQL, nodeReferenceSelectExistSQL, nodeReferenceSelectSQL, nodeReferenceUpdateSQL, nodeStateDeleteSQL, nodeStateInsertSQL, nodeStateSelectExistSQL, nodeStateSelectSQL, nodeStateUpdateSQL, propertyStateDeleteSQL, propertyStateInsertSQL, propertyStateSelectExistSQL, propertyStateSelectSQL, propertyStateUpdateSQL, schema, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix, SLEEP_BEFORE_RECONNECT
-
-
Constructor Summary
Constructors Constructor Description JNDIDatabasePersistenceManager()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Connection
getConnection()
Deprecated.Returns a JDBC connection from aDataSource
acquired from JNDI with the configured data source location.String
getDataSourceLocation()
Deprecated.Returns the JNDI location of the data source.void
setDataSourceLocation(String dataSourceLocation)
Deprecated.Sets the JNDI location of the data source.-
Methods inherited from class org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
buildSQLStatements, checkSchema, close, closeConnection, closeResultSet, closeStatement, createSchemaSql, destroy, destroy, destroy, executeStmt, exists, exists, existsReferencesTo, getSchema, getSchemaDDL, getSchemaObjectPrefix, init, initConnection, initPreparedStatements, isExternalBLOBs, isSchemaCheckEnabled, load, load, loadReferencesTo, logException, prepareSchemaObjectPrefix, reestablishConnection, resetStatement, setExternalBLOBs, setExternalBLOBs, setSchema, setSchemaCheckEnabled, setSchemaObjectPrefix, store, store, store, store
-
Methods inherited from class org.apache.jackrabbit.core.persistence.AbstractPersistenceManager
checkConsistency, createNew, createNew
-
-
-
-
Method Detail
-
getDataSourceLocation
public String getDataSourceLocation()
Deprecated.Returns the JNDI location of the data source.- Returns:
- data source location
-
setDataSourceLocation
public void setDataSourceLocation(String dataSourceLocation)
Deprecated.Sets the JNDI location of the data source.- Parameters:
dataSourceLocation
- data source location
-
getConnection
protected Connection getConnection() throws NamingException, SQLException
Deprecated.Returns a JDBC connection from aDataSource
acquired from JNDI with the configured data source location.- Overrides:
getConnection
in classDatabasePersistenceManager
- Returns:
- new database connection
- Throws:
NamingException
- if the given data source location does not existSQLException
- if a database access error occurs- See Also:
DatabasePersistenceManager.getConnection()
-
-