![]() |
![]() |
00001 #ifndef CondCore_DBCommon_TechnologyProxy_h 00002 #define CondCore_DBCommon_TechnologyProxy_h 00003 // 00004 // Package: DBCommon 00005 // Class : TechnologyProxy 00006 // 00010 // 00011 // Author: Zhen Xie 00012 // 00013 00014 #include "CondCore/DBCommon/interface/DbSession.h" 00015 #include <string> 00016 namespace cond{ 00017 class DbSession; 00018 class TechnologyProxy{ 00019 public: 00020 explicit TechnologyProxy( ){} 00021 virtual ~TechnologyProxy(){} 00022 virtual void initialize( const DbConnection& connection )=0; 00023 virtual std::string getRealConnectString( const std::string&userconnect ) const=0; 00024 virtual std::string getRealConnectString( const std::string&userconnect, const std::string& transactionId ) const=0; 00025 virtual bool isTransactional() const=0; 00026 private: 00027 TechnologyProxy( const TechnologyProxy& ); 00028 const TechnologyProxy& operator=(const TechnologyProxy&); 00029 }; 00030 }//ns cond 00031 #endif