KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > applicator > ChangeApplicator


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.applicator;
5
6 import com.tc.object.ClientObjectManager;
7 import com.tc.object.TCObject;
8 import com.tc.object.TraversedReferences;
9 import com.tc.object.dna.api.DNA;
10 import com.tc.object.dna.api.DNAWriter;
11 import com.tc.object.tx.optimistic.OptimisticTransactionManager;
12
13 import java.io.IOException JavaDoc;
14 import java.util.Map JavaDoc;
15
16 /**
17  * Applies a serialzed change to an object.
18  */

19 public interface ChangeApplicator {
20   public void hydrate(ClientObjectManager objectManager, TCObject tcObject, DNA dna, Object JavaDoc pojo) throws IOException JavaDoc,
21       ClassNotFoundException JavaDoc;
22
23   public void dehydrate(ClientObjectManager objectManager, TCObject tcObject, DNAWriter writer, Object JavaDoc pojo);
24
25   public Map JavaDoc connectedCopy(Object JavaDoc source, Object JavaDoc dest, Map JavaDoc visited, ClientObjectManager objectManager,
26                            OptimisticTransactionManager txManager);
27
28   public TraversedReferences getPortableObjects(Object JavaDoc pojo, TraversedReferences addTo);
29
30   public Object JavaDoc getNewInstance(ClientObjectManager objectManager, DNA dna) throws IOException JavaDoc, ClassNotFoundException JavaDoc;
31 }
Popular Tags