|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.jdo.DefaultJdoDialect.DataStoreConnectionHandle
private static class DefaultJdoDialect.DataStoreConnectionHandle
ConnectionHandle implementation that fetches a new JDO2 DataStoreConnection
for every getConnection
call and closes the Connection on
releaseConnection
. This is necessary because JDO2 requires the
fetched Connection to be closed before continuing PersistenceManager work.
PersistenceManager.getDataStoreConnection()
Field Summary | |
---|---|
private javax.jdo.PersistenceManager |
persistenceManager
|
Constructor Summary | |
---|---|
DefaultJdoDialect.DataStoreConnectionHandle(javax.jdo.PersistenceManager persistenceManager)
|
Method Summary | |
---|---|
java.sql.Connection |
getConnection()
Fetch the JDBC Connection that this handle refers to. |
void |
releaseConnection(java.sql.Connection con)
Release the JDBC Connection that this handle refers to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final javax.jdo.PersistenceManager persistenceManager
Constructor Detail |
---|
public DefaultJdoDialect.DataStoreConnectionHandle(javax.jdo.PersistenceManager persistenceManager)
Method Detail |
---|
public java.sql.Connection getConnection()
ConnectionHandle
getConnection
in interface ConnectionHandle
public void releaseConnection(java.sql.Connection con)
ConnectionHandle
releaseConnection
in interface ConnectionHandle
con
- the JDBC Connection to release
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |