The completed Java source code for the jcdTableSelect Collaboration appears as follows:
package prjOracle_JCD;
public class jcdTableSelect
{
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, dtd.
otdOutputDTD1007064608.DBemployee otdOutputDTD_DBemployee_1, otdOracle.OtdOracleOTD
otdOracle_1, com.stc.connector.appconn.file.FileApplication FileClient_1 )
throws Throwable
{
FileClient_1.setText( "Selecting record(s) from db_employee table via table
select .." );
FileClient_1.write();
otdOracle_1.getDB_EMPLOYEE().select( input.getText() );
while (otdOracle_1.getDB_EMPLOYEE().next()) {
otdOutputDTD_DBemployee_1.setEmpNo( otdOracle_1.getDB_EMPLOYEE().getEMP_NO().toString() );
otdOutputDTD_DBemployee_1.setLastname( otdOracle_1.getDB_EMPLOYEE().getLAST_NAME() );
otdOutputDTD_DBemployee_1.setFirstname( otdOracle_1.getDB_EMPLOYEE().getFIRST_NAME() );
otdOutputDTD_DBemployee_1.setRate( Double.toString( otdOracle_1.getDB_EMPLOYEE().getRATE() ) );
otdOutputDTD_DBemployee_1.setLastDate( otdOracle_1.getDB_EMPLOYEE().getLAST_UPDATE().toString() );
FileClient_1.setText( otdOutputDTD_DBemployee_1.marshalToString() );
FileClient_1.write();
}
FileClient_1.setText( "Done table select." );
FileClient_1.write();
}
}
|
The above code has been wrapped for display purposes.