func init // adds using namespace sys.add_use('System.Data.Odbc') // initialize instance params = this.props("Constructor").value if(params == 'Constructor') params = '' elseif(params == 'Constructor2') params = '' + d("selectCommand") elseif(params == 'Constructor3') params = '' + d("selectCommandText") + ', ' + d("selectConnection") elseif(params == 'Constructor4') params = '' + d("selectCommandText") + ', ' + d("selectConnectionString") end sys.add_object(this.codename, 'OdbcDataAdapter', params) // initialize properties sys.set_typed_field(20, 'DeleteCommand') sys.set_typed_field(20, 'InsertCommand') sys.set_typed_field(20, 'SelectCommand') sys.set_typed_field(20, 'UpdateCommand') // makes implementation methods for properties sys._prop_init('DeleteCommand', 1, 1, 0) sys._prop_init('InsertCommand', 1, 1, 0) sys._prop_init('SelectCommand', 1, 1, 0) sys._prop_init('UpdateCommand', 1, 1, 0) // makes implementation of methods as properties sys._mtd_as_prop_init('OdbcDataAdapter') // initialize events sys.add_event_type('onRowUpdated', 'RowUpdated', 'OdbcRowUpdatedEvent', 'args') sys.add_event_type('onRowUpdating', 'RowUpdating', 'OdbcRowUpdatingEvent', 'args') // initialize common events and properties include("DbDataAdapter-init") include("DataAdapter-init") include("Component-init") include("MarshalByRefObject-init") include("Object-init") end func doConstructor() blk.println(this.codename, ' = new OdbcDataAdapter();') end func doConstructor2(selectCommand) blk.println(this.codename, ' = new OdbcDataAdapter(', d("selectCommand"), ');') end func doConstructor3(selectCommandText, selectConnection) blk.println(this.codename, ' = new OdbcDataAdapter(', d("selectCommandText"), ', ', d("selectConnection"), ');') end func doConstructor4(selectCommandText, selectConnectionString) blk.println(this.codename, ' = new OdbcDataAdapter(', d("selectCommandText"), ', ', d("selectConnectionString"), ');') end include("DbDataAdapter") include("DataAdapter")