com.sun.jsfcl.data
Class DataCache.Row

java.lang.Object
  extended byjava.util.AbstractMap
      extended bycom.sun.jsfcl.data.DataCache.Row
All Implemented Interfaces:
java.util.Map, java.io.Serializable
Enclosing class:
DataCache

public class DataCache.Row
extends java.util.AbstractMap
implements java.io.Serializable

Row encapsulates the stored information about a single "row" of data, typically corresponding to a row in an underlying relational database. The implementation methods that perform comparisons against column name values are done so in a case-insensitive manner. No modification to the set of Columns included in a Row is permitted after construction.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Method Summary
 void clear()
           
 void commit()
          Call commit() on all of the included columns in order to make the current values be the original ones, and reset the updated state.
 boolean containsKey(java.lang.Object key)
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
           
 boolean isDeleted()
          Return true if this row has been marked for deletion.
 boolean isUpdated()
          Return true if any column value in this Row has been updated.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(java.lang.Object key)
           
 void reset()
          Reset the updated state of this row and all underlying columns.
 void setDeleted(boolean deleted)
          Set the deleted flag on this row to the specified value.
 
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

commit

public void commit()

Call commit() on all of the included columns in order to make the current values be the original ones, and reset the updated state. Set the deleted state of this row to false.


isDeleted

public boolean isDeleted()

Return true if this row has been marked for deletion.


isUpdated

public boolean isUpdated()

Return true if any column value in this Row has been updated.


reset

public void reset()

Reset the updated state of this row and all underlying columns. Set the deleted state of this row to false.


setDeleted

public void setDeleted(boolean deleted)

Set the deleted flag on this row to the specified value.

Parameters:
deleted - The new deleted flag

clear

public void clear()
Specified by:
clear in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map