|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionService
Contract for retrieving access to a user transaction.
Note that the implementation of the UserTransaction
is not able to provide the full set of status codes available on the
Status
class.
Method Summary | |
---|---|
boolean |
getAllowWrite()
Determine if the repository has been put into read only mode. |
javax.transaction.UserTransaction |
getNonPropagatingUserTransaction()
Gets a user transaction that ensures a new transaction is created. |
javax.transaction.UserTransaction |
getNonPropagatingUserTransaction(boolean readOnly)
Gets a user transaction that ensures a new transaction is created. |
javax.transaction.UserTransaction |
getNonPropagatingUserTransaction(boolean readOnly,
boolean ignoreSystemReadOnly)
Gets a user transaction that ensures a new transaction is created. |
RetryingTransactionHelper |
getRetryingTransactionHelper()
Get the standard instance of the helper object that supports transaction retrying. |
javax.transaction.UserTransaction |
getUserTransaction()
Gets a user transaction that supports transaction propagation. |
javax.transaction.UserTransaction |
getUserTransaction(boolean readOnly)
Gets a user transaction that supports transaction propagation. |
javax.transaction.UserTransaction |
getUserTransaction(boolean readOnly,
boolean ignoreSystemReadOnly)
Gets a user transaction that supports transaction propagation. |
boolean |
isReadOnly()
Determine if ALL user transactions will be read-only. |
Method Detail |
---|
boolean getAllowWrite()
@NotAuditable boolean isReadOnly()
@NotAuditable javax.transaction.UserTransaction getUserTransaction()
@NotAuditable javax.transaction.UserTransaction getUserTransaction(boolean readOnly)
readOnly
- Set true for a READONLY transaction instance, false otherwise.
Note that it is not always possible to force a write transaction if the
system is in read-only mode.
@NotAuditable javax.transaction.UserTransaction getUserTransaction(boolean readOnly, boolean ignoreSystemReadOnly)
readOnly
- Set true for a READONLY transaction instance, false otherwise.ignoreSystemReadOnly
- true to force the read-only flag to be respected regardless
of the system read-only mode.
@NotAuditable javax.transaction.UserTransaction getNonPropagatingUserTransaction()
@NotAuditable javax.transaction.UserTransaction getNonPropagatingUserTransaction(boolean readOnly)
readOnly
- Set true for a READONLY transaction instance, false otherwise.
Note that it is not always possible to force a write transaction if the
system is in read-only mode.
@NotAuditable javax.transaction.UserTransaction getNonPropagatingUserTransaction(boolean readOnly, boolean ignoreSystemReadOnly)
readOnly
- Set true for a READONLY transaction instance, false otherwise.ignoreSystemReadOnly
- true to force the read-only flag to be respected regardless
of the system read-only mode.
@NotAuditable RetryingTransactionHelper getRetryingTransactionHelper()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |