public class BusinessObjectServiceMigrationUtils extends Object
| Constructor and Description |
|---|
BusinessObjectServiceMigrationUtils() |
| Modifier and Type | Method and 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.
|
public BusinessObjectServiceMigrationUtils()
public static <T> T findSingleMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
T - the type of the entity classdos - the DataObjectService instanceentityClass - queryAttrs - attribute:value pairs that will be ANDed together in the querypublic static <T> List<T> findMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
T - the type of the entity classdos - the DataObjectService instanceentityClass - queryAttrs - attribute:value pairs that will be ANDed together in the querypublic static <T> List<T> findMatchingOrderBy(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs, String orderByField, boolean sortAscending)
T - the type of the entity classdos - the DataObjectService instanceentityClass - queryAttrs - attribute:value pairs that will be ANDed together in the queryorderByField - sortAscending - public static <T> void deleteMatching(org.kuali.rice.krad.data.DataObjectService dos, Class<T> entityClass, Map<String,?> queryAttrs)
T - the type of the entity classdos - the DataObjectService instanceentityClass - queryAttrs - attribute:value pairs that will be ANDed together in the queryCopyright © 2005–2017 The Kuali Foundation. All rights reserved.