All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class replica.MetaInformer

java.lang.Object
   |
   +----meta.MetaObject
           |
           +----replica.MetaInformer

public class MetaInformer
extends MetaObject
This class is only important if you want to add your own replication strategy. It provides information about the relationship of Base- and Meta-Objects. It can also be used to retreive information about objects which have no Meta-object.

Version:
1.0
Author:
Markus Jäger

Constructor Index

 o MetaInformer()

Method Index

 o createSystemObject(Object, String, RemoteObjectReference)
This method creates a new instance of a System-Object.
 o creInstanceByName(String)
This method creates a new Instance.
 o getAccessControlObject(Object)
This method returns the AccessControlObject of Base-Object.
 o getLayout(Object)
This method provides information about an object.
 o makeAtLeastReferenceObject(Object)
This method transforms an object in a Remote-Object or more.
 o newInstance(Class)
This method creates a new Instance.
 o retFieldBool(Object, String)
This method provides information about an object.
 o retFieldByte(Object, String)
This method provides information about an object.
 o retFieldChar(Object, String)
This method provides information about an object.
 o retFieldDouble(Object, String)
This method provides information about an object.
 o retFieldFloat(Object, String)
This method provides information about an object.
 o retFieldInt(Object, String)
This method provides information about an object.
 o retFieldLong(Object, String)
This method provides information about an object.
 o retFieldObject(Object, String)
This method provides information about an object.
 o retFieldShort(Object, String)
This method provides information about an object.
 o shallowCopyObject(Object)
This method performs a shallow copy of an object.
 o shallowCopyObject(Object, Object)
This method performs a shallow copy of an object.
 o stoFieldBool(Object, String, boolean)
This method provides information about an object.
 o stoFieldByte(Object, String, byte)
This method provides information about an object.
 o stoFieldChar(Object, String, char)
This method provides information about an object.
 o stoFieldDouble(Object, String, double)
This method provides information about an object.
 o stoFieldFloat(Object, String, float)
This method provides information about an object.
 o stoFieldInt(Object, String, int)
This method provides information about an object.
 o stoFieldLong(Object, String, long)
This method provides information about an object.
 o stoFieldObject(Object, String, Object)
This method provides information about an object.
 o stoFieldShort(Object, String, short)
This method provides information about an object.

Constructors

 o MetaInformer
 public MetaInformer()

Methods

 o getAccessControlObject
 public static AccessControlObject getAccessControlObject(Object obj)
This method returns the AccessControlObject of Base-Object.

Parameters:
obj - The Base-Object
Returns:
The AccessControlObject
 o shallowCopyObject
 public static void shallowCopyObject(Object src,
                                      Object dest)
This method performs a shallow copy of an object.

Parameters:
src - The source object.
dest - The destination object.
 o shallowCopyObject
 public static Object shallowCopyObject(Object src)
This method performs a shallow copy of an object.

Parameters:
src - The source object.
Returns:
The new copy.
 o makeAtLeastReferenceObject
 public static void makeAtLeastReferenceObject(Object obj)
This method transforms an object in a Remote-Object or more.

Parameters:
obj - The object
 o createSystemObject
 public static Object createSystemObject(Object parent,
                                         String className,
                                         RemoteObjectReference id) throws IOException
This method creates a new instance of a System-Object.

Parameters:
parent - The Object the new System-Object belongs to.
className - The Class of the new System-Object.
id - The unique ID of the new System-Object.
Returns:
The new System-Object
Throws: IOException
Thrown if the new System-Object could not be created.
 o getLayout
 public static ObjectLayout getLayout(Object o)
This method provides information about an object.

 o retFieldByte
 public static byte retFieldByte(Object o,
                                 String name)
This method provides information about an object.

 o retFieldChar
 public static char retFieldChar(Object o,
                                 String name)
This method provides information about an object.

 o retFieldDouble
 public static double retFieldDouble(Object o,
                                     String name)
This method provides information about an object.

 o retFieldFloat
 public static float retFieldFloat(Object o,
                                   String name)
This method provides information about an object.

 o retFieldInt
 public static int retFieldInt(Object o,
                               String name)
This method provides information about an object.

 o retFieldLong
 public static long retFieldLong(Object o,
                                 String name)
This method provides information about an object.

 o retFieldObject
 public static Object retFieldObject(Object o,
                                     String name)
This method provides information about an object.

 o retFieldShort
 public static short retFieldShort(Object o,
                                   String name)
This method provides information about an object.

 o retFieldBool
 public static boolean retFieldBool(Object o,
                                    String name)
This method provides information about an object.

 o stoFieldByte
 public static void stoFieldByte(Object o,
                                 String name,
                                 byte contents)
This method provides information about an object.

 o stoFieldChar
 public static void stoFieldChar(Object o,
                                 String name,
                                 char contents)
This method provides information about an object.

 o stoFieldDouble
 public static void stoFieldDouble(Object o,
                                   String name,
                                   double contents)
This method provides information about an object.

 o stoFieldFloat
 public static void stoFieldFloat(Object o,
                                  String name,
                                  float contents)
This method provides information about an object.

 o stoFieldInt
 public static void stoFieldInt(Object o,
                                String name,
                                int contents)
This method provides information about an object.

 o stoFieldLong
 public static void stoFieldLong(Object o,
                                 String name,
                                 long contents)
This method provides information about an object.

 o stoFieldObject
 public static void stoFieldObject(Object o,
                                   String name,
                                   Object contents)
This method provides information about an object.

 o stoFieldShort
 public static void stoFieldShort(Object o,
                                  String name,
                                  short contents)
This method provides information about an object.

 o stoFieldBool
 public static void stoFieldBool(Object o,
                                 String name,
                                 boolean contents)
This method provides information about an object.

 o newInstance
 public static Object newInstance(Class clazz)
This method creates a new Instance.

Parameters:
clazz - The class of the new instance.
Returns:
The new instance
 o creInstanceByName
 public static Object creInstanceByName(String className)
This method creates a new Instance.

Parameters:
className - The name of the class of the new instance.
Returns:
The new instance

All Packages  Class Hierarchy  This Package  Previous  Next  Index