|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.transaction.DummyTransactionService
public class DummyTransactionService
Simple implementation of the transaction service that serve up entirely useless user transactions. It is useful within the context of some tests.
Constructor Summary | |
---|---|
DummyTransactionService()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyTransactionService()
Method Detail |
---|
public boolean getAllowWrite()
TransactionService
getAllowWrite
in interface TransactionService
public boolean isReadOnly()
TransactionService
isReadOnly
in interface TransactionService
public javax.transaction.UserTransaction getUserTransaction()
TransactionService
getUserTransaction
in interface TransactionService
public javax.transaction.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 javax.transaction.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 javax.transaction.UserTransaction getNonPropagatingUserTransaction()
TransactionService
getNonPropagatingUserTransaction
in interface TransactionService
public javax.transaction.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 javax.transaction.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |