public class DummyTransactionService extends Object implements TransactionService
| Constructor and Description |
|---|
DummyTransactionService() |
| 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.
|
public boolean getAllowWrite()
TransactionServicegetAllowWrite in interface TransactionServicepublic boolean isReadOnly()
TransactionServiceisReadOnly in interface TransactionServicepublic UserTransaction getUserTransaction()
TransactionServicegetUserTransaction in interface TransactionServicepublic UserTransaction getUserTransaction(boolean readOnly)
TransactionServicegetUserTransaction in interface TransactionServicereadOnly - 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.public UserTransaction getUserTransaction(boolean readOnly, boolean ignoreSystemReadOnly)
TransactionServicegetUserTransaction in interface TransactionServicereadOnly - 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.public UserTransaction getNonPropagatingUserTransaction()
TransactionServicegetNonPropagatingUserTransaction in interface TransactionServicepublic UserTransaction getNonPropagatingUserTransaction(boolean readOnly)
TransactionServicegetNonPropagatingUserTransaction in interface TransactionServicereadOnly - 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.public UserTransaction getNonPropagatingUserTransaction(boolean readOnly, boolean ignoreSystemReadOnly)
TransactionServicegetNonPropagatingUserTransaction in interface TransactionServicereadOnly - 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.public RetryingTransactionHelper getRetryingTransactionHelper()
TransactionServicegetRetryingTransactionHelper in interface TransactionServiceCopyright © 2005–2018 Alfresco Software. All rights reserved.