| java.lang.Object org.kuali.module.gl.util.OJBUtility
OJBUtility | public class OJBUtility (Code) | | This class provides a set of utilities that can handle common tasks related to business objects.
|
buildCriteriaFromMap | public static Criteria buildCriteriaFromMap(Map fieldValues, Object businessObject)(Code) | | This method builds an OJB query criteria based on the input field map
Parameters: fieldValues - the input field map Parameters: businessObject - the given business object an OJB query criteria |
buildPropertyMap | public static LinkedHashMap buildPropertyMap(Object businessObject)(Code) | | This method builds a map of business object with its property names and values
Parameters: businessObject - the given business object the map of business object with its property names and values |
createCriteria | public static boolean createCriteria(Object businessObject, String propertyValue, String propertyName, Criteria criteria)(Code) | | This method build OJB criteria from the given property value and name
|
getResultActualSize | public static Long getResultActualSize(Collection result, Integer recordCount, Map fieldValues, Object businessObject)(Code) | | This method calculates the actual size of given selection results
Parameters: result - the given selection results Parameters: recordCount - the possible number of the given results Parameters: fieldValues - the input field map Parameters: businessObject - the given business object the actual size of given selection results |
getResultLimit | public static Integer getResultLimit()(Code) | | This method gets the limit of the selection results
the limit of the selection results |
getResultSizeFromMap | public static Long getResultSizeFromMap(Map fieldValues, Object businessObject)(Code) | | This method gets the size of a result set from the given search criteria
Parameters: fieldValues - the input field map Parameters: businessObject - the given business object the size of a result set from the given search criteria |
limitResultSize | public static void limitResultSize(Query query)(Code) | | Limit the size of the result set from the given query operation
Parameters: query - the given query operation |
|
|