org.apache.ojb.broker.util
Interface ObjectModification

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ObjectEnvelope, ObjectModificationDefaultImpl

public interface ObjectModification
extends java.io.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 365232 2005-12-21 22:36:07Z tomdz $
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.



(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30