|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DNA
Represents the data of an object. Implementations of this interface are used to extract data from and apply (new/updated) data to objects. It's like serialization data, but it allows deltas to be extracted and applied.
Nested Class Summary | |
---|---|
static class |
DNA.DNAType
|
Field Summary | |
---|---|
static byte |
HAS_ARRAY_LENGTH
|
static byte |
HAS_PARENT_ID
|
static byte |
HAS_VERSION
|
static byte |
IS_DELTA
|
static int |
NULL_ARRAY_SIZE
Array size constant indicating no array size |
static long |
NULL_VERSION
Version constant indicating no version |
Method Summary | |
---|---|
int |
getArraySize()
Get length of the array in the DNA or NULL_ARRAY_SIZE if it has no array length. |
DNACursor |
getCursor()
Gets a DNACursor to spin through the field values. |
java.lang.String |
getDefiningLoaderDescription()
Get defining classloader name |
ObjectID |
getObjectID()
Gets the id of the object represented by this DNA strand. |
ObjectID |
getParentObjectID()
If this object is an inner class, get the parent object identifier |
java.lang.String |
getTypeName()
Get the class name of the type for this piece of DNA |
long |
getVersion()
Get the version of this DNA based on the global transaction ID, may be NULL_VERSION . |
boolean |
hasLength()
Determine whether this DNA has an array length |
boolean |
isDelta()
Determine whether this DNA is a whole object or just a delta |
Field Detail |
---|
static final int NULL_ARRAY_SIZE
static final long NULL_VERSION
static final byte HAS_ARRAY_LENGTH
static final byte HAS_PARENT_ID
static final byte IS_DELTA
static final byte HAS_VERSION
Method Detail |
---|
long getVersion()
NULL_VERSION
.
boolean hasLength()
int getArraySize()
NULL_ARRAY_SIZE
if it has no array length.
NULL_ARRAY_SIZE
boolean isDelta()
java.lang.String getTypeName()
ObjectID getObjectID() throws DNAException
TODO: Potentially change the type from long to something which can be a composite key. We want to be able to generate new ids in the local VM without making a round trip to the object service.
DNAException
- Exception thrown if the id cannot be resolved from the DNA strand.ObjectID getParentObjectID() throws DNAException
DNAException
- Exception thrown if the id cannot be resolvedDNACursor getCursor()
java.lang.String getDefiningLoaderDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |