|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.persistence.AbstractPersistenceManager
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager
@Deprecated public class JNDIDatabasePersistenceManager
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 |
---|
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 |
---|
public JNDIDatabasePersistenceManager()
Method Detail |
---|
public String getDataSourceLocation()
public void setDataSourceLocation(String dataSourceLocation)
dataSourceLocation
- data source locationprotected Connection getConnection() throws NamingException, SQLException
DataSource
acquired from JNDI
with the configured data source location.
getConnection
in class DatabasePersistenceManager
NamingException
- if the given data source location does not exist
SQLException
- if a database access error occursDatabasePersistenceManager.getConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |