public class OJBUtility extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOOKUP_DAO |
Constructor and Description |
---|
OJBUtility() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String LOOKUP_DAO
public OJBUtility()
public static LinkedHashMap buildPropertyMap(Object businessObject)
businessObject
- the given business objectpublic static org.apache.ojb.broker.query.Criteria buildCriteriaFromMap(Map fieldValues, Object businessObject)
fieldValues
- the input field mapbusinessObject
- the given business objectpublic 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 objectpublic static Long getResultSizeFromMap(Map fieldValues, Object businessObject)
fieldValues
- the input field mapbusinessObject
- the given business objectpublic static Integer getResultLimit()
public static boolean createCriteria(Object businessObject, String propertyValue, String propertyName, org.apache.ojb.broker.query.Criteria criteria)
Copyright © 2004–2016 The Kuali Foundation. All rights reserved.