KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > mgmt > ManagedObjectFacade


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.mgmt;
5
6 import com.tc.object.ObjectID;
7
8 import java.io.Serializable JavaDoc;
9
10 /**
11  * Management handle to a managed object in L2 (currently used by the admin GUI)
12  */

13 public interface ManagedObjectFacade extends Serializable JavaDoc {
14
15   public String JavaDoc getClassName();
16
17   public String JavaDoc[] getFields();
18
19   public Object JavaDoc getFieldValue(String JavaDoc fieldName);
20
21   public String JavaDoc getFieldType(String JavaDoc fieldName);
22
23   public boolean isPrimitive(String JavaDoc fieldName);
24
25   public ObjectID getObjectId();
26
27   public boolean isInnerClass();
28
29   public ObjectID getParentObjectId();
30
31   // Methods for array type instances
32
public boolean isArray();
33
34   public int getArrayLength();
35
36   // Methods for logically managed objects (ie. java collections like List, Map, Set, etc)
37
public boolean isList();
38
39   public boolean isSet();
40
41   public boolean isMap();
42
43   public int getFacadeSize(); // The current size (possibly truncated) of this collection facade
44

45   public int getTrueObjectSize(); // The non-truncated total size of this collection
46

47 }
48
Popular Tags