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
|
Constructor Summary |
(package private) |
fieldDeltaRec(short fieldcode)
Vector constructor. |
(package private) |
fieldDeltaRec(short fieldcode,
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, registerNatives, wait, wait, wait |
fieldcode
short fieldcode
vector
boolean vector
scalarValue
DBField scalarValue
addValues
java.util.Vector addValues
delValues
java.util.Vector delValues
fieldDeltaRec
fieldDeltaRec(short fieldcode,
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.
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