| java.lang.Object org.kuali.module.purap.util.PurApObjectUtils
PurApObjectUtils | public class PurApObjectUtils (Code) | | Purap Object Utils.
Similar to the nervous system ObjectUtils this class contains methods to reflectively set and get values on
BusinessObjects that are passed in.
|
Method Summary | |
public static boolean | equalByKeys(BusinessObject bo1, BusinessObject bo2) Compares two business objects for equality of type and key values. | public static void | populateFromBaseClass(Class base, BusinessObject src, BusinessObject target, Map supplementalUncopyable) | public static void | populateFromBaseClass(Class base, BusinessObject src, BusinessObject target) | public static void | populateFromBaseWithSuper(BusinessObject sourceObject, BusinessObject targetObject, Map supplementalUncopyableFieldNames, Set<Class> classesToExclude) Populates from a base class traversing up the object hierarchy. | public static BusinessObject | retrieveObjectWithIdentitcalKey(Collection controlList, BusinessObject bo) Compares a business object with a List of BOs to determine if an object with the same key as the BO exists in the list. |
equalByKeys | public static boolean equalByKeys(BusinessObject bo1, BusinessObject bo2)(Code) | | Compares two business objects for equality of type and key values.
Parameters: bo1 - Parameters: bo2 - boolean indicating whether the two objects are equal. |
populateFromBaseClass | public static void populateFromBaseClass(Class base, BusinessObject src, BusinessObject target, Map supplementalUncopyable)(Code) | | Populates a class using a base class to determine fields
Parameters: base - the class to determine what fields to copy Parameters: src - the source class Parameters: target - the target class Parameters: supplementalUncopyable - a list of fields to never copy |
populateFromBaseClass | public static void populateFromBaseClass(Class base, BusinessObject src, BusinessObject target)(Code) | | Copies based on a class template it does not copy fields in Known Uncopyable Fields
Parameters: base - the base class Parameters: src - source Parameters: target - target |
populateFromBaseWithSuper | public static void populateFromBaseWithSuper(BusinessObject sourceObject, BusinessObject targetObject, Map supplementalUncopyableFieldNames, Set<Class> classesToExclude)(Code) | | Populates from a base class traversing up the object hierarchy.
Parameters: sourceObject - object to copy from Parameters: targetObject - object to copy to Parameters: supplementalUncopyableFieldNames - fields to exclude Parameters: classesToExclude - classes to exclude |
retrieveObjectWithIdentitcalKey | public static BusinessObject retrieveObjectWithIdentitcalKey(Collection controlList, BusinessObject bo)(Code) | | Compares a business object with a List of BOs to determine if an object with the same key as the BO exists in the list. If it
does, the item is returned.
Parameters: controlList - - The list of items to check Parameters: bo - - The BO whose keys we are looking for in the controlList |
|
|