tntdb::oracle::Statement Class Reference

#include <tntdb/oracle/statement.h>

Inheritance diagram for tntdb::oracle::Statement:
tntdb::IStatement cxxtools::SimpleRefCounted

Classes

class  Bind

Public Member Functions

void checkError (sword ret, const char *function=0) const
 convenience method
 Statement (Connection *conn, const std::string &query)
 ~Statement ()
void clear ()
void setNull (const std::string &col)
void setBool (const std::string &col, bool data)
void setShort (const std::string &col, short data)
void setInt (const std::string &col, int data)
void setLong (const std::string &col, long data)
void setUnsignedShort (const std::string &col, unsigned short data)
void setUnsigned (const std::string &col, unsigned data)
void setUnsignedLong (const std::string &col, unsigned long data)
void setInt32 (const std::string &col, int32_t data)
void setUnsigned32 (const std::string &col, uint32_t data)
void setInt64 (const std::string &col, int64_t data)
void setUnsigned64 (const std::string &col, uint64_t data)
void setDecimal (const std::string &col, const Decimal &data)
void setFloat (const std::string &col, float data)
void setDouble (const std::string &col, double data)
void setChar (const std::string &col, char data)
void setString (const std::string &col, const std::string &data)
void setBlob (const std::string &col, const tntdb::Blob &data)
void setDate (const std::string &col, const Date &data)
void setTime (const std::string &col, const Time &data)
void setDatetime (const std::string &col, const tntdb::Datetime &data)
size_type execute ()
tntdb::Result select ()
tntdb::Row selectRow ()
tntdb::Value selectValue ()
ICursorcreateCursor (unsigned fetchsize)
ConnectiongetConnection () const
OCIStmt * getHandle ()
OCIError * getErrorHandle () const
- Public Member Functions inherited from tntdb::IStatement
virtual void setUString (const std::string &col, const cxxtools::String &data)
- Public Member Functions inherited from cxxtools::SimpleRefCounted
 SimpleRefCounted ()
 SimpleRefCounted (unsigned refs_)
virtual ~SimpleRefCounted ()
virtual unsigned addRef ()
virtual unsigned release ()
unsigned refs () const

Friends

class Cursor
 Alternative name for the statement iterator.

Additional Inherited Members

- Public Types inherited from tntdb::IStatement
typedef unsigned size_type

Constructor & Destructor Documentation

tntdb::oracle::Statement::Statement ( Connection conn,
const std::string &  query 
)
tntdb::oracle::Statement::~Statement ( )

Member Function Documentation

void tntdb::oracle::Statement::checkError ( sword  ret,
const char *  function = 0 
) const
inline

convenience method

void tntdb::oracle::Statement::clear ( )
virtual

Implements tntdb::IStatement.

ICursor* tntdb::oracle::Statement::createCursor ( unsigned  fetchsize)
virtual

Implements tntdb::IStatement.

size_type tntdb::oracle::Statement::execute ( )
virtual

Implements tntdb::IStatement.

Connection* tntdb::oracle::Statement::getConnection ( ) const
inline
OCIError* tntdb::oracle::Statement::getErrorHandle ( ) const
inline
OCIStmt* tntdb::oracle::Statement::getHandle ( )
tntdb::Result tntdb::oracle::Statement::select ( )
virtual

Implements tntdb::IStatement.

tntdb::Row tntdb::oracle::Statement::selectRow ( )
virtual

Implements tntdb::IStatement.

tntdb::Value tntdb::oracle::Statement::selectValue ( )
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setBlob ( const std::string &  col,
const tntdb::Blob data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setBool ( const std::string &  col,
bool  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setChar ( const std::string &  col,
char  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setDate ( const std::string &  col,
const Date data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setDatetime ( const std::string &  col,
const tntdb::Datetime data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setDecimal ( const std::string &  col,
const Decimal data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setDouble ( const std::string &  col,
double  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setFloat ( const std::string &  col,
float  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setInt ( const std::string &  col,
int  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setInt32 ( const std::string &  col,
int32_t  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setInt64 ( const std::string &  col,
int64_t  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setLong ( const std::string &  col,
long  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setNull ( const std::string &  col)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setShort ( const std::string &  col,
short  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setString ( const std::string &  col,
const std::string &  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setTime ( const std::string &  col,
const Time data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setUnsigned ( const std::string &  col,
unsigned  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setUnsigned32 ( const std::string &  col,
uint32_t  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setUnsigned64 ( const std::string &  col,
uint64_t  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setUnsignedLong ( const std::string &  col,
unsigned long  data 
)
virtual

Implements tntdb::IStatement.

void tntdb::oracle::Statement::setUnsignedShort ( const std::string &  col,
unsigned short  data 
)
virtual

Implements tntdb::IStatement.

Friends And Related Function Documentation

friend class Cursor
friend

Alternative name for the statement iterator.

It may be easier to write and read.


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