00001 /* 00002 group_services.hpp 00003 00004 Object Definition and Implementation 00005 for group_services. 00006 00007 Copyright (C) 2005 by D.K. McCombs. 00008 W3 Systems Design 00009 00010 */ 00011 #ifndef group_services_HPP 00012 #define group_services_HPP 00013 00014 #include "read_write_base.hpp" 00015 00016 class group_services_Obj: public read_write_base 00017 { 00018 public: 00019 identifier id; 00020 llong service_id; 00021 llong group_id; 00022 short sequence; 00023 string xml_param1; 00024 string xml_param2; 00025 00026 group_services_Obj():read_write_base() 00027 ,id(0LL) 00028 ,service_id(0LL) 00029 ,group_id(0LL) 00030 ,sequence(0) 00031 ,xml_param1("") 00032 ,xml_param2("") 00033 { 00034 // set name 00035 data_name("group_services"); 00036 // add fields 00037 addDXMap( new llongXfer("id", &id )); 00038 addDXMap( new llongXfer("service_id", &service_id )); 00039 addDXMap( new llongXfer("group_id", &group_id )); 00040 addDXMap( new shortXfer("sequence", &sequence )); 00041 addDXMap( new stringXfer("xml_param1", &xml_param1 )); 00042 addDXMap( new stringXfer("xml_param2", &xml_param2 )); 00043 } 00044 00045 /* 00046 Event hooks for business logic 00047 ========================= 00048 // Done before any action - a false return prevents action 00049 virtual bool ivalidate( void ) { return true; } 00050 virtual bool uvalidate( changeMap & changes ) { return true; } 00051 virtual bool dvalidate( void ) { return true; } 00052 00053 // Done after any action - a false return sets a warning 00054 virtual bool isupplemental( void ){ return true; } 00055 virtual bool usupplemental( changeMap & changes ){ return true; } 00056 virtual bool dsupplemental( void ){ return true; } 00057 virtual bool ssupplemental( void ){ return true; } 00058 */ 00059 }; 00060 #endif 00061 00062 00063 00064 /* 00065 group_services.hpp 00066 base classes: 00067 read_write_base 00068 Group Services Business Object 00069 00070 00071 00072 00073 class group_services: public read_write_base 00074 { 00075 public: 00076 identifier id; 00077 long long service_id; 00078 long long group_id; 00079 int sequence; 00080 string xml_param1; 00081 string xml_param2; 00082 00083 // Constructor 00084 group_services() 00085 :read_write_base() 00086 ,id(0LL),service_id(0LL),group_id(0LL),sequence(0L) 00087 { 00088 data_name("group_services"); 00089 // ALWAYS make the key be first, so we can skip it in insert logic 00090 addDXMap( new llongXfer("id", &id) ); 00091 addDXMap( new llongXfer("service_id", &service_id) ); 00092 addDXMap( new llongXfer("group_id", &group_id) ); 00093 addDXMap( new shortXfer("sequence", &sequence) ); 00094 addDXMap( new stringXfer("xml_param1", &xml_param1) ); 00095 addDXMap( new stringXfer("xml_param2", &xml_param2) ); 00096 } 00097 virtual ~group_services(){;} 00098 }; 00099 00100 */ 00101 00102
1.5.5