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