com.googlecode.jpattern.service.transaction
Class NullTransactionManager
java.lang.Object
com.googlecode.jpattern.service.transaction.ATransactionManager
com.googlecode.jpattern.service.transaction.NullTransactionManager
public class NullTransactionManager
- extends ATransactionManager
- Author:
- Francesco Cina'
28 Mar 2011
This class represents a fake transaction.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullTransactionManager
public NullTransactionManager()
beginTransaction
public boolean beginTransaction(IProvider provider)
- Description copied from class:
ATransactionManager
- Begin of a new transaction
- Specified by:
beginTransaction in class ATransactionManager
- Parameters:
provider - the IProvider to use
- Returns:
commit
protected void commit(IProvider provider)
- Specified by:
commit in class ATransactionManager
rollback
protected void rollback(IProvider provider)
- Specified by:
rollback in class ATransactionManager
setForceReadOnly
public void setForceReadOnly(boolean forceReadOnly)
- Specified by:
setForceReadOnly in class ATransactionManager
setForceNewTransaction
public void setForceNewTransaction(boolean forceNewTransaction)
- Specified by:
setForceNewTransaction in class ATransactionManager
Copyright © 2011. All Rights Reserved.