com.im.df.api 5.9

com.im.df.api.support
Class DFUpdateInfo

java.lang.Object
  extended by com.im.df.api.support.DFUpdateInfo

public final class DFUpdateInfo
extends Object

Data holder returned from insert/update methods. This object is immutable.

TODO P2 - it is possible this object will change to support more rows inserting in one method call. Then it will keep info about more than one row. See DFEntityDataProvider update method comments.


Method Summary
static DFUpdateInfo create(Comparable<?> id, boolean duplicate)
          Deprecated. use the 3-arg form of create().
static DFUpdateInfo create(Object schemaHandle, Comparable<?> id, boolean duplicate)
          Creates the DFUpdateInfo instance
 Comparable<?> getId()
          Get the row id
 boolean isDuplicate()
          Has the insert/update operation created the duplicate?
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static DFUpdateInfo create(Object schemaHandle,
                                  Comparable<?> id,
                                  boolean duplicate)
Creates the DFUpdateInfo instance

Parameters:
schemaHandle - The handle for the schema, which properly implements hashCode() and equals()
id - ID of the entity that was updated.

create

public static DFUpdateInfo create(Comparable<?> id,
                                  boolean duplicate)
Deprecated. use the 3-arg form of create().

Creates the DFUpdateInfo instance


getId

public Comparable<?> getId()
Get the row id


isDuplicate

public boolean isDuplicate()
Has the insert/update operation created the duplicate?


toString

public String toString()
Overrides:
toString in class Object

com.im.df.api 5.9