Interface BusinessObjectService

All Known Implementing Classes:
BusinessObjectServiceImpl

@Deprecated public interface BusinessObjectService
Deprecated.
use new KRAD Data framework DataObjectService
Defines methods that a BusinessObjectService must provide
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Details

    • save

      <T extends PersistableBusinessObject> T save(T bo)
      Deprecated.
      Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.
      Parameters:
      bo - A BusinessObject instance or descendent that you wish to be stored.
    • save

      <T extends PersistableBusinessObject> List<T> save(List<T> businessObjects)
      Deprecated.
      Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.
      Parameters:
      businessObjects - A List<PersistableBusinessObject> of objects to persist.
    • linkAndSave

      <T extends PersistableBusinessObject> T linkAndSave(T bo)
      Deprecated.
      Links up any contained objects, and then Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.
      Parameters:
      bo - A BusinessObject instance or descendent that you wish to be stored.
    • linkAndSave

      <T extends PersistableBusinessObject> List<T> linkAndSave(List<T> businessObjects)
      Deprecated.
      Links up any contained objects, and Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.
      Parameters:
      businessObjects - A List<BusinessObject> of objects to persist.
    • findBySinglePrimaryKey

      <T extends PersistableBusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
      Deprecated.
      Retrieves an object instance identified by its primary key. For composite keys, use findByPrimaryKey(Class, Map)
    • findByPrimaryKey

      <T extends PersistableBusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
      Deprecated.
      Retrieves an object instance identified by its 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.
    • retrieve

      Object retrieve(Object object)
      Deprecated.
      Retrieves an object instance identified by the class of the given object and the object's primary key values.
    • findAll

      <T extends PersistableBusinessObject> List<T> findAll(Class<T> clazz)
      Deprecated.
      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.
    • findAll

      <T extends PersistableBusinessObject> QueryPagingResults<T> findAll(Class<T> clazz, QueryPagingRequest pagingRequest)
      Deprecated.
    • findAllOrderBy

      <T extends PersistableBusinessObject> List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
      Deprecated.
      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.
    • findAllOrderBy

      <T extends PersistableBusinessObject> QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest)
      Deprecated.
    • findMatching

      <T extends PersistableBusinessObject> List<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      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 and its expected value.
    • findMatching

      <T extends PersistableBusinessObject> QueryPagingResults<T> findMatching(Class<T> clazz, Map<String,?> fieldValues, QueryPagingRequest pagingRequest)
      Deprecated.
    • countMatching

      <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      This method retrieves a count of the business objects populated with data which match the criteria in the given Map.
      Returns:
      number of businessObjects of the given class whose fields match the values in the given expected-value Map
    • countMatching

      <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String,?> positiveFieldValues, Map<String,?> negativeFieldValues)
      Deprecated.
      This method retrieves a count of the business objects populated with data which match both the positive criteria and the negative criteria in the given Map.
      Returns:
      number of businessObjects of the given class whose fields match the values in the given expected-value Maps
    • findMatchingOrderBy

      <T extends PersistableBusinessObject> List<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
      Deprecated.
      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 and its expected value. Performs an order by on sort field.
    • findMatchingOrderBy

      <T extends PersistableBusinessObject> QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest)
      Deprecated.
    • delete

      void delete(Object bo)
      Deprecated.
      Deletes a business object from the database.
    • delete

      <T extends PersistableBusinessObject> void delete(List<T> boList)
      Deprecated.
      Deletes each business object in the given List.
    • deleteMatching

      <T extends PersistableBusinessObject> void deleteMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Deletes the object(s) matching the given field values
    • getReferenceIfExists

      BusinessObject getReferenceIfExists(BusinessObject bo, String referenceName)
      Deprecated.
      This method attempts to retrieve the reference from a BO if it exists.
      Parameters:
      bo - - populated BusinessObject instance that includes the referenceName property
      referenceName - - name of the member/property to load
      Returns:
      A populated object from the DB, if it exists
    • linkUserFields

      void linkUserFields(Object bo)
      Deprecated.
      Updates all KualiUser or Person objects contained within this BO, based on the UserID as the authoritative key. The appropriate foreign-key field in the BO itself is also updated. This allows UserIDs to be entered on forms, and the back-end will link up correctly based on this non-key field.
      Parameters:
      bo - The populated BO (or descendent) instance to be linked invalid input: '&' updated
    • manageReadOnly

      <T extends PersistableBusinessObject> T manageReadOnly(T bo)
      Deprecated.
      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
      Parameters:
      bo - the business object to managed
      Returns:
      the managed copied of the business object