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