KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > MockTCClass


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

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 JavaDoc;
14 import java.lang.reflect.Field JavaDoc;
15 import java.util.Map JavaDoc;
16
17 public class MockTCClass implements TCClass {
18   private String JavaDoc 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 JavaDoc pojo, TraversedReferences addTo) {
32     throw new ImplementMe();
33   }
34
35   public Constructor JavaDoc getConstructor() {
36     throw new ImplementMe();
37   }
38
39   public String JavaDoc getName() {
40     return this.name;
41   }
42
43   public Class JavaDoc 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 JavaDoc 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 JavaDoc pojo, boolean force) {
64     throw new ImplementMe();
65   }
66
67   public void dehydrate(TCObject tcObject, DNAWriter writer, Object JavaDoc pojo) {
68     throw new ImplementMe();
69   }
70
71   public Field getParentField() {
72     throw new ImplementMe();
73   }
74
75   public String JavaDoc getParentFieldName() {
76     return name + ".this$0";
77   }
78
79   public String JavaDoc getDefiningLoaderDescription() {
80     return "";
81   }
82
83   public boolean isNonStaticInner() {
84     throw new ImplementMe();
85   }
86
87   public TCObject createTCObject(ObjectID id, Object JavaDoc peer) {
88     throw new ImplementMe();
89   }
90
91   public boolean hasOnLoadExecuteScript() {
92     return false;
93   }
94
95   public String JavaDoc getOnLoadExecuteScript() {
96
97     return null;
98   }
99
100   public boolean hasOnLoadMethod() {
101     return false;
102   }
103
104   public String JavaDoc getOnLoadMethod() {
105     return null;
106   }
107
108   public boolean isUseNonDefaultConstructor() {
109     return false;
110   }
111
112   public Object JavaDoc getNewInstanceFromNonDefaultConstructor(DNA dna) {
113     throw new ImplementMe();
114   }
115
116   public Class JavaDoc getPeerClass() {
117     return getClass();
118   }
119
120   public Map JavaDoc connectedCopy(Object JavaDoc source, Object JavaDoc dest, Map JavaDoc visited, OptimisticTransactionManager txManager) {
121     throw new ImplementMe();
122   }
123
124   public String JavaDoc 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 JavaDoc getExtendingClassName() {
137     return getName();
138   }
139
140   public boolean isEnum() {
141     return false;
142   }
143
144 }
145
Popular Tags