Class BusinessObjectDaoProxy

java.lang.Object
org.kuali.rice.krad.dao.proxy.BusinessObjectDaoProxy
All Implemented Interfaces:
BusinessObjectDao

@Deprecated @Transactional public class BusinessObjectDaoProxy extends Object implements BusinessObjectDao
Deprecated.
use new KRAD Data framework DataObjectService
  • Constructor Details

    • BusinessObjectDaoProxy

      public BusinessObjectDaoProxy()
      Deprecated.
  • Method Details

    • countMatching

      public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Specified by:
      countMatching in interface BusinessObjectDao
      Returns:
      count of BusinessObjects of the given class whose fields match the values in the given Map.
    • countMatching

      public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String,?> positiveFieldValues, Map<String,?> negativeFieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      This method returns the number of matching result given the positive criterias and negative criterias. The negative criterias are the ones that will be set to "notEqualTo" or "notIn"
      Specified by:
      countMatching in interface BusinessObjectDao
      Parameters:
      positiveFieldValues - Map of fields and values for positive criteria
      negativeFieldValues - Map of fields and values for negative criteria
    • delete

      public void delete(Object bo)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Deletes a business object from the database.
      Specified by:
      delete in interface BusinessObjectDao
    • delete

      public <T extends PersistableBusinessObject> void delete(List<T> boList)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Deletes each business object in the given List from the database.
      Specified by:
      delete in interface BusinessObjectDao
    • deleteMatching

      public <T extends PersistableBusinessObject> void deleteMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Deletes the business objects matching the given fieldValues
      Specified by:
      deleteMatching in interface BusinessObjectDao
    • findAll

      public <T extends PersistableBusinessObject> List<T> findAll(Class<T> clazz)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type.
      Specified by:
      findAll in interface BusinessObjectDao
    • findAll

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAll(Class<T> clazz, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findAll in interface BusinessObjectDao
    • findAllActive

      public <T extends PersistableBusinessObject> List<T> findAllActive(Class<T> clazz)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type. Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active
      Specified by:
      findAllActive in interface BusinessObjectDao
    • findAllActive

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAllActive(Class<T> clazz, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findAllActive in interface BusinessObjectDao
    • findAllInactive

      public <T extends PersistableBusinessObject> List<T> findAllInactive(Class<T> clazz)
      Deprecated.
      Specified by:
      findAllInactive in interface BusinessObjectDao
    • findAllInactive

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAllInactive(Class<T> clazz, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findAllInactive in interface BusinessObjectDao
    • findAllActiveOrderBy

      public <T extends PersistableBusinessObject> List<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type. Orders the results by the given field. Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active
      Specified by:
      findAllActiveOrderBy in interface BusinessObjectDao
    • findAllActiveOrderBy

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findAllActiveOrderBy in interface BusinessObjectDao
    • findAllOrderBy

      public <T extends PersistableBusinessObject> List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type. Orders the results by the given field.
      Specified by:
      findAllOrderBy in interface BusinessObjectDao
    • findAllOrderBy

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findAllOrderBy in interface BusinessObjectDao
    • findBySinglePrimaryKey

      public <T extends PersistableBusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Retrieves an object instance identified by its primary key. For composite keys, use BusinessObjectDao.findByPrimaryKey(Class, Map)
      Specified by:
      findBySinglePrimaryKey in interface BusinessObjectDao
    • findByPrimaryKey

      public <T extends PersistableBusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Retrieves an object instance identified bys it primary keys and values. This can be done by constructing a map where the key to the map entry is the primary key attribute and the value of the entry being the primary key value. For composite keys, pass in each primaryKey attribute and its value as a map entry.
      Specified by:
      findByPrimaryKey in interface BusinessObjectDao
    • findMatching

      public <T extends PersistableBusinessObject> List<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name-expected value.
      Specified by:
      findMatching in interface BusinessObjectDao
    • findMatching

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findMatching(Class<T> clazz, Map<String,?> fieldValues, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findMatching in interface BusinessObjectDao
    • findMatchingActive

      public <T extends PersistableBusinessObject> List<T> findMatchingActive(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name-expected value. Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active
      Specified by:
      findMatchingActive in interface BusinessObjectDao
    • findMatchingActive

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findMatchingActive(Class<T> clazz, Map<String,?> fieldValues, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findMatchingActive in interface BusinessObjectDao
    • findMatchingOrderBy

      public <T extends PersistableBusinessObject> List<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name-expected value. Orders the results by the given field.
      Specified by:
      findMatchingOrderBy in interface BusinessObjectDao
    • findMatchingOrderBy

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findMatchingOrderBy in interface BusinessObjectDao
    • retrieve

      public Object retrieve(Object object)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Retrieves an object instance identified by the class of the given object and the object's primary key values.
      Specified by:
      retrieve in interface BusinessObjectDao
    • manageReadOnly

      public <T extends PersistableBusinessObject> T manageReadOnly(T bo)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Merges the given business object, but tells the ORM that the object is to be treated as Read Only, and even if it has changes, it will not be persisted to the database
      Specified by:
      manageReadOnly in interface BusinessObjectDao
      Parameters:
      bo - the business object to managed
      Returns:
      the managed copied of the business object
    • findByPrimaryKeyUsingKeyObject

      public <T extends PersistableBusinessObject> T findByPrimaryKeyUsingKeyObject(Class<T> clazz, Object pkObject)
      Deprecated.
      Defers to correct DAO for this class
      Specified by:
      findByPrimaryKeyUsingKeyObject in interface BusinessObjectDao
      Parameters:
      clazz - the class of the object to retrieve
      pkObject - the value of the primary key
      Returns:
      the retrieved PersistableBusinessObject
    • save

      public <T extends PersistableBusinessObject> T save(T bo)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Saves any object that implements the BusinessObject interface.
      Specified by:
      save in interface BusinessObjectDao
    • save

      public <T extends PersistableBusinessObject> List<T> save(List<T> businessObjects)
      Deprecated.
      Description copied from interface: BusinessObjectDao
      Saves a List of BusinessObjects.
      Specified by:
      save in interface BusinessObjectDao
    • setBusinessObjectDaoOjb

      public void setBusinessObjectDaoOjb(BusinessObjectDao businessObjectDaoOjb)
      Deprecated.