com.objectwave.transactionalSupport
Interface ObjectChangeRequest

All Known Implementing Classes:
NoFieldObjectModified, NullChange, ObjectModified

public interface ObjectChangeRequest

The interface to objects that will keep track of details of a change to a transactional object.

Version:
$Id: ObjectChangeRequest.java,v 2.1 2002/02/01 21:43:07 dave_hoag Exp $
Author:
dhoag

Method Summary
 void commit(boolean force)
          Commit the change.
 java.lang.Object currentValue()
           
 boolean isCollection()
          Gets the Collection attribute of the ObjectChangeRequest object
 java.lang.Object originalValue()
           
 void rollback()
           
 

Method Detail

commit

public void commit(boolean force)
            throws UpdateException
Commit the change.

Parameters:
force - Ignore any values found in the domain object.
Throws:
UpdateException

currentValue

public java.lang.Object currentValue()
Returns:

isCollection

public boolean isCollection()
Gets the Collection attribute of the ObjectChangeRequest object

Returns:
The Collection value

originalValue

public java.lang.Object originalValue()
Returns:
Object value found in the domain object when this change occurred.

rollback

public void rollback()