public class DummyTransactionService extends java.lang.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.
|
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.
|
public boolean getAllowWrite()
TransactionServicegetAllowWrite in interface TransactionServicepublic boolean isReadOnly()
TransactionServiceisReadOnly in interface TransactionServicepublic javax.transaction.UserTransaction getUserTransaction()
TransactionServicegetUserTransaction in interface TransactionServicepublic javax.transaction.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 javax.transaction.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 javax.transaction.UserTransaction getNonPropagatingUserTransaction()
TransactionServicegetNonPropagatingUserTransaction in interface TransactionServicepublic javax.transaction.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 javax.transaction.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 - 2010 Alfresco Software, Inc. All Rights Reserved.