Class BusinessObjectServiceMigrationUtils
java.lang.Object
org.kuali.rice.krms.impl.repository.BusinessObjectServiceMigrationUtils
Class to help with adapting BusinessObjectService calls to use the DataObjectService instead
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voiddeleteMatching(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> TfindSingleMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String, ?> queryAttrs) Adapts BusinessObjectService.findByPrimaryKey calls to use the DataObjectService.
-
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 instanceentityClass-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 instanceentityClass-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 instanceentityClass-queryAttrs- attribute:value pairs that will be ANDed together in the queryorderByField-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 instanceentityClass-queryAttrs- attribute:value pairs that will be ANDed together in the query
-