public interface TransactionService
Note that the implementation of the javax.transaction.UserTransaction
is not able to provide the full set of status codes available on the
javax.transaction.Status
class.
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowWrite()
Determine if the repository has been put into read only mode.
|
UserTransaction |
getNonPropagatingUserTransaction()
Gets a user transaction that ensures a new transaction is created.
|
UserTransaction |
getNonPropagatingUserTransaction(boolean readOnly)
Gets a user transaction that ensures a new transaction is created.
|
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.
|
UserTransaction |
getUserTransaction()
Gets a user transaction that supports transaction propagation.
|
UserTransaction |
getUserTransaction(boolean readOnly)
Gets a user transaction that supports transaction propagation.
|
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.
|
boolean getAllowWrite()
@NotAuditable boolean isReadOnly()
@NotAuditable UserTransaction getUserTransaction()
@NotAuditable 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 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 UserTransaction getNonPropagatingUserTransaction()
@NotAuditable 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 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()
Copyright © 2005–2017 Alfresco Software. All rights reserved.