|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.gl.OJBUtility
public class OJBUtility
This class provides a set of utilities that can handle common tasks related to business objects.
Field Summary | |
---|---|
static String |
LOOKUP_DAO
|
Constructor Summary | |
---|---|
OJBUtility()
|
Method Summary | |
---|---|
static org.apache.ojb.broker.query.Criteria |
buildCriteriaFromMap(Map fieldValues,
Object businessObject)
This method builds an OJB query criteria based on the input field map |
static LinkedHashMap |
buildPropertyMap(Object businessObject)
This method builds a map of business object with its property names and values |
static boolean |
createCriteria(Object businessObject,
String propertyValue,
String propertyName,
org.apache.ojb.broker.query.Criteria criteria)
This method build OJB criteria from the given property value and name |
static Long |
getResultActualSize(Collection result,
Integer recordCount,
Map fieldValues,
Object businessObject)
This method calculates the actual size of given selection results |
static Integer |
getResultLimit()
This method gets the limit of the selection results |
static Long |
getResultSizeFromMap(Map fieldValues,
Object businessObject)
This method gets the size of a result set from the given search criteria |
static void |
limitResultSize(org.apache.ojb.broker.query.Query query)
Limit the size of the result set from the given query operation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LOOKUP_DAO
Constructor Detail |
---|
public OJBUtility()
Method Detail |
---|
public static LinkedHashMap buildPropertyMap(Object businessObject)
businessObject
- the given business object
public static org.apache.ojb.broker.query.Criteria buildCriteriaFromMap(Map fieldValues, Object businessObject)
fieldValues
- the input field mapbusinessObject
- the given business object
public static void limitResultSize(org.apache.ojb.broker.query.Query query)
query
- the given query operationpublic static Long getResultActualSize(Collection result, Integer recordCount, Map fieldValues, Object businessObject)
result
- the given selection resultsrecordCount
- the possible number of the given resultsfieldValues
- the input field mapbusinessObject
- the given business object
public static Long getResultSizeFromMap(Map fieldValues, Object businessObject)
fieldValues
- the input field mapbusinessObject
- the given business object
public static Integer getResultLimit()
public static boolean createCriteria(Object businessObject, String propertyValue, String propertyName, org.apache.ojb.broker.query.Criteria criteria)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |