| |
|
| com.oldboss.framework.bo.BOTransaction
All known Subclasses: com.oldboss.framework.bo.impl.BOTransactionImpl,
BOTransaction | public interface BOTransaction (Code) | | Definition of the generic Domain Object Transaction Interface
The transaction object allows to :
(1) "Add" (better word associate) any number of any Domain Business Objects to it
(2) Commit all changes to all domain business objects at once
(3) Rollback all changes to all domain business onbects at once
|
COMPONENT_URL | final public static String COMPONENT_URL(Code) | | Naming URL of the component
|
doCommit | public void doCommit() throws BOException(Code) | | This method commits all the changes to all BOs associated with this transaction
The order in which BOs will be comitted is corresponding to the
order in which they were "added" to the transaction
After Commit has succeeded:
- Deleted BOs will remain deleted and unusable - have to be deleted
- New BOS will become existing readonly and no longer associated with this Tx
- Existing BOs will become existing readonly and no longer associated with this Tx
- This transaction object itself is unusable and has to be deleted
|
doRollback | public void doRollback() throws BOException(Code) | | This method rollsback all the changes to all BOs associated with this transaction
The order in which BOs will be rolled back is corresponding to the
order in which they were "added" to the transaction
After Rollback has succeeded:
- Deleted New BOs will remain deleted and unusable - have to be deleted
- Deleted Existing BOs will become existing read only and no longer associated with this Tx
- New BOs will become deleted and unusable - have to be deleted
- Existing BOs will become existing readonly and no longer associated with this Tx
- This transaction object itself is unusable and has to be deleted
|
isActive | public boolean isActive()(Code) | | This method retruns true if transaction is active, that is it has not been committed or rolled back yet
boolean true if transaction is active |
|
|
|