protected class AbstractDaoFactory.TransactionContext extends Object
| Constructor and Description |
|---|
AbstractDaoFactory.TransactionContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Starts the transaction (or increments the internal counter).
|
void |
commit()
Commits a transaction.
|
boolean |
isModelChanged()
Returns the modelChanged.
|
void |
rollback()
Rolls back a transaction.
|
void |
setModelChanged(boolean modelChanged)
Sets the modelChanged.
|
public AbstractDaoFactory.TransactionContext()
public void begin()
public void commit()
begin() did not start a new TX then
this method does nothing.public void rollback()
begin() did not start a new TX then
this method will just mark the transaction for rollback only.public boolean isModelChanged()
public void setModelChanged(boolean modelChanged)
modelChanged - the modelChanged to setCopyright © 2013. All Rights Reserved.