1 5 package com.tc.object; 6 7 import com.tc.exception.ImplementMe; 8 import com.tc.object.dna.api.DNA; 9 import com.tc.object.dna.api.DNAWriter; 10 import com.tc.object.field.TCField; 11 import com.tc.object.tx.optimistic.OptimisticTransactionManager; 12 13 import java.lang.reflect.Constructor ; 14 import java.lang.reflect.Field ; 15 import java.util.Map ; 16 17 public class MockTCClass implements TCClass { 18 private String name = MockTCClass.class.getName(); 19 private final boolean isIndexed; 20 private final boolean isLogical; 21 22 public MockTCClass(boolean isIndexed, boolean isLogical) { 23 this.isIndexed = isIndexed; 24 this.isLogical = isLogical; 25 } 26 27 public TCField[] getPortableFields() { 28 throw new ImplementMe(); 29 } 30 31 public TraversedReferences getPortableObjects(Object pojo, TraversedReferences addTo) { 32 throw new ImplementMe(); 33 } 34 35 public Constructor getConstructor() { 36 throw new ImplementMe(); 37 } 38 39 public String getName() { 40 return this.name; 41 } 42 43 public Class getComponentType() { 44 throw new ImplementMe(); 45 } 46 47 public TCClass getSuperclass() { 48 throw new ImplementMe(); 49 } 50 51 public boolean isLogical() { 52 return this.isLogical; 53 } 54 55 public TCField getField(String fieldName) { 56 throw new ImplementMe(); 57 } 58 59 public boolean isIndexed() { 60 return this.isIndexed; 61 } 62 63 public void hydrate(TCObject tcObject, DNA dna, Object pojo, boolean force) { 64 throw new ImplementMe(); 65 } 66 67 public void dehydrate(TCObject tcObject, DNAWriter writer, Object pojo) { 68 throw new ImplementMe(); 69 } 70 71 public Field getParentField() { 72 throw new ImplementMe(); 73 } 74 75 public String getParentFieldName() { 76 return name + ".this$0"; 77 } 78 79 public String getDefiningLoaderDescription() { 80 return ""; 81 } 82 83 public boolean isNonStaticInner() { 84 throw new ImplementMe(); 85 } 86 87 public TCObject createTCObject(ObjectID id, Object peer) { 88 throw new ImplementMe(); 89 } 90 91 public boolean hasOnLoadExecuteScript() { 92 return false; 93 } 94 95 public String getOnLoadExecuteScript() { 96 97 return null; 98 } 99 100 public boolean hasOnLoadMethod() { 101 return false; 102 } 103 104 public String getOnLoadMethod() { 105 return null; 106 } 107 108 public boolean isUseNonDefaultConstructor() { 109 return false; 110 } 111 112 public Object getNewInstanceFromNonDefaultConstructor(DNA dna) { 113 throw new ImplementMe(); 114 } 115 116 public Class getPeerClass() { 117 return getClass(); 118 } 119 120 public Map connectedCopy(Object source, Object dest, Map visited, OptimisticTransactionManager txManager) { 121 throw new ImplementMe(); 122 } 123 124 public String getFieldNameByOffset(long fieldOffset) { 125 throw new ImplementMe(); 126 } 127 128 public ClientObjectManager getObjectManager() { 129 throw new ImplementMe(); 130 } 131 132 public boolean isProxyClass() { 133 return false; 134 } 135 136 public String getExtendingClassName() { 137 return getName(); 138 } 139 140 public boolean isEnum() { 141 return false; 142 } 143 144 } 145 | Popular Tags |