arlut.csd.ganymede
Class DBObjectDeltaRec
java.lang.Object
|
+--arlut.csd.ganymede.DBObjectDeltaRec
- All Implemented Interfaces:
- FieldType
- public final class DBObjectDeltaRec
- extends java.lang.Object
- implements FieldType
This class is used to represent a record of changes that need to be
made to a DBObject in the DBStore.
This class will be used in to handle writing and reading records of
changes made to objects in the Ganymede journal file.
|
Field Summary |
(package private) static boolean |
debug
|
(package private) java.util.Vector |
fieldRecs
|
(package private) arlut.csd.ganymede.Invid |
invid
|
| Fields inherited from interface arlut.csd.ganymede.FieldType |
BOOLEAN, DATE, FIRSTFIELD, FLOAT, INVID, IP, LASTFIELD, NUMERIC, PASSWORD, PERMISSIONMATRIX, STRING |
|
Constructor Summary |
DBObjectDeltaRec(java.io.DataInput in)
This DBObjectDeltaRec constructor is used to load a delta record
from a Journal stream. |
DBObjectDeltaRec(arlut.csd.ganymede.DBObject oldObj,
arlut.csd.ganymede.DBObject newObj)
This DBObjectDeltaRec constructor is used to generate a delta record
that records the difference between two objects for the Ganymede journal |
|
Method Summary |
arlut.csd.ganymede.DBObject |
applyDelta(arlut.csd.ganymede.DBObject original)
This method takes an object in its original state, and returns a
new copy of the object with the changes embodied in this
DBObjectDeltaRec applied to it. |
void |
emit(java.io.DataOutput out)
This method emits this delta rec to a file |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
debug
static final boolean debug
- See Also:
- Constant Field Values
invid
arlut.csd.ganymede.Invid invid
fieldRecs
java.util.Vector fieldRecs
DBObjectDeltaRec
public DBObjectDeltaRec(arlut.csd.ganymede.DBObject oldObj,
arlut.csd.ganymede.DBObject newObj)
- This DBObjectDeltaRec constructor is used to generate a delta record
that records the difference between two objects for the Ganymede journal
DBObjectDeltaRec
public DBObjectDeltaRec(java.io.DataInput in)
throws java.io.IOException
- This DBObjectDeltaRec constructor is used to load a delta record
from a Journal stream.
emit
public void emit(java.io.DataOutput out)
throws java.io.IOException
- This method emits this delta rec to a file
java.io.IOException
applyDelta
public arlut.csd.ganymede.DBObject applyDelta(arlut.csd.ganymede.DBObject original)
- This method takes an object in its original state, and returns a
new copy of the object with the changes embodied in this
DBObjectDeltaRec applied to it.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object