The completed Java source code for the jcdUpdate Collaboration appears as follows:
package prjOracle_JCD; public class jcdUpdate { public com.stc.codegen.logger.Logger logger; public com.stc.codegen.alerter.Alerter alerter; public com.stc.codegen.util.CollaborationContext collabContext; public com.stc.codegen.util.TypeConverter typeConverter; public void receive( com.stc.connector.appconn.file.FileTextMessage input, otdOracle.OtdOracleOTD otdOracle_1, com.stc.connector.appconn.file.FileApplication FileClient_1 ) throws Throwable { FileClient_1.setText( "Update the Rate and Last_update fields .. " ); FileClient_1.write(); otdOracle_1.getDB_EMPLOYEE().update( input.getText() ); while (otdOracle_1.getDB_EMPLOYEE().next()) { otdOracle_1.getDB_EMPLOYEE().setRATE( (new Double( "888" )).doubleValue() ); otdOracle_1.getDB_EMPLOYEE().setLAST_UPDATE( java.sql.Date.valueOf( "2008-08-08" ) ); otdOracle_1.getDB_EMPLOYEE().updateRow(); } FileClient_1.setText( "Done Update." ); FileClient_1.write(); } } |
The above code has been wrapped for display purposes.
For your next step, see Creating the Connectivity Maps .