| com.tc.object.dna.api.DNA
All known Subclasses: com.tc.objectserver.core.api.TestDNA, com.tc.object.dna.impl.DNAImpl, com.tc.object.dna.impl.VersionizedDNAWrapper, com.tc.object.tx.optimistic.DNAToChangeBufferBridge,
DNA | public interface DNA (Code) | | 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.
author: Orion Letizi |
NULL_ARRAY_SIZE | final public static int NULL_ARRAY_SIZE(Code) | | Array size constant indicating no array size
|
NULL_VERSION | final public static int NULL_VERSION(Code) | | Version constant indicating no version
|
getCursor | public DNACursor getCursor()(Code) | | Gets a DNACursor to spin through the field values.
The cursor |
getDefiningLoaderDescription | public String getDefiningLoaderDescription()(Code) | | Get defining classloader name
Classloader name |
getObjectID | public ObjectID getObjectID() throws DNAException(Code) | | Gets the id of the object represented by this DNA strand. The id is globally unique.
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.
The id in question throws: DNAException - Exception thrown if the id cannot be resolved from the DNA strand. |
getParentObjectID | public ObjectID getParentObjectID() throws DNAException(Code) | | If this object is an inner class, get the parent object identifier
The parent object if one exists throws: DNAException - Exception thrown if the id cannot be resolved |
getTypeName | public String getTypeName()(Code) | | Get the class name of the type for this piece of DNA
Class name |
getVersion | public long getVersion()(Code) | | Get the version of this DNA based on the global transaction ID,
may be
DNA.NULL_VERSION .
|
hasLength | public boolean hasLength()(Code) | | Determine whether this DNA has an array length
True if has length |
isDelta | public boolean isDelta()(Code) | | Determine whether this DNA is a whole object or just a delta
true if the DNA represents a change of an object andfalse if the DNA represents the entire object. |
|
|