org.apache.ojb.broker.util
Interface ObjectModification

All Superinterfaces:
Serializable
All Known Implementing Classes:
Hollow, ObjectEnvelope, ObjectModificationDefaultImpl, PersistentClean, PersistentDeleted, PersistentDirty, PersistentNew, PersistentNewDeleted, State, Transient

public interface ObjectModification
extends Serializable

The Interface ObjectModification represents information about modifications of persistence capable objects. Allows clients of the PersistenceBroker (e.g. a TransactionServer) to interact with the Broker in order to generate optimized SQL Statements.

Version:
$Id: ObjectModification.java,v 1.1 2007-08-24 22:17:36 ewestfal Exp $
Author:
Thomas Mahler

Field Summary
static ObjectModification INSERT
          Default implementation of this interface usable for INSERT.
static long serialVersionUID
           
static ObjectModification UPDATE
          Default implementation of this interface usable for UPDATE.
 
Method Summary
 boolean needsInsert()
          Returns true if the underlying Object needs an INSERT statement.
 boolean needsUpdate()
          Returns true if the underlying Object needs an UPDATE statement.
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

INSERT

static final ObjectModification INSERT
Default implementation of this interface usable for INSERT.


UPDATE

static final ObjectModification UPDATE
Default implementation of this interface usable for UPDATE.

Method Detail

needsInsert

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


needsUpdate

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



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.