com.objectwave.transactionalSupport
Class TransactionalObjectAdapter

java.lang.Object
  |
  +--com.objectwave.transactionalSupport.TransactionalObjectAdapter
All Implemented Interfaces:
TransactionalObjectIF
Direct Known Subclasses:
ExampleObject

public class TransactionalObjectAdapter
extends java.lang.Object
implements TransactionalObjectIF

A sample implementation of a TransactionalObject.

Version:
1.2.1
See Also:
com.objectwave.transactionalSupport.TransactionalObject

Field Summary
protected  ObjectEditingView editor
           
 
Constructor Summary
TransactionalObjectAdapter()
           
 
Method Summary
 ObjectEditingView getObjectEditor()
          This method must ALWAYS return a value.
 ObjectEditor initializeObjectEditor()
           
 boolean isDirty()
          Has this object changed?
 boolean isTransient()
           
 void setAsTransient(boolean value)
          A transient object does not maintain transactional information.
 void setObjectEditor(ObjectEditingView edit)
           
 void update(boolean get, java.lang.Object[] data, java.lang.reflect.Field[] fields)
          This method allows me to get arounds security problems with updating and object from a generic framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

protected ObjectEditingView editor
Constructor Detail

TransactionalObjectAdapter

public TransactionalObjectAdapter()
Method Detail

getObjectEditor

public ObjectEditingView getObjectEditor()
Description copied from interface: TransactionalObjectIF
This method must ALWAYS return a value.

Specified by:
getObjectEditor in interface TransactionalObjectIF

initializeObjectEditor

public ObjectEditor initializeObjectEditor()

isDirty

public boolean isDirty()
Description copied from interface: TransactionalObjectIF
Has this object changed?

Specified by:
isDirty in interface TransactionalObjectIF

isTransient

public boolean isTransient()
Specified by:
isTransient in interface TransactionalObjectIF

setAsTransient

public void setAsTransient(boolean value)
Description copied from interface: TransactionalObjectIF
A transient object does not maintain transactional information. Any changes to a transient object are immediately made to that domain object. No rollback or commit functionality is available for a transient object.

Specified by:
setAsTransient in interface TransactionalObjectIF

setObjectEditor

public void setObjectEditor(ObjectEditingView edit)
Specified by:
setObjectEditor in interface TransactionalObjectIF

update

public void update(boolean get,
                   java.lang.Object[] data,
                   java.lang.reflect.Field[] fields)
This method allows me to get arounds security problems with updating and object from a generic framework. This method must be implemented in EACH transactional object. It is NOT simply sufficient to leave this method in the adapter...If that was true, I wouldn't even need this method.

Specified by:
update in interface TransactionalObjectIF