KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > core > api > ManagedObject


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.objectserver.core.api;
5
6 import com.tc.io.TCByteBufferOutputStream;
7 import com.tc.object.ObjectID;
8 import com.tc.object.dna.api.DNA;
9 import com.tc.object.dna.api.DNAException;
10 import com.tc.object.dna.impl.ObjectStringSerializer;
11 import com.tc.object.tx.TransactionID;
12 import com.tc.objectserver.api.ObjectInstanceMonitor;
13 import com.tc.objectserver.impl.ManagedObjectReference;
14 import com.tc.objectserver.managedobject.BackReferences;
15 import com.tc.objectserver.managedobject.ManagedObjectTraverser;
16 import com.tc.objectserver.mgmt.ManagedObjectFacade;
17
18 import java.util.Set JavaDoc;
19
20 /**
21  * @author steve
22  */

23 public interface ManagedObject {
24
25   public ObjectID getID();
26
27   public ManagedObjectReference getReference();
28
29   public Set JavaDoc getObjectReferences();
30
31   public void apply(DNA dna, TransactionID txnID, BackReferences includeIDs, ObjectInstanceMonitor instanceMonitor)
32       throws DNAException;
33
34   public void toDNA(TCByteBufferOutputStream out, ObjectStringSerializer serializer);
35
36   public boolean isDirty();
37
38   public void setIsDirty(boolean isDirty);
39
40   public ManagedObjectFacade createFacade(int limit);
41
42   public boolean isNew();
43
44   public ManagedObjectState getManagedObjectState();
45
46   public void addObjectReferencesTo(ManagedObjectTraverser traverser);
47
48 }
Popular Tags