arlut.csd.ganymede
Class fieldDeltaRec

java.lang.Object
  |
  +--arlut.csd.ganymede.fieldDeltaRec

class fieldDeltaRec
extends java.lang.Object

The fieldDeltaRec class is used to record the changes that have been made to a particular field in a DBObject. This class is used by the DBObjectDeltaRec class to keep track of changes to fields.

See Also:
DBObjectDeltaRec, DBField

Field Summary
(package private)  java.util.Vector addValues
           
(package private)  java.util.Vector delValues
           
(package private)  short fieldcode
           
(package private)  arlut.csd.ganymede.DBField scalarValue
           
(package private)  boolean vector
           
 
Constructor Summary
(package private) fieldDeltaRec(short fieldcode)
          Vector constructor.
(package private) fieldDeltaRec(short fieldcode, arlut.csd.ganymede.DBField scalar)
          Scalar value constructor.
 
Method Summary
(package private)  void addValue(java.lang.Object value)
          This method is used to record a value that has been added to this vector field.
(package private)  void delValue(java.lang.Object value)
          This method is used to record a value that has been removed from this vector field.
 java.lang.String toString()
          This method generates a diagnostic representation of this fieldDeltaRec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldcode

short fieldcode

vector

boolean vector

scalarValue

arlut.csd.ganymede.DBField scalarValue

addValues

java.util.Vector addValues

delValues

java.util.Vector delValues
Constructor Detail

fieldDeltaRec

fieldDeltaRec(short fieldcode,
              arlut.csd.ganymede.DBField scalar)
Scalar value constructor. This constructor may actually be used for vector fields when those vector fields are newly defined.. in this case, we are actually doing a complete definition of the field, rather than just a vector add/remove record.

If <scalar> is null, this fieldDeltaRec is recording the deletion of a field.


fieldDeltaRec

fieldDeltaRec(short fieldcode)
Vector constructor. This constructor is used when we are doing a vector differential record.

Method Detail

addValue

void addValue(java.lang.Object value)
This method is used to record a value that has been added to this vector field.


delValue

void delValue(java.lang.Object value)
This method is used to record a value that has been removed from this vector field.


toString

public java.lang.String toString()

This method generates a diagnostic representation of this fieldDeltaRec.

This method will probably fail with an exception if the field 'scalarValue' has not been initialized with a plausible owner.

Overrides:
toString in class java.lang.Object