|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.transactionalSupport.ObjectModified
The details of a change to a particular object. Every change will create an ObjectModified object. There will be only one ObjectModified instance per attribute per transaction. Only 1 thread will be calling get and set with this class.
Nested Class Summary | |
static class |
ObjectModified.Test
|
Constructor Summary | |
protected |
ObjectModified()
Store the changes to the domain object. |
Method Summary | |
protected void |
clean()
|
void |
commit(boolean force)
Place the new value into the domain object. |
java.lang.Object |
currentValue()
|
java.lang.reflect.Field |
getAccessor()
|
protected void |
initObjectModified(java.lang.reflect.Field adapt,
TransactionalObjectIF theInstance,
java.lang.Object newVal,
java.lang.Object old)
Set the changed values. |
boolean |
isCollection()
Is this field representing an Array, Hashtable, or a Vector? |
java.lang.Object |
originalValue()
|
boolean |
returnThis()
A workaround for a small problem |
void |
rollback()
Change the domain object to contain the 'old' value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ObjectModified()
Method Detail |
public boolean returnThis()
protected void clean()
protected void initObjectModified(java.lang.reflect.Field adapt, TransactionalObjectIF theInstance, java.lang.Object newVal, java.lang.Object old)
public void commit(boolean force) throws UpdateException
commit
in interface ObjectChangeRequest
force
- Override the default behavior of checking if the object has changed.
UpdateException
public java.lang.Object currentValue()
currentValue
in interface ObjectChangeRequest
public final java.lang.reflect.Field getAccessor()
public boolean isCollection()
isCollection
in interface ObjectChangeRequest
public java.lang.Object originalValue()
originalValue
in interface ObjectChangeRequest
public void rollback()
rollback
in interface ObjectChangeRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |