|
|||||||||
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 | |
---|---|
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. |
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. |
boolean |
isReadOnly()
Determine if ALL user transactions will be read-only. |
void |
setReadOnly(boolean readOnly)
|
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 isReadOnly()
TransactionService
isReadOnly
in interface TransactionService
public void setReadOnly(boolean readOnly)
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 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 RetryingTransactionHelper getRetryingTransactionHelper()
TransactionService
getRetryingTransactionHelper
in interface TransactionService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |