|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension of SUN's JDO Transaction.
Method Summary | |
java.sql.Connection |
getConnection(boolean forWriting,
boolean forQuery)
Accessor for the connection to the datasource. |
java.sql.Connection |
getConnection(boolean forWriting,
boolean forQuery,
boolean useOpenedConnection)
Accessor for the connection to the datasource. |
javax.jdo.datastore.JDOConnection |
getJDOConnection()
Accessor for the connection to the datasource. |
int |
getTransactionIsolation()
Accessor for the transaction isolation level. |
boolean |
isCommitting()
Checks whether a transaction is committing. |
boolean |
isConnectionOpen()
Checks whether a connection to the datasource is open. |
void |
releaseConnection(java.sql.Connection conn)
Method to release the Connection. |
void |
setTransactionIsolation(int isolationLevel)
Mutator for the transaction isolation level. |
void |
setUseUpdateLock(boolean lock)
Mutator for whether to lock queried/fetched objects in this txn. |
boolean |
useUpdateLockOnFetch()
Accessor for whether to use an update lock when fetching data. |
Methods inherited from interface javax.jdo.Transaction |
begin, commit, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getPersistenceManager, getRestoreValues, getRetainValues, getRollbackOnly, getSynchronization, isActive, rollback, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, setRollbackOnly, setSynchronization |
Method Detail |
public java.sql.Connection getConnection(boolean forWriting, boolean forQuery) throws java.sql.SQLException
forWriting
- Whether the connection is read-only or read-write.forQuery
- Whether the connection is to be used by a query (i.e.JDOQUERY).
java.sql.SQLException
public java.sql.Connection getConnection(boolean forWriting, boolean forQuery, boolean useOpenedConnection) throws java.sql.SQLException
forWriting
- Whether the connection is read-only or read-write.forQuery
- Whether the connection is to be used by a query (i.e.JDOQUERY).useOpenedConnection
- whether to use an already opened connection, if one is opened.
java.sql.SQLException
public boolean isConnectionOpen()
public boolean isCommitting()
public void releaseConnection(java.sql.Connection conn) throws java.sql.SQLException
conn
- The Connection to release.
java.sql.SQLException
- Thrown when an error occurs releasing the
connection.public int getTransactionIsolation()
public void setTransactionIsolation(int isolationLevel)
isolationLevel
- The isolation level required.public boolean useUpdateLockOnFetch()
public void setUseUpdateLock(boolean lock)
lock
- Whether to use an update lock.public javax.jdo.datastore.JDOConnection getJDOConnection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |