1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.coa.service.impl;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 import org.kuali.ole.coa.businessobject.ObjectConsolidation;
22 import org.kuali.ole.coa.service.ObjectConsService;
23 import org.kuali.ole.sys.OLEPropertyConstants;
24 import org.kuali.ole.sys.context.SpringContext;
25 import org.kuali.ole.sys.service.NonTransactional;
26 import org.kuali.rice.krad.service.BusinessObjectService;
27
28
29
30
31
32 @NonTransactional
33 public class ObjectConsServiceImpl implements ObjectConsService {
34
35
36
37
38 public ObjectConsolidation getByPrimaryId(String chartOfAccountsCode, String objectConsCode) {
39 Map<String, Object> keys = new HashMap<String, Object>();
40 keys.put(OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE, chartOfAccountsCode);
41 keys.put(OLEPropertyConstants.FIN_CONSOLIDATION_OBJECT_CODE, objectConsCode);
42 return (ObjectConsolidation)SpringContext.getBean(BusinessObjectService.class).findByPrimaryKey(ObjectConsolidation.class, keys);
43 }
44
45
46 }