|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb org.kuali.rice.kns.dao.impl.LookupDaoOjb
public class LookupDaoOjb
OJB implementation of the LookupDao interface
Field Summary | |
---|---|
private BusinessObjectDictionaryService |
businessObjectDictionaryService
|
private DateTimeService |
dateTimeService
|
private static org.apache.log4j.Logger |
LOG
|
private PersistenceStructureService |
persistenceStructureService
|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
LookupDaoOjb()
|
Method Summary | |
---|---|
private void |
addAndCriteria(String propertyName,
String propertyValue,
Class propertyType,
boolean caseInsensitive,
org.apache.ojb.broker.query.Criteria criteria)
|
private void |
addCriteria(String propertyName,
String propertyValue,
Class propertyType,
boolean caseInsensitive,
boolean treatWildcardsAndOperatorsAsLiteral,
org.apache.ojb.broker.query.Criteria criteria)
Adds to the criteria object based on the property type and any query characters given. |
private void |
addDateRangeCriteria(String propertyName,
String propertyValue,
boolean treatWildcardsAndOperatorsAsLiteral,
org.apache.ojb.broker.query.Criteria criteria)
Adds to the criteria object based on query characters given |
protected void |
addInactivateableFromToActiveCriteria(Object example,
String activeSearchValue,
org.apache.ojb.broker.query.Criteria criteria,
Map searchValues)
Translates criteria for active status to criteria on the active from and to fields |
protected void |
addInactivateableFromToCurrentCriteria(Object example,
String currentSearchValue,
org.apache.ojb.broker.query.Criteria criteria,
Map searchValues)
Translates criteria for current status to criteria on the active from field |
private void |
addLogicalOperatorCriteria(String propertyName,
String propertyValue,
Class propertyType,
boolean caseInsensitive,
org.apache.ojb.broker.query.Criteria criteria,
String splitValue)
Builds a sub criteria object joined with an 'AND' or 'OR' (depending on splitValue) using the split values of propertyValue. |
private void |
addNotCriteria(String propertyName,
String propertyValue,
Class propertyType,
boolean caseInsensitive,
org.apache.ojb.broker.query.Criteria criteria)
|
private void |
addNumericRangeCriteria(String propertyName,
String propertyValue,
boolean treatWildcardsAndOperatorsAsLiteral,
org.apache.ojb.broker.query.Criteria criteria)
Adds to the criteria object based on query characters given |
private void |
addOrCriteria(String propertyName,
String propertyValue,
Class propertyType,
boolean caseInsensitive,
org.apache.ojb.broker.query.Criteria criteria)
|
private void |
addStringRangeCriteria(String propertyName,
String propertyValue,
org.apache.ojb.broker.query.Criteria criteria)
Adds to the criteria object based on query characters given |
private BusinessObject |
checkBusinessObjectClass(Class businessObjectClass)
|
private BigDecimal |
cleanNumeric(String value)
|
boolean |
createCriteria(Object example,
String searchValue,
String propertyName,
boolean caseInsensitive,
boolean treatWildcardsAndOperatorsAsLiteral,
Object criteria)
Create OJB criteria based on business object, search field and value |
boolean |
createCriteria(Object example,
String searchValue,
String propertyName,
boolean caseInsensitive,
boolean treatWildcardsAndOperatorsAsLiteral,
Object criteria,
Map searchValues)
|
boolean |
createCriteria(Object example,
String searchValue,
String propertyName,
Object criteria)
Create OJB criteria based on business object, search field and value |
private Collection |
executeSearch(Class businessObjectClass,
org.apache.ojb.broker.query.Criteria criteria,
boolean unbounded)
|
Collection |
findCollectionBySearchHelper(Class businessObjectClass,
Map formProps,
boolean unbounded,
boolean usePrimaryKeyValuesOnly)
|
Collection |
findCollectionBySearchHelper(Class businessObjectClass,
Map formProps,
boolean unbounded,
boolean usePrimaryKeyValuesOnly,
Object additionalCriteria)
|
Long |
findCountByMap(Object example,
Map formProps)
Find count of records meeting criteria based on the object and map. |
Object |
findObjectByMap(Object example,
Map formProps)
Retrieves a Object based on the search criteria, which should uniquely identify a record. |
org.apache.ojb.broker.query.Criteria |
getCollectionCriteriaFromMap(BusinessObject example,
Map formProps)
Builds up criteria object based on the object and map. |
org.apache.ojb.broker.query.Criteria |
getCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass,
Map formProps)
|
private Date |
parseDate(String dateString)
|
void |
setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
|
void |
setDateTimeService(DateTimeService dateTimeService)
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
|
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb |
---|
getDbPlatform, setDbPlatform |
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport |
---|
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
private DateTimeService dateTimeService
private PersistenceStructureService persistenceStructureService
private BusinessObjectDictionaryService businessObjectDictionaryService
Constructor Detail |
---|
public LookupDaoOjb()
Method Detail |
---|
public Collection findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly)
findCollectionBySearchHelper
in interface LookupDao
public Collection findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly, Object additionalCriteria)
findCollectionBySearchHelper
in interface LookupDao
public org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMap(BusinessObject example, Map formProps)
public org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass, Map formProps)
private BusinessObject checkBusinessObjectClass(Class businessObjectClass)
private Collection executeSearch(Class businessObjectClass, org.apache.ojb.broker.query.Criteria criteria, boolean unbounded)
public boolean createCriteria(Object example, String searchValue, String propertyName, Object criteria)
LookupDao
createCriteria
in interface LookupDao
public boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria)
LookupDao
createCriteria
in interface LookupDao
public boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria, Map searchValues)
public Long findCountByMap(Object example, Map formProps)
findCountByMap
in interface LookupDao
public Object findObjectByMap(Object example, Map formProps)
LookupDao
findObjectByMap
in interface LookupDao
LookupDao.findObjectByMap(java.lang.Object, java.util.Map)
private void addCriteria(String propertyName, String propertyValue, Class propertyType, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, org.apache.ojb.broker.query.Criteria criteria)
protected void addInactivateableFromToActiveCriteria(Object example, String activeSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues)
example
- - business object being queried onactiveSearchValue
- - value for the active search field, should convert to booleancriteria
- - Criteria object being builtsearchValues
- - Map containing all search keys and valuesprotected void addInactivateableFromToCurrentCriteria(Object example, String currentSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues)
example
- - business object being queried oncurrentSearchValue
- - value for the current search field, should convert to booleancriteria
- - Criteria object being builtprivate void addOrCriteria(String propertyName, String propertyValue, Class propertyType, boolean caseInsensitive, org.apache.ojb.broker.query.Criteria criteria)
propertyName
- propertyValue
- propertyType
- criteria
- private void addAndCriteria(String propertyName, String propertyValue, Class propertyType, boolean caseInsensitive, org.apache.ojb.broker.query.Criteria criteria)
propertyName
- propertyValue
- propertyType
- criteria
- private void addNotCriteria(String propertyName, String propertyValue, Class propertyType, boolean caseInsensitive, org.apache.ojb.broker.query.Criteria criteria)
private void addLogicalOperatorCriteria(String propertyName, String propertyValue, Class propertyType, boolean caseInsensitive, org.apache.ojb.broker.query.Criteria criteria, String splitValue)
private Date parseDate(String dateString)
private void addDateRangeCriteria(String propertyName, String propertyValue, boolean treatWildcardsAndOperatorsAsLiteral, org.apache.ojb.broker.query.Criteria criteria)
private BigDecimal cleanNumeric(String value)
private void addNumericRangeCriteria(String propertyName, String propertyValue, boolean treatWildcardsAndOperatorsAsLiteral, org.apache.ojb.broker.query.Criteria criteria)
private void addStringRangeCriteria(String propertyName, String propertyValue, org.apache.ojb.broker.query.Criteria criteria)
public void setDateTimeService(DateTimeService dateTimeService)
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |