WebSphere Adapter for Oracle E-Business Suite
Custom Java™ code replaces default code in the inbound component. Three code blocks are provided that enable printing to the administrative console: one each for a created object, an updated object, and a deleted object.
public void createArIbm_R_Cust_Accounts( DataObject createArIbm_R_Cust_AccountsInput) { System.out.println("End point for createArIbm_R_Cust_Accounts "); int i = createArIbm_R_Cust_AccountsInput.getType().getProperties().size()-1; DataObject dataObj = createArIbm_R_Cust_AccountsInput.getDataObject(i); System.out.println("Data object to be traced: " + dataObj.getType().getName()); try { String xmlString = AdapterBOUtil.serializeDataObject(dataObj); System.out.println(xmlString); } catch(Exception e) { System.out.println("Error in tracing the data object"); } }
public void updateArIbm_R_Cust_Accounts( DataObject updateArIbm_R_Cust_AccountsInput) { System.out.println("End point for updateArIbm_R_Cust_Accounts "); int i = updateArIbm_R_Cust_AccountsInput.getType().getProperties().size()-1; DataObject dataObj = updateArIbm_R_Cust_AccountsInput.getDataObject(i); System.out.println("Data object to be traced: " + dataObj.getType().getName()); try { String xmlString = AdapterBOUtil.serializeDataObject(dataObj); System.out.println(xmlString); } catch(Exception e) { System.out.println("Error in tracing the data object"); } }
public void deleteArIbm_R_Cust_Accounts( DataObject deleteArIbm_R_Cust_AccountsInput) { System.out.println("End point for deleteArIbm_R_Cust_Accounts "); int i = deleteArIbm_R_Cust_AccountsInput.getType().getProperties().size()-1; DataObject dataObj = deleteArIbm_R_Cust_AccountsInput.getDataObject(i); System.out.println("Data object to be traced: " + dataObj.getType().getName()); try { String xmlString = AdapterBOUtil.serializeDataObject(dataObj); System.out.println(xmlString); } catch(Exception e) { System.out.println("Error in tracing the data object"); } }
Last updated: Mon 30 Oct 2006 03:46:26
(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)