org.apache.ojb.broker.util
Class ObjectModificationDefaultImpl

java.lang.Object
  extended byorg.apache.ojb.broker.util.ObjectModificationDefaultImpl
All Implemented Interfaces:
ObjectModification, java.io.Serializable

public class ObjectModificationDefaultImpl
extends java.lang.Object
implements ObjectModification

Insert the type's description here.

Version:
$Id: ObjectModificationDefaultImpl.java,v 1.3 2002/11/28 07:23:22 thma Exp $
Author:
Thomas Mahler
See Also:
Serialized Form

Field Summary
static ObjectModificationDefaultImpl INSERT
           
static ObjectModificationDefaultImpl UPDATE
           
 
Fields inherited from interface org.apache.ojb.broker.util.ObjectModification
serialVersionUID
 
Constructor Summary
ObjectModificationDefaultImpl()
          ObjectModificationImpl constructor comment.
ObjectModificationDefaultImpl(boolean pNeedsInsert, boolean pNeedsUpdate)
          ObjectModificationImpl constructor comment.
 
Method Summary
 void markModified()
          Method declaration
 boolean needsInsert()
          returns true if the underlying Object needs an INSERT statement.
 boolean needsUpdate()
          returns true if the underlying Object needs an UPDATE statement.
 void setNeedsInsert(boolean newValue)
          Method declaration
 void setNeedsUpdate(boolean newValue)
          Method declaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSERT

public static final ObjectModificationDefaultImpl INSERT

UPDATE

public static final ObjectModificationDefaultImpl UPDATE
Constructor Detail

ObjectModificationDefaultImpl

public ObjectModificationDefaultImpl()
ObjectModificationImpl constructor comment.


ObjectModificationDefaultImpl

public ObjectModificationDefaultImpl(boolean pNeedsInsert,
                                     boolean pNeedsUpdate)
ObjectModificationImpl constructor comment.

Method Detail

needsInsert

public boolean needsInsert()
returns true if the underlying Object needs an INSERT statement. Returns false else.

Specified by:
needsInsert in interface ObjectModification

needsUpdate

public boolean needsUpdate()
returns true if the underlying Object needs an UPDATE statement. Else Returns false.

Specified by:
needsUpdate in interface ObjectModification

setNeedsInsert

public void setNeedsInsert(boolean newValue)
Method declaration

Parameters:
newValue -

setNeedsUpdate

public void setNeedsUpdate(boolean newValue)
Method declaration

Parameters:
newValue -

markModified

public void markModified()
Method declaration



Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14