Class BusinessObjectServiceMigrationUtils

java.lang.Object
org.kuali.rice.krms.impl.repository.BusinessObjectServiceMigrationUtils

public class BusinessObjectServiceMigrationUtils extends Object
Class to help with adapting BusinessObjectService calls to use the DataObjectService instead
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> void
    deleteMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
    Adapts BusinessObjectService.deleteMatching calls to use the DataObjectService.
    static <T> List<T>
    findMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
    Adapts BusinessObjectService.findMatching calls to use the DataObjectService.
    static <T> List<T>
    findMatchingOrderBy(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs, String orderByField, boolean sortAscending)
    Adapts BusinessObjectService.findMatchingOrderBy calls to use the DataObjectService.
    static <T> T
    findSingleMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
    Adapts BusinessObjectService.findByPrimaryKey calls to use the DataObjectService.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BusinessObjectServiceMigrationUtils

      public BusinessObjectServiceMigrationUtils()
  • Method Details

    • findSingleMatching

      public static <T> T findSingleMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
      Adapts BusinessObjectService.findByPrimaryKey calls to use the DataObjectService.
      Type Parameters:
      T - the type of the entity class
      Parameters:
      dos - the DataObjectService instance
      entityClass -
      queryAttrs - attribute:value pairs that will be ANDed together in the query
      Returns:
      the matching entity
    • findMatching

      public static <T> List<T> findMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
      Adapts BusinessObjectService.findMatching calls to use the DataObjectService.
      Type Parameters:
      T - the type of the entity class
      Parameters:
      dos - the DataObjectService instance
      entityClass -
      queryAttrs - attribute:value pairs that will be ANDed together in the query
      Returns:
      the matching entities
    • findMatchingOrderBy

      public static <T> List<T> findMatchingOrderBy(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs, String orderByField, boolean sortAscending)
      Adapts BusinessObjectService.findMatchingOrderBy calls to use the DataObjectService.
      Type Parameters:
      T - the type of the entity class
      Parameters:
      dos - the DataObjectService instance
      entityClass -
      queryAttrs - attribute:value pairs that will be ANDed together in the query
      orderByField -
      sortAscending -
      Returns:
      the matching entities
    • deleteMatching

      public static <T> void deleteMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
      Adapts BusinessObjectService.deleteMatching calls to use the DataObjectService.
      Type Parameters:
      T - the type of the entity class
      Parameters:
      dos - the DataObjectService instance
      entityClass -
      queryAttrs - attribute:value pairs that will be ANDed together in the query