com.im.df.api 5.9

com.im.df.api.dml
Class DFRowData

java.lang.Object
  extended by com.im.df.api.dml.DFRowData

public final class DFRowData
extends Object

Data for a single row in database.


Method Summary
static DFRowData create(Comparable<?> id, Map<String,Object> values)
          Creates a new row data.
 boolean equals(Object other)
           
 Comparable<?> getId()
          Gets an id of the row encapsulated in this instance.
 Object getValue(String fieldId)
          Gets value for the field with specified id.
 int getValuesCount()
          Count of values in row
 int hashCode()
           
 boolean hasValueFor(String fieldId)
          Determines if the encapsulated row contains data for a field.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static DFRowData create(Comparable<?> id,
                               Map<String,Object> values)
Creates a new row data. Null values from values map are not used (e.g. are not used in getValuesCount().

Parameters:
id - The values of ID field (primary key)
values - The other values in the row.
Returns:
A new DFRawData object encapsulating the values passed in.

getValuesCount

public int getValuesCount()
Count of values in row

Returns:
Count of values

getId

public Comparable<?> getId()
Gets an id of the row encapsulated in this instance.

Returns:
The row id.

getValue

public Object getValue(String fieldId)
Gets value for the field with specified id.

Parameters:
fieldId - Id of requested field
Returns:
value if it's present or null if value for the field is not present

hasValueFor

public boolean hasValueFor(String fieldId)
Determines if the encapsulated row contains data for a field.

Parameters:
fieldId - An id of a field to check.
Returns:
true, if the data for the specified field exists.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

com.im.df.api 5.9