Package org.kuali.rice.krad.dao.impl
Class LookupDaoOjb
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
org.kuali.rice.krad.dao.impl.LookupDaoOjb
- All Implemented Interfaces:
org.kuali.rice.core.framework.persistence.dao.PlatformAwareDao,LookupDao,org.springframework.beans.factory.InitializingBean
Deprecated.
OJB implementation of the LookupDao interface
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddInactivateableFromToActiveCriteria(Object example, String activeSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues) Deprecated.Translates criteria for active status to criteria on the active from and to fieldsprotected voidaddInactivateableFromToCurrentCriteria(Object example, String currentSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues) Deprecated.Translates criteria for current status to criteria on the active from fieldprotected voidapplySearchResultsLimit(Class businessObjectClass, org.apache.ojb.broker.query.Criteria criteria, org.kuali.rice.core.framework.persistence.platform.DatabasePlatform platform, Integer limit) Deprecated.This method applies the search results limit to the search criteria for this BObooleancreateCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria) Deprecated.Create OJB criteria based on business object, search field and valuebooleancreateCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria, Map searchValues) Deprecated.booleancreateCriteria(Object example, String searchValue, String propertyName, Object criteria) Deprecated.Create OJB criteria based on business object, search field and valuefindCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly) Deprecated.Since 2.3 This version of findCollectionBySearchHelper is needed for version compatibility.findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly, Integer searchResultsLimit) Deprecated.Retrieves a collection of objects for the businessObjectClass based on the other information passed into the method.findCountByMap(Object example, Map formProps) Deprecated.Find count of records meeting criteria based on the object and map.<T> TfindObjectByMap(Class<T> type, Map<String, String> formProps) Deprecated.Retrieves a Object based on the search criteria, which should uniquely identify a record.org.apache.ojb.broker.query.CriteriagetCollectionCriteriaFromMap(org.kuali.rice.krad.bo.BusinessObject example, Map formProps) Deprecated.Builds up criteria object based on the object and map.org.apache.ojb.broker.query.CriteriagetCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass, Map formProps) Deprecated.voidsetDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService) Deprecated.voidsetDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService) Deprecated.voidsetPersistenceStructureService(PersistenceStructureService persistenceStructureService) Deprecated.Methods inherited from class org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatformMethods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplateMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
LookupDaoOjb
public LookupDaoOjb()Deprecated.
-
-
Method Details
-
findCollectionBySearchHelper
public Collection findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly) Deprecated.Since 2.3 This version of findCollectionBySearchHelper is needed for version compatibility. It allows executeSearch to behave the same way as it did prior to 2.3. The value for searchResultsLimit will be retrieved from the KNS version of LookupUtils.- Specified by:
findCollectionBySearchHelperin interfaceLookupDao- Parameters:
businessObjectClass- - business object being queried onformProps- - map of form propertiesunbounded- - indicates if the search should be unboundedusePrimaryKeyValuesOnly- - indicates if only primary key values should be used- Returns:
- Object returned from the search
- See Also:
-
findCollectionBySearchHelper
public Collection findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly, Integer searchResultsLimit) Deprecated.Description copied from interface:LookupDaoRetrieves a collection of objects for the businessObjectClass based on the other information passed into the method.- Specified by:
findCollectionBySearchHelperin interfaceLookupDao- Parameters:
businessObjectClass- - business object being queried onformProps- - map of form propertiesunbounded- - indicates if the search should be unboundedusePrimaryKeyValuesOnly- - indicates if only primary key values should be usedsearchResultsLimit- - used to limit the number of items returned- Returns:
- Object returned from the search
- See Also:
-
getCollectionCriteriaFromMap
public org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMap(org.kuali.rice.krad.bo.BusinessObject example, Map formProps) Deprecated.Builds up criteria object based on the object and map. -
getCollectionCriteriaFromMapUsingPrimaryKeysOnly
public org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass, Map formProps) Deprecated. -
applySearchResultsLimit
protected void applySearchResultsLimit(Class businessObjectClass, org.apache.ojb.broker.query.Criteria criteria, org.kuali.rice.core.framework.persistence.platform.DatabasePlatform platform, Integer limit) Deprecated.This method applies the search results limit to the search criteria for this BO- Parameters:
businessObjectClass- BO class to search on / get limit forcriteria- search criteriaplatform- database platformlimit- limit to use. If limit is null, getSearchResultsLimit will be called using the businessObjectClass to see if a limit can be found for this particular businessObjectClass.
-
createCriteria
public boolean createCriteria(Object example, String searchValue, String propertyName, Object criteria) Deprecated.Description copied from interface:LookupDaoCreate OJB criteria based on business object, search field and value- Specified by:
createCriteriain interfaceLookupDao- Returns:
- true if the criteria is created successfully; otherwise, return false
-
createCriteria
public boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria) Deprecated.Description copied from interface:LookupDaoCreate OJB criteria based on business object, search field and value- Specified by:
createCriteriain interfaceLookupDao- Returns:
- true if the criteria is created successfully; otherwise, return false
-
createCriteria
public boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria, Map searchValues) Deprecated. -
findCountByMap
Deprecated.Find count of records meeting criteria based on the object and map.- Specified by:
findCountByMapin interfaceLookupDao- Returns:
- Long returned from the search
-
findObjectByMap
Deprecated.Description copied from interface:LookupDaoRetrieves a Object based on the search criteria, which should uniquely identify a record.- Specified by:
findObjectByMapin interfaceLookupDao- Returns:
- Object returned from the search
- See Also:
-
addInactivateableFromToActiveCriteria
protected void addInactivateableFromToActiveCriteria(Object example, String activeSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues) Deprecated.Translates criteria for active status to criteria on the active from and to fields- Parameters:
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 values
-
addInactivateableFromToCurrentCriteria
protected void addInactivateableFromToCurrentCriteria(Object example, String currentSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues) Deprecated.Translates criteria for current status to criteria on the active from field- Parameters:
example- - business object being queried oncurrentSearchValue- - value for the current search field, should convert to booleancriteria- - Criteria object being built
-
setDateTimeService
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService) Deprecated. -
setPersistenceStructureService
Deprecated. -
setDataDictionaryService
public void setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService) Deprecated.
-
DataObjectService