View Javadoc

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    * Created by IntelliJ IDEA.
9    * User: premkb
10   * Date: 2/22/13
11   * Time: 6:28 PM
12   * To change this template use File | Settings | File Templates.
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          //To change body of implemented methods use File | Settings | File Templates.
34      }
35  }