read_write_base Class Reference

for individual db instances More...

#include <read_write_base.hpp>

Inherited by Affiliate_Obj, audit_base, AuditTable_Obj, Category_Obj, Color_Obj, Commission_Check_Obj, Composite_Query_Obj, Composite_Query_Obj, Customer_Obj, Customer_Payment_Parameter, Customer_Payment_Parameter_Obj, Customer_Payment_Service, Customer_Payment_Service_Obj, Deletion_Obj, Designer_Obj, Document_Obj, Document_Obj, FieldChange_Obj, filePicker, Font_Obj, global_content, global_content, global_content_Obj, group_services, group_services_Obj, group_services_Obj, group_sites, groups, groups_Obj, groups_Obj, imagePicker, imagePicker, imagePicker, imagePicker, imagePicker, link, link, links_Obj, Manufacturer_Obj, menu, menu, menu_item, Order_Status_Obj, Ordered_Item_Obj, Ordered_Item_Option_Obj, Ordered_Obj, Ordered_Obj, page, page, page_menu, page_menus_Obj, page_menus_Obj, page_menus_Obj, page_menus_Obj, paragraph, paragraph, paragraph, paragraphs_Obj, paragraphs_Obj, Payment_Service, Payment_Service_Obj, Payment_Type_Parameter_Obj, Product_Categories_Obj, Product_Line_Obj, Product_Obj, Promotion_Obj, Proofing_Obj, Proofing_Text_Area_Obj, Query_Obj, Query_Obj, Report_Conditioning_Obj, Report_Obj, Report_Obj, Report_Parameters_Obj, Report_Templates_Obj, Report_Type_Obj, role_services_Obj, role_services_Obj, roles, roles_Obj, roles_Obj, Scheme_Field_Obj, Scheme_Table_Obj, services, services_Obj, services_Obj, services_Obj, services_Obj, Session_Obj, Session_Obj, ShoppingCart, ShoppingCart, Site_History_Obj, siteObject, siteObject, Size_Obj, Size_Price_Obj, Style_Obj, SysImport_Keys, Template, Template, Unit_Obj, users, users_Obj, users_Obj, users_Obj, users_Obj, Work_Obj, and XXXX.

Collaboration diagram for read_write_base:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 read_write_base ()
 read_write_base (dbProvider, const char *)
virtual ~read_write_base ()
virtual bool ivalidate (void)
virtual bool uvalidate (changeMap &changes)
virtual bool dvalidate (void)
virtual bool isupplemental (void)
virtual bool usupplemental (changeMap &changes)
virtual bool dsupplemental (void)
virtual bool ssupplemental (void)
void data_name (string in)
const string & data_name (void)
const string & last_result (void)
long long key (void)
void key (long long in)
bool db_action (string mode, changeMap &changes)
virtual bool db_insert (void)
virtual bool db_update (changeMap &changes)
virtual bool db_delete (void)
bool get_data (void)
bool get_data (string whereClause, string orderClause="")
bool next (void)
bool addDXMap (dataXfer *xfer)
void clearMaps (void)
bool commit (void)

Protected Attributes

openDbFactory DbMaker
openDBdb
openRsFactory RsMaker
openRSrs
openCmdFactory CmdMaker
openCMDcmd
dataXfers xfers
string m_name
ocString m_result
long long m_key
bool actDerived

Friends

class ref_base


Detailed Description

for individual db instances

Definition at line 32 of file read_write_base.hpp.


Constructor & Destructor Documentation

read_write_base::read_write_base (  ) 

Definition at line 24 of file read_write_base.cpp.

read_write_base::read_write_base ( dbProvider  Provider,
const char *  Connectstring 
)

Definition at line 34 of file read_write_base.cpp.

read_write_base::~read_write_base (  )  [virtual]

Definition at line 42 of file read_write_base.cpp.

References clearMaps().


Member Function Documentation

bool read_write_base::ivalidate ( void   )  [virtual]

bool read_write_base::uvalidate ( changeMap changes  )  [virtual]

bool read_write_base::dvalidate ( void   )  [virtual]

Reimplemented in AuditTable_Obj, Deletion_Obj, and FieldChange_Obj.

Definition at line 364 of file read_write_base.cpp.

Referenced by db_delete().

bool read_write_base::isupplemental ( void   )  [virtual]

bool read_write_base::usupplemental ( changeMap changes  )  [virtual]

bool read_write_base::dsupplemental ( void   )  [virtual]

bool read_write_base::ssupplemental ( void   )  [virtual]

void read_write_base::data_name ( string  in  )  [inline]

Definition at line 64 of file read_write_base.hpp.

References m_name.

const string& read_write_base::data_name ( void   )  [inline]

Definition at line 65 of file read_write_base.hpp.

References m_name.

Referenced by Affiliate_Obj::Affiliate_Obj(), AuditTable_Obj::AuditTable_Obj(), Category_Obj::Category_Obj(), Color_Obj::Color_Obj(), Commission_Check_Obj::Commission_Check_Obj(), Composite_Query_Obj::Composite_Query_Obj(), Customer_Obj::Customer_Obj(), Customer_Payment_Parameter::Customer_Payment_Parameter(), Customer_Payment_Parameter_Obj::Customer_Payment_Parameter_Obj(), Customer_Payment_Service::Customer_Payment_Service(), Customer_Payment_Service_Obj::Customer_Payment_Service_Obj(), db_delete(), db_insert(), db_update(), Deletion_Obj::Deletion_Obj(), Designer_Obj::Designer_Obj(), Document_Obj::Document_Obj(), FieldChange_Obj::FieldChange_Obj(), Font_Obj::Font_Obj(), get_data(), audit_base::getOldValues(), global_content::global_content(), global_content_Obj::global_content_Obj(), group_services::group_services(), group_services_Obj::group_services_Obj(), group_sites::group_sites(), groups::groups(), groups_Obj::groups_Obj(), link::link(), links_Obj::links_Obj(), Manufacturer_Obj::Manufacturer_Obj(), menu::menu(), menu_item::menu_item(), Order_Status_Obj::Order_Status_Obj(), Ordered_Item_Obj::Ordered_Item_Obj(), Ordered_Item_Option_Obj::Ordered_Item_Option_Obj(), Ordered_Obj::Ordered_Obj(), page::page(), page_menu::page_menu(), page_menus_Obj::page_menus_Obj(), paragraph::paragraph(), paragraphs_Obj::paragraphs_Obj(), Payment_Service::Payment_Service(), Payment_Service_Obj::Payment_Service_Obj(), Payment_Type_Parameter_Obj::Payment_Type_Parameter_Obj(), audit_base::performAudit(), Product_Categories_Obj::Product_Categories_Obj(), Product_Line_Obj::Product_Line_Obj(), Product_Obj::Product_Obj(), Promotion_Obj::Promotion_Obj(), Proofing_Obj::Proofing_Obj(), Proofing_Text_Area_Obj::Proofing_Text_Area_Obj(), Query_Obj::Query_Obj(), Report_Conditioning_Obj::Report_Conditioning_Obj(), Report_Obj::Report_Obj(), Report_Parameters_Obj::Report_Parameters_Obj(), Report_Templates_Obj::Report_Templates_Obj(), Report_Type_Obj::Report_Type_Obj(), role_services_Obj::role_services_Obj(), roles::roles(), roles_Obj::roles_Obj(), Scheme_Field_Obj::Scheme_Field_Obj(), Scheme_Table_Obj::Scheme_Table_Obj(), services::services(), services_Obj::services_Obj(), Session_Obj::Session_Obj(), ShoppingCart::ShoppingCart(), Site_History_Obj::Site_History_Obj(), siteObject::siteObject(), Size_Obj::Size_Obj(), Size_Price_Obj::Size_Price_Obj(), Style_Obj::Style_Obj(), SysImport_Keys::SysImport_Keys(), Template::Template(), Unit_Obj::Unit_Obj(), users::users(), users_Obj::users_Obj(), Work_Obj::Work_Obj(), and XXXX::XXXX().

const string& read_write_base::last_result ( void   )  [inline]

long long read_write_base::key ( void   )  [inline]

Definition at line 67 of file read_write_base.hpp.

References m_key.

Referenced by menu_item_form::addPageParagraphMenuItems(), audit_base::changeAudits(), chkout_functor::chkout_functor(), virtualCheckout::confirmOrderPanel(), virtualCheckout::createOrderPanel(), page::createPageMenus(), Ordered_Obj::credit(), db_action(), db_delete(), db_insert(), db_update(), audit_base::deleteAudits(), detail_functor::detail_functor(), reform_base::doSubReport(), virtualCheckout::emailManufacturer(), ItemDetail::extra(), users_Form::form_display(), services_Form::form_display(), roles_Form::form_display(), groups_Form::form_display(), group_sites_Form::form_display(), XXXX_Form::form_display(), template_form::form_display(), site_form::form_display(), page_menu_form::form_display(), menu_form::form_display(), menu_item_form::form_display(), links_Form::form_display(), Unit_form::form_display(), Style_form::form_display(), Size_form::form_display(), Size_Price_form::form_display(), Proofing_form::form_display(), Proofing_Text_Area_form::form_display(), Promotion_form::form_display(), Product_form::form_display(), Product_Line_form::form_display(), Product_Categories_form::form_display(), Payment_Type_Parameter_form::form_display(), Payment_Service_form::form_display(), Ordered_form::form_display(), Ordered_Item_form::form_display(), Ordered_Item_Option_form::form_display(), Order_Status_form::form_display(), Manufacturer_form::form_display(), Font_form::form_display(), Designer_form::form_display(), Customer_form::form_display(), Customer_Payment_Service_form::form_display(), Customer_Payment_Parameter_form::form_display(), Commission_Check_form::form_display(), Color_form::form_display(), Category_form::form_display(), Affiliate_form::form_display(), page_form::form_display(), global_content_form::form_display(), services_form::form_display(), roles_form::form_display(), role_services_form::form_display(), paragraph_form::form_display(), users_form::form_display(), groups_form::form_display(), group_services_Form::form_display(), group_services_form::form_display(), Document_form::form_display(), paragraphs_form::form_display(), Work_form::form_display(), Scheme_Table_form::form_display(), Scheme_Field_form::form_display(), Report_form::form_display(), Report_Type_form::form_display(), Report_Templates_form::form_display(), Report_Parameters_form::form_display(), Report_Conditioning_form::form_display(), Query_form::form_display(), Composite_Query_form::form_display(), get_data(), Report_Obj::getCompositeQuery(), audit_base::getOldValues(), importLinks(), importMenus(), importPages(), importTemplates(), intraMain(), Affiliate_Obj::isupplemental(), Query_Result_List::list_display(), main(), menu_item::move(), Category_Obj::move(), next(), spawnHandler::operator()(), Ordered_Obj::pay(), virtualCheckout::paymentForm(), Payment_Form::paymentSetupForm(), audit_base::performAudit(), Ordered_Obj::postauth(), Ordered_Obj::preauth(), ReportEmitter::run(), Ordered_Item_Obj::saveOptions(), Session_Obj::Session_Obj(), Commission_Check_Obj::setCommission_Check_Orders(), virtualCheckout::setKey(), WorkItems::setQuery(), virtualStore::showCategories(), Ordered_form::showCustomer(), proofs::showDesign(), virtualStore::showDesigner(), proofs::showOrderedItem(), virtualStore::showProduct(), Session_Obj::Synch(), openLogin::testLoginStatus(), uiShoppingCart::uiShoppingCart(), and Ordered_Obj::uvalidate().

void read_write_base::key ( long long  in  )  [inline]

Definition at line 68 of file read_write_base.hpp.

References m_key.

bool read_write_base::db_action ( string  mode,
changeMap changes 
)

Definition at line 54 of file read_write_base.cpp.

References db_delete(), db_insert(), db_update(), dsupplemental(), get_data(), isupplemental(), key(), m_result, ssupplemental(), and usupplemental().

Referenced by uiShoppingCart::addNewCart(), uiShoppingCart::AddProduct(), uiShoppingCart::AlwaysAddProduct(), uiShoppingCart::CancelOrder(), uiShoppingCart::CheckOut(), users_Form::dbf_action(), services_Form::dbf_action(), roles_Form::dbf_action(), groups_Form::dbf_action(), group_sites_Form::dbf_action(), XXXX_Form::dbf_action(), template_form::dbf_action(), site_form::dbf_action(), page_menu_form::dbf_action(), menu_form::dbf_action(), menu_item_form::dbf_action(), links_Form::dbf_action(), Payment_Form_Complete::dbf_action(), Payment_Form::dbf_action(), Unit_form::dbf_action(), Style_form::dbf_action(), Size_form::dbf_action(), Size_Price_form::dbf_action(), Proofing_form::dbf_action(), Proofing_Text_Area_form::dbf_action(), Promotion_form::dbf_action(), Product_form::dbf_action(), Product_Line_form::dbf_action(), Product_Categories_form::dbf_action(), Payment_Type_Parameter_form::dbf_action(), Payment_Service_form::dbf_action(), Ordered_form::dbf_action(), Ordered_Item_form::dbf_action(), Ordered_Item_Option_form::dbf_action(), Order_Status_form::dbf_action(), Manufacturer_form::dbf_action(), Font_form::dbf_action(), Designer_form::dbf_action(), Customer_form::dbf_action(), Customer_Payment_Service_form::dbf_action(), Customer_Payment_Parameter_form::dbf_action(), Commission_Check_form::dbf_action(), Color_form::dbf_action(), Category_form::dbf_action(), Affiliate_form::dbf_action(), page_form::dbf_action(), global_content_form::dbf_action(), services_form::dbf_action(), roles_form::dbf_action(), role_services_form::dbf_action(), paragraph_form::dbf_action(), users_form::dbf_action(), groups_form::dbf_action(), group_services_Form::dbf_action(), group_services_form::dbf_action(), Document_form::dbf_action(), paragraphs_form::dbf_action(), Work_form::dbf_action(), Scheme_Table_form::dbf_action(), Scheme_Field_form::dbf_action(), Report_form::dbf_action(), Report_Type_form::dbf_action(), Report_Templates_form::dbf_action(), Report_Parameters_form::dbf_action(), Report_Conditioning_form::dbf_action(), Query_form::dbf_action(), Composite_Query_form::dbf_action(), menu_item::move(), Category_Obj::move(), uiShoppingCart::RemoveProduct(), and uiShoppingCart::UpdateProduct().

bool read_write_base::db_insert ( void   )  [virtual]

bool read_write_base::db_update ( changeMap changes  )  [virtual]

bool read_write_base::db_delete ( void   )  [virtual]

bool read_write_base::get_data ( void   ) 

bool read_write_base::get_data ( string  whereClause,
string  orderClause = "" 
)

bool read_write_base::next ( void   ) 

bool read_write_base::addDXMap ( dataXfer xfer  ) 

Definition at line 355 of file read_write_base.cpp.

References xfers.

Referenced by Affiliate_Obj::Affiliate_Obj(), AuditTable_Obj::AuditTable_Obj(), Category_Obj::Category_Obj(), Color_Obj::Color_Obj(), Commission_Check_Obj::Commission_Check_Obj(), Composite_Query_Obj::Composite_Query_Obj(), Customer_Obj::Customer_Obj(), Customer_Payment_Parameter::Customer_Payment_Parameter(), Customer_Payment_Parameter_Obj::Customer_Payment_Parameter_Obj(), Customer_Payment_Service::Customer_Payment_Service(), Customer_Payment_Service_Obj::Customer_Payment_Service_Obj(), Deletion_Obj::Deletion_Obj(), Designer_Obj::Designer_Obj(), Document_Obj::Document_Obj(), FieldChange_Obj::FieldChange_Obj(), Font_Obj::Font_Obj(), global_content::global_content(), global_content_Obj::global_content_Obj(), group_services::group_services(), group_services_Obj::group_services_Obj(), group_sites::group_sites(), groups::groups(), groups_Obj::groups_Obj(), link::link(), links_Obj::links_Obj(), Manufacturer_Obj::Manufacturer_Obj(), menu::menu(), menu_item::menu_item(), Order_Status_Obj::Order_Status_Obj(), Ordered_Item_Obj::Ordered_Item_Obj(), Ordered_Item_Option_Obj::Ordered_Item_Option_Obj(), Ordered_Obj::Ordered_Obj(), page::page(), page_menu::page_menu(), page_menus_Obj::page_menus_Obj(), paragraph::paragraph(), paragraphs_Obj::paragraphs_Obj(), Payment_Service::Payment_Service(), Payment_Service_Obj::Payment_Service_Obj(), Payment_Type_Parameter_Obj::Payment_Type_Parameter_Obj(), Product_Categories_Obj::Product_Categories_Obj(), Product_Line_Obj::Product_Line_Obj(), Product_Obj::Product_Obj(), Promotion_Obj::Promotion_Obj(), Proofing_Obj::Proofing_Obj(), Proofing_Text_Area_Obj::Proofing_Text_Area_Obj(), Query_Obj::Query_Obj(), Report_Conditioning_Obj::Report_Conditioning_Obj(), Report_Obj::Report_Obj(), Report_Parameters_Obj::Report_Parameters_Obj(), Report_Templates_Obj::Report_Templates_Obj(), Report_Type_Obj::Report_Type_Obj(), role_services_Obj::role_services_Obj(), roles::roles(), roles_Obj::roles_Obj(), Scheme_Field_Obj::Scheme_Field_Obj(), Scheme_Table_Obj::Scheme_Table_Obj(), services::services(), services_Obj::services_Obj(), Session_Obj::Session_Obj(), ShoppingCart::ShoppingCart(), Site_History_Obj::Site_History_Obj(), siteObject::siteObject(), Size_Obj::Size_Obj(), Size_Price_Obj::Size_Price_Obj(), Style_Obj::Style_Obj(), SysImport_Keys::SysImport_Keys(), Template::Template(), Unit_Obj::Unit_Obj(), users::users(), users_Obj::users_Obj(), Work_Obj::Work_Obj(), and XXXX::XXXX().

void read_write_base::clearMaps ( void   ) 

Definition at line 46 of file read_write_base.cpp.

References xfers.

Referenced by ~read_write_base().

bool read_write_base::commit ( void   ) 

Definition at line 346 of file read_write_base.cpp.

References cmd, and openCMD::commit().


Friends And Related Function Documentation

friend class ref_base [friend]

Definition at line 92 of file read_write_base.hpp.


Member Data Documentation

Definition at line 35 of file read_write_base.hpp.

Definition at line 36 of file read_write_base.hpp.

Referenced by Composite_Query_form::form_display().

Definition at line 37 of file read_write_base.hpp.

Definition at line 39 of file read_write_base.hpp.

Definition at line 41 of file read_write_base.hpp.

Referenced by addDXMap(), clearMaps(), db_delete(), db_insert(), db_update(), get_data(), and next().

string read_write_base::m_name [protected]

Reimplemented in global_content, page, menu_item, and page_menu.

Definition at line 42 of file read_write_base.hpp.

Referenced by data_name().

Definition at line 43 of file read_write_base.hpp.

Referenced by Payment_Form_Complete::addUserElement(), Payment_Form_Complete::createUserParameters(), Ordered_Obj::credit(), db_action(), db_delete(), db_insert(), db_update(), Payment_Form_Complete::dbf_action(), Affiliate_form::dbf_action(), Affiliate_Obj::enoughData(), users_Form::form_display(), services_Form::form_display(), roles_Form::form_display(), groups_Form::form_display(), group_sites_Form::form_display(), XXXX_Form::form_display(), template_form::form_display(), site_form::form_display(), page_menu_form::form_display(), menu_form::form_display(), menu_item_form::form_display(), links_Form::form_display(), Unit_form::form_display(), Style_form::form_display(), Size_form::form_display(), Size_Price_form::form_display(), Proofing_form::form_display(), Proofing_Text_Area_form::form_display(), Promotion_form::form_display(), Product_form::form_display(), Product_Line_form::form_display(), Product_Categories_form::form_display(), Payment_Type_Parameter_form::form_display(), Payment_Service_form::form_display(), Ordered_form::form_display(), Ordered_Item_form::form_display(), Ordered_Item_Option_form::form_display(), Order_Status_form::form_display(), Manufacturer_form::form_display(), Font_form::form_display(), Designer_form::form_display(), Customer_form::form_display(), Customer_Payment_Service_form::form_display(), Customer_Payment_Parameter_form::form_display(), Commission_Check_form::form_display(), Color_form::form_display(), Category_form::form_display(), Affiliate_form::form_display(), page_form::form_display(), global_content_form::form_display(), services_form::form_display(), roles_form::form_display(), role_services_form::form_display(), paragraph_form::form_display(), users_form::form_display(), groups_form::form_display(), group_services_Form::form_display(), group_services_form::form_display(), Document_form::form_display(), paragraphs_form::form_display(), Work_form::form_display(), Scheme_Table_form::form_display(), Scheme_Field_form::form_display(), Report_form::form_display(), Report_Type_form::form_display(), Report_Templates_form::form_display(), Report_Parameters_form::form_display(), Report_Conditioning_form::form_display(), Query_form::form_display(), Composite_Query_form::form_display(), get_data(), Customer_Payment_Service::getParameters(), menu_item::ivalidate(), Customer_Payment_Service::ivalidate(), paragraphs_Obj::ivalidate(), paragraph::ivalidate(), last_result(), Ordered_Obj::pay(), Ordered_Obj::postauth(), Ordered_Obj::preauth(), Affiliate_Obj::uniquePromotion(), Customer_Payment_Service::uvalidate(), and Ordered_Obj::uvalidate().

long long read_write_base::m_key [protected]

Definition at line 44 of file read_write_base.hpp.

Referenced by key().

bool read_write_base::actDerived [protected]

Definition at line 45 of file read_write_base.hpp.

Referenced by db_insert(), db_update(), and SysImport_Keys::SysImport_Keys().


The documentation for this class was generated from the following files:

Generated on Sat Aug 15 12:48:45 2009 for w3systemsDevelopment by  doxygen 1.5.5