| com.tc.object.applicator.ChangeApplicator
All known Subclasses: com.tc.object.applicator.BaseApplicator,
ChangeApplicator | public interface ChangeApplicator (Code) | | Applies a serialzed change to an object.
|
Method Summary | |
public Map | connectedCopy(Object source, Object dest, Map visited, ClientObjectManager objectManager, OptimisticTransactionManager txManager) Create a new copy of the source object in the dest object, replacing connected objects with a new or
existing clone as necessary. | public void | dehydrate(ClientObjectManager objectManager, TCObject tcObject, DNAWriter writer, Object pojo) | public Object | getNewInstance(ClientObjectManager objectManager, DNA dna) Instantiate a new instance of the object from DNA. | public TraversedReferences | getPortableObjects(Object pojo, TraversedReferences addTo) Traverse an object and find all object references within it. | public void | hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object pojo) Reconstitute the state of an object from DNA. |
connectedCopy | public Map connectedCopy(Object source, Object dest, Map visited, ClientObjectManager objectManager, OptimisticTransactionManager txManager)(Code) | | Create a new copy of the source object in the dest object, replacing connected objects with a new or
existing clone as necessary. New clones that are created are returned so they can be properly
updated from their originals.
Parameters: source - The source object Parameters: dest - The destination copy object Parameters: visited - A Map of already visited objects and their clones (key=obj, value=clone) Parameters: objectManager - Client-side object manager Parameters: txManager - Transaction manager Newly cloned objects, key=obj, value=clone |
dehydrate | public void dehydrate(ClientObjectManager objectManager, TCObject tcObject, DNAWriter writer, Object pojo)(Code) | | Write an object's state to DNA
Parameters: objectManager - The client-side object manager Parameters: tcObject - The manager for the object Parameters: writer - The DNA writer for writing the DNA Parameters: pojo - The object to write to writer |
getNewInstance | public Object getNewInstance(ClientObjectManager objectManager, DNA dna) throws IOException, ClassNotFoundException(Code) | | Instantiate a new instance of the object from DNA. May not be supported on all applicators.
Parameters: objectManager - The client-side object manager Parameters: dna - The DNA for the new object The new instance |
getPortableObjects | public TraversedReferences getPortableObjects(Object pojo, TraversedReferences addTo)(Code) | | Traverse an object and find all object references within it.
Parameters: pojo - The object instance Parameters: addTo - A collection of traversed references found The addTo collection |
hydrate | public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object pojo) throws IOException, ClassNotFoundException(Code) | | Reconstitute the state of an object from DNA.
Parameters: objectManager - The client-side object manager Parameters: tcObject - The manager for the object Parameters: dna - The DNA, representing the state of the object Parameters: pojo - A new instance of the object to reconstitute - this object will be modified with the values from the DNA |
|
|