com.objectwave.persist.mapping
Class NullChange

java.lang.Object
  |
  +--com.objectwave.transactionalSupport.ObjectModified
        |
        +--com.objectwave.persist.mapping.NullChange
All Implemented Interfaces:
ObjectChangeRequest

public class NullChange
extends ObjectModified
implements ObjectChangeRequest

For a special kind of change to this object. In particular, a delete request sent to this object.

Version:
$Id: NullChange.java,v 2.0 2001/06/11 16:00:04 dave_hoag Exp $
Author:
dhoag

Nested Class Summary
 
Nested classes inherited from class com.objectwave.transactionalSupport.ObjectModified
ObjectModified.Test
 
Constructor Summary
NullChange(RDBPersistentAdapter anAdapter, boolean delete, boolean anInsert)
          Constructor for the NullChange object
 
Method Summary
 void commit(boolean force)
          Commit the change.
 java.lang.Object currentValue()
           
 boolean isCollection()
          Gets the Collection attribute of the NullChange object
 java.lang.Object originalValue()
           
 boolean returnThis()
          ObjectModified objects are returned to a pool of object modified objects.
 void rollback()
          Change the domain object to contain the 'old' value.
 
Methods inherited from class com.objectwave.transactionalSupport.ObjectModified
clean, getAccessor, initObjectModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullChange

public NullChange(RDBPersistentAdapter anAdapter,
                  boolean delete,
                  boolean anInsert)
Constructor for the NullChange object

Parameters:
delete -
anInsert -
anAdapter -
Method Detail

isCollection

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

Specified by:
isCollection in interface ObjectChangeRequest
Overrides:
isCollection in class ObjectModified
Returns:
The Collection value

returnThis

public boolean returnThis()
ObjectModified objects are returned to a pool of object modified objects. Don't return this instance of an ObjectModified to the pool.

Overrides:
returnThis in class ObjectModified
Returns:

commit

public void commit(boolean force)
            throws UpdateException
Description copied from interface: ObjectChangeRequest
Commit the change.

Specified by:
commit in interface ObjectChangeRequest
Overrides:
commit in class ObjectModified
Parameters:
force -
Throws:
UpdateException

rollback

public void rollback()
Description copied from class: ObjectModified
Change the domain object to contain the 'old' value. There is nothing to rollback if I did not commit.

Specified by:
rollback in interface ObjectChangeRequest
Overrides:
rollback in class ObjectModified

currentValue

public java.lang.Object currentValue()
Specified by:
currentValue in interface ObjectChangeRequest
Overrides:
currentValue in class ObjectModified
Returns:

originalValue

public java.lang.Object originalValue()
Specified by:
originalValue in interface ObjectChangeRequest
Overrides:
originalValue in class ObjectModified
Returns: