00001 /* 00002 Manufacturer.hpp 00003 00004 Object Definition and Implementation 00005 for Manufacturer. 00006 00007 Copyright (C) 2004 by D.K. McCombs. 00008 W3 Systems Design 00009 00010 */ 00011 #ifndef Manufacturer_HPP 00012 #define Manufacturer_HPP 00013 00014 #include "read_write_base.hpp" 00015 class Manufacturer_Obj: public read_write_base 00016 { 00017 public: 00018 identifier Id; 00019 string Name; 00020 string Email_Contact; 00021 00022 Manufacturer_Obj():read_write_base() 00023 ,Id(0LL) 00024 ,Name("") 00025 ,Email_Contact("") 00026 { 00027 // set name 00028 data_name("Manufacturer"); 00029 // add fields 00030 addDXMap( new llongXfer("Id", &Id )); 00031 addDXMap( new stringXfer("Name", &Name )); 00032 addDXMap( new stringXfer("Email_Contact", &Email_Contact )); 00033 } 00034 00035 /* 00036 Event hooks for business logic 00037 ========================= 00038 // Done before any action - a false return prevents action 00039 virtual bool ivalidate( void ) { return true; } 00040 virtual bool uvalidate( changeMap & changes ) { return true; } 00041 virtual bool dvalidate( void ) { return true; } 00042 00043 // Done after any action - a false return sets a warning 00044 virtual bool isupplemental( void ){ return true; } 00045 virtual bool usupplemental( changeMap & changes ){ return true; } 00046 virtual bool dsupplemental( void ){ return true; } 00047 virtual bool ssupplemental( void ){ return true; } 00048 */ 00049 }; 00050 #endif 00051
1.5.5