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()
TransactionService
getAllowWrite
in interface TransactionService
public boolean isReadOnly()
TransactionService
isReadOnly
in interface TransactionService
public UserTransaction getUserTransaction()
TransactionService
getUserTransaction
in interface TransactionService
public UserTransaction getUserTransaction(boolean readOnly)
TransactionService
getUserTransaction
in interface TransactionService
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.public UserTransaction getUserTransaction(boolean readOnly, boolean ignoreSystemReadOnly)
TransactionService
getUserTransaction
in interface TransactionService
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.public UserTransaction getNonPropagatingUserTransaction()
TransactionService
getNonPropagatingUserTransaction
in interface TransactionService
public UserTransaction getNonPropagatingUserTransaction(boolean readOnly)
TransactionService
getNonPropagatingUserTransaction
in interface TransactionService
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.public UserTransaction getNonPropagatingUserTransaction(boolean readOnly, boolean ignoreSystemReadOnly)
TransactionService
getNonPropagatingUserTransaction
in interface TransactionService
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.public RetryingTransactionHelper getRetryingTransactionHelper()
TransactionService
getRetryingTransactionHelper
in interface TransactionService
Copyright © 2005–2017 Alfresco Software. All rights reserved.