1 4 package com.tc.object; 5 6 import com.tc.object.dna.api.DNA; 7 import com.tc.object.dna.api.DNAWriter; 8 import com.tc.object.field.TCField; 9 import com.tc.object.tx.optimistic.OptimisticTransactionManager; 10 11 import java.io.IOException ; 12 import java.lang.reflect.Constructor ; 13 import java.lang.reflect.Field ; 14 import java.util.Map ; 15 16 29 public interface TCClass { 30 31 public Class getPeerClass(); 32 33 public boolean hasOnLoadExecuteScript(); 34 35 public boolean hasOnLoadMethod(); 36 37 public String getOnLoadMethod(); 38 39 public String getOnLoadExecuteScript(); 40 41 public Field getParentField(); 42 43 public String getParentFieldName(); 44 45 public TCField[] getPortableFields(); 46 47 52 public Map connectedCopy(Object source, Object dest, Map visited, OptimisticTransactionManager txManager); 53 54 public TraversedReferences getPortableObjects(Object pojo, TraversedReferences addTo); 55 56 public Constructor getConstructor() throws NoSuchMethodException , SecurityException ; 57 58 public String getName(); 59 60 public Class getComponentType(); 61 62 public boolean isLogical(); 63 64 public ClientObjectManager getObjectManager(); 65 66 public TCClass getSuperclass(); 67 68 public boolean isNonStaticInner(); 69 70 public boolean isEnum(); 71 72 public boolean isUseNonDefaultConstructor(); 73 74 public Object getNewInstanceFromNonDefaultConstructor(DNA dna) throws IOException , ClassNotFoundException ; 75 76 public TCField getField(String name); 77 78 public boolean isIndexed(); 79 80 public void hydrate(TCObject tcObject, DNA dna, Object pojo, boolean force) throws IOException , 81 ClassNotFoundException ; 82 83 public void dehydrate(TCObject tcObject, DNAWriter writer, Object pojo); 84 85 public String getDefiningLoaderDescription(); 86 87 public TCObject createTCObject(ObjectID id, Object peer); 88 89 public String getFieldNameByOffset(long fieldOffset); 90 91 public boolean isProxyClass(); 92 93 public String getExtendingClassName(); 94 } 95 | Popular Tags |