Codice Java per l'implementazione del componente in entrata

Il codice Java personalizzato sostituisce quello predefinito nel componente in entrata. Vengono forniti tre blocchi di codice che abilitano la stampa alla console di gestione: una ciascuna per un oggetto creato, aggiornato ed eliminato.

Codice per stampare un oggetto creato

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");
	}
}

Codice per stampare un oggetto aggiornato

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");
	}
}

Codice per stampare un oggetto eliminato

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");
	}
}

Terms of use |


(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)