1 package org.kuali.ole.service.impl;
2
3 import org.kuali.ole.OLEConstants;
4 import org.kuali.ole.pojo.OleTxRecord;
5 import org.kuali.ole.service.OverlayOutputService;
6
7
8
9
10
11
12
13
14 public class OverlayTransactionOutputServiceImpl implements OverlayOutputService {
15
16 @Override
17 public void setOutPutValue(String field, String value, Object object) {
18 if(object!=null && object instanceof OleTxRecord){
19 OleTxRecord oleTxRecord = (OleTxRecord) object;
20 if(field.equalsIgnoreCase(OLEConstants.OVERLAY_ITEM_VENDOR_LINEITEM_IDENTIFIER)){
21 oleTxRecord.setVendorItemIdentifier(value);
22 }else if(field.equalsIgnoreCase(OLEConstants.ACCOUNT_NUMBER)){
23 oleTxRecord.setAccountNumber(value);
24 }else if(field.equalsIgnoreCase(OLEConstants.CHART_CODE)){
25 oleTxRecord.setItemChartCode(value);
26 }else if(field.equalsIgnoreCase(OLEConstants.OBJECT_CODE)){
27 oleTxRecord.setObjectCode(value);
28 }
29 }
30 }
31 @Override
32 public void persist(Object object) throws Exception {
33
34 }
35 }