33 if (m_writeStmt ==
NULL) {
34 throw(std::runtime_error(
"Write statement not prepared"));
40 if (m_writeStmt !=
NULL) {
41 m_conn->terminateStatement(m_writeStmt);
43 std::cout <<
"Warning from IDataItem: statement was aleady closed"<< std::endl;
50 m_readStmt=
m_conn->createStatement();
55 m_readStmt->setPrefetchRowCount(ncount);
60 if (m_readStmt !=
NULL) {
61 m_conn->terminateStatement(m_readStmt);
63 std::cout <<
"Warning from IDataItem: statement was aleady closed"<< std::endl;
void setPrefetchRowCount(int ncount) noexcept(false)
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkPrepare() noexcept(false)
void createReadStatement() noexcept(false)
void terminateWriteStatement() noexcept(false)
oracle::occi::Statement * m_readStmt
void terminateReadStatement() noexcept(false)
virtual std::string getTable()=0
virtual void prepareWrite() noexcept(false)=0