net.sf.jzeno.util
Class BeanUtil

java.lang.Object
  extended by net.sf.jzeno.util.BeanUtil

public class BeanUtil
extends java.lang.Object


Method Summary
static AbstractEntity clone(AbstractEntity abstractEntity)
          Performs a "deep" clone of an AbstractEntity object.
static AbstractEntity clone(AbstractEntity abstractEntity, java.util.List exclusions)
          Performs a "deep" clone of an AbstractEntity object.
static AbstractEntity clone(AbstractEntity abstractEntity, java.util.List exclusions, boolean exclusive, boolean includeNonCloned)
           
static java.util.Collection clone(java.util.Collection values, java.util.List exclusions, boolean exclusive, boolean includeNonCloned)
          Performs a "deep" clone of a Collection with AbstractEntity objects.
static java.lang.Object deepCopy(java.lang.Object oldObj)
           
static void deepPrint(AbstractEntity abstractEntity)
          Print out an AbstractEntity using Log4J.
static void deepPrint(java.util.List abstractEntities)
          Print out a List of AbstractEntity using Log4J.
static java.util.List deProxy(java.util.Collection collection)
           
static java.lang.Object deProxy(java.lang.Object entity)
           
static java.lang.Class getClass(java.lang.Object object)
           
static java.lang.Object getProperty(java.lang.Object bean, java.lang.String propertyPath)
           
static java.util.Map groupObjects(java.util.Collection disorganizedObjects, java.lang.String propertyPath)
           
static boolean instanceofClass(java.lang.Class clazz, java.lang.Object object)
           
static boolean isChanged(AbstractEntity abstractEntity)
          Checks if an AbstractEntity has been changed.
static boolean isNull(java.lang.Object parent, java.lang.String propertyPath)
          Returns true if the complete path returns a non-null value.
static boolean objectsAgree(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNull

public static boolean isNull(java.lang.Object parent,
                             java.lang.String propertyPath)
Returns true if the complete path returns a non-null value.


deepCopy

public static java.lang.Object deepCopy(java.lang.Object oldObj)
                                 throws InternalServerException
Throws:
InternalServerException

deProxy

public static java.lang.Object deProxy(java.lang.Object entity)

deProxy

public static java.util.List deProxy(java.util.Collection collection)

instanceofClass

public static boolean instanceofClass(java.lang.Class clazz,
                                      java.lang.Object object)

getClass

public static java.lang.Class getClass(java.lang.Object object)

objectsAgree

public static boolean objectsAgree(java.lang.Object o1,
                                   java.lang.Object o2)

getProperty

public static java.lang.Object getProperty(java.lang.Object bean,
                                           java.lang.String propertyPath)

isChanged

public static boolean isChanged(AbstractEntity abstractEntity)
Checks if an AbstractEntity has been changed. This method will recursively go through all AbstractEntity members (also those in a collection).


clone

public static AbstractEntity clone(AbstractEntity abstractEntity)
Performs a "deep" clone of an AbstractEntity object.


clone

public static AbstractEntity clone(AbstractEntity abstractEntity,
                                   java.util.List exclusions)
Performs a "deep" clone of an AbstractEntity object.


clone

public static AbstractEntity clone(AbstractEntity abstractEntity,
                                   java.util.List exclusions,
                                   boolean exclusive,
                                   boolean includeNonCloned)

clone

public static java.util.Collection clone(java.util.Collection values,
                                         java.util.List exclusions,
                                         boolean exclusive,
                                         boolean includeNonCloned)
Performs a "deep" clone of a Collection with AbstractEntity objects.


deepPrint

public static void deepPrint(AbstractEntity abstractEntity)
Print out an AbstractEntity using Log4J.


deepPrint

public static void deepPrint(java.util.List abstractEntities)
Print out a List of AbstractEntity using Log4J.


groupObjects

public static java.util.Map groupObjects(java.util.Collection disorganizedObjects,
                                         java.lang.String propertyPath)