1 #ifndef ECALDBCONNECTION_HH
2 #define ECALDBCONNECTION_HH
32 throw(std::runtime_error);
43 throw(std::runtime_error);
57 std::cout <<
"Creating statement" << std::endl;
58 return conn->createStatement();
63 std::cout <<
"Creating statement" << std::endl;
64 conn->terminateStatement(stmt);
78 return oracle::occi::Clob(
conn);
81 oracle::occi::Environment*
getEnv()
const {
return env; };
90 oracle::occi::Environment*
env;
91 oracle::occi::Connection*
conn;
92 oracle::occi::Statement*
stmt;
oracle::occi::Environment * env
oracle::occi::Environment * getEnv() const
oracle::occi::Connection * getConn() const
oracle::occi::Connection * conn
void terminateStatement(oracle::occi::Statement *stmt)
virtual ~EcalDBConnection()
oracle::occi::Statement * stmt
EcalDBConnection(std::string host, std::string sid, std::string user, std::string pass, int port=1521)
oracle::occi::Statement * createStatement()
oracle::occi::Clob getClobLocator()