|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.transactionalSupport.TransactionLog | +--com.objectwave.persist.BrokerTransactionLog
Provide some database specific transactional stuff. If we have an RDBTransaction log this log can provide support to saving change objects. CAUTION : - IF A QUERY IS EXECUTED WITH AN OBJECT THAT WAS ONCE MARKED DIRTY, THAT OBJECT WILL BE REMOVED FROM THE TRANSACTION LOG. COMMIT CHANGES BEFORE USING AN OBJECT AS A QUERY!!!!
Nested Class Summary |
Nested classes inherited from class com.objectwave.transactionalSupport.TransactionLog |
TransactionLog.Test |
Field Summary |
Fields inherited from class com.objectwave.transactionalSupport.TransactionLog |
committing, editedObjects, editedObjectsCount, lastObj, parentTransaction, subTransaction, transactionManager |
Constructor Summary | |
BrokerTransactionLog()
|
|
BrokerTransactionLog(java.lang.String brokerType)
|
Method Summary | |
protected void |
actualCommit()
Called by super class when we are ready to really commit the values. |
protected void |
commit(boolean force)
Copy the values from the object editing view into the domain object. |
void |
forceCommit()
Commit the values ignoring any transaction conflicts. |
protected com.objectwave.persist.BrokerChangeList |
getModifiedObjects(boolean force)
Select those objects that need to be saved to and delete from the relational database. |
protected void |
initialize(java.lang.String brokerType)
|
protected void |
restoreObject(ObjectEditingView view,
boolean force)
Copy the values from the ObjectEditor into the Object. |
void |
rollback()
Return the object back to it's original state, and discard the changes made in this transaction. |
void |
setBroker(Broker brok)
Sets the Broker attribute of the BrokerTransactionLog object |
Methods inherited from class com.objectwave.transactionalSupport.TransactionLog |
addObject, addSubTransaction, addTransactionSupport, chainCommit, clearUpChanges, commit, commit, commitRootLevelTransaction, commitSubTransaction, contains, contains, getCurrentInstance, getEditedObjects, getNewTransaction, getParentTransaction, getSubTransaction, hasTransactions, limitedRollback, migrateChangesTo, removeObject, reset, rollback, setAllowNesting, setContext, setDefaultInstance, setTransactionManager, startRootTransaction, startRootTransaction, startRootTransaction, startTransaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BrokerTransactionLog()
public BrokerTransactionLog(java.lang.String brokerType) throws QueryException
brokerType
-
QueryException
Method Detail |
public void setBroker(Broker brok)
brok
- The new Broker valueprotected com.objectwave.persist.BrokerChangeList getModifiedObjects(boolean force) throws UpdateException
force
-
UpdateException
public void forceCommit()
TransactionLog
forceCommit
in class TransactionLog
public void rollback()
TransactionLog
rollback
in class TransactionLog
protected void actualCommit() throws UpdateException
actualCommit
in class TransactionLog
UpdateException
protected void commit(boolean force) throws UpdateException
force
-
UpdateException
protected void initialize(java.lang.String brokerType) throws QueryException
brokerType
-
QueryException
protected void restoreObject(ObjectEditingView view, boolean force) throws UpdateException
view
- force
-
UpdateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |