|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transaction
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 |
---|
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
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
boolean isConnectionOpen()
boolean isCommitting()
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.int getTransactionIsolation()
void setTransactionIsolation(int isolationLevel)
isolationLevel
- The isolation level required.boolean useUpdateLockOnFetch()
void setUseUpdateLock(boolean lock)
lock
- Whether to use an update lock.javax.jdo.datastore.JDOConnection getJDOConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |