org.apache.jackrabbit.core.persistence.db
Class JNDIDatabasePersistenceManager

java.lang.Object
  extended by org.apache.jackrabbit.core.persistence.AbstractPersistenceManager
      extended by org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
          extended by org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager
All Implemented Interfaces:
PersistenceManager

Deprecated. Please migrate to a bundle persistence manager (JCR-2802)

@Deprecated
public class JNDIDatabasePersistenceManager
extends DatabasePersistenceManager

Database persistence manager that uses JNDI to acquire the database connection. The JNDI location of the DataSource to be used in given as the dataSourceLocation configuration property. See the SimpleDbPersistenceManager 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
JNDIDatabasePersistenceManager()
          Deprecated.  
 
Method Summary
protected  Connection getConnection()
          Deprecated. Returns a JDBC connection from a DataSource 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIDatabasePersistenceManager

public JNDIDatabasePersistenceManager()
Deprecated. 
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 a DataSource acquired from JNDI with the configured data source location.

Overrides:
getConnection in class DatabasePersistenceManager
Returns:
new database connection
Throws:
NamingException - if the given data source location does not exist
SQLException - if a database access error occurs
See Also:
DatabasePersistenceManager.getConnection()


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