Class LookupDaoOjb

java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
All Implemented Interfaces:
org.kuali.rice.core.framework.persistence.dao.PlatformAwareDao, LookupDao, org.springframework.beans.factory.InitializingBean

@Deprecated public class LookupDaoOjb extends PlatformAwareDaoBaseOjb implements LookupDao
Deprecated.
use new KRAD Data framework DataObjectService
OJB implementation of the LookupDao interface
  • Field Summary

    Fields inherited from class org.springframework.dao.support.DaoSupport

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    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
    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
    boolean
    createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria)
    Deprecated.
    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)
    Deprecated.
     
    boolean
    createCriteria(Object example, String searchValue, String propertyName, Object criteria)
    Deprecated.
    Create OJB criteria based on business object, search field and value
    findCollectionBySearchHelper(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> T
    findObjectByMap(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.Criteria
    getCollectionCriteriaFromMap(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.Criteria
    Deprecated.
     
    void
    setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService)
    Deprecated.
     
    void
    setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
    Deprecated.
     
    void
    Deprecated.
     

    Methods inherited from class org.kuali.rice.core.framework.persistence.ojb.dao.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
  • 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:
      findCollectionBySearchHelper in interface LookupDao
      Parameters:
      businessObjectClass - - business object being queried on
      formProps - - map of form properties
      unbounded - - indicates if the search should be unbounded
      usePrimaryKeyValuesOnly - - 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: LookupDao
      Retrieves a collection of objects for the businessObjectClass based on the other information passed into the method.
      Specified by:
      findCollectionBySearchHelper in interface LookupDao
      Parameters:
      businessObjectClass - - business object being queried on
      formProps - - map of form properties
      unbounded - - indicates if the search should be unbounded
      usePrimaryKeyValuesOnly - - indicates if only primary key values should be used
      searchResultsLimit - - 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 for
      criteria - search criteria
      platform - database platform
      limit - 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: LookupDao
      Create OJB criteria based on business object, search field and value
      Specified by:
      createCriteria in interface LookupDao
      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: LookupDao
      Create OJB criteria based on business object, search field and value
      Specified by:
      createCriteria in interface LookupDao
      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

      public Long findCountByMap(Object example, Map formProps)
      Deprecated.
      Find count of records meeting criteria based on the object and map.
      Specified by:
      findCountByMap in interface LookupDao
      Returns:
      Long returned from the search
    • findObjectByMap

      public <T> T findObjectByMap(Class<T> type, Map<String,String> formProps)
      Deprecated.
      Description copied from interface: LookupDao
      Retrieves a Object based on the search criteria, which should uniquely identify a record.
      Specified by:
      findObjectByMap in interface LookupDao
      Returns:
      Object returned from the search
      See Also:
      • invalid reference
        org.kuali.rice.krad.dao.LookupDao#findObjectByMap(java.lang.Object, java.util.Map)
    • 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 on
      activeSearchValue - - value for the active search field, should convert to boolean
      criteria - - Criteria object being built
      searchValues - - 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 on
      currentSearchValue - - value for the current search field, should convert to boolean
      criteria - - Criteria object being built
    • setDateTimeService

      public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
      Deprecated.
    • setPersistenceStructureService

      public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
      Deprecated.
    • setDataDictionaryService

      public void setDataDictionaryService(org.kuali.rice.krad.service.DataDictionaryService dataDictionaryService)
      Deprecated.