@Deprecated public class JNDIDatabasePersistenceManager extends DatabasePersistenceManager
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.
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 and Description |
|---|
JNDIDatabasePersistenceManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, storecheckConsistency, createNew, createNewpublic JNDIDatabasePersistenceManager()
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 DatabasePersistenceManagerNamingException - if the given data source location does not existSQLException - if a database access error occursDatabasePersistenceManager.getConnection()Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.