sptk2 logo
SPTK Home Page
Public Types | Public Member Functions | List of all members
sptk::OracleStatement Class Reference

#include <OracleStatement.h>

Inheritance diagram for sptk::OracleStatement:
sptk::DatabaseStatement< OracleConnection, oracle::occi::Statement >

Public Types

using Connection = oracle::occi::Connection
 Oracle connection type.
 
using Statement = oracle::occi::Statement
 Oracle statement type.
 
using ResultSet = oracle::occi::ResultSet
 Oracle result set type.
 
using MetaData = oracle::occi::MetaData
 Oracle result set metdata type.
 

Public Member Functions

 OracleStatement (OracleConnection *connection, const std::string &sql)
 
 OracleStatement (const OracleStatement &)=delete
 
 OracleStatement (OracleStatement &&)=default
 
 ~OracleStatement () override
 
OracleStatementoperator= (const OracleStatement &)=delete
 
OracleStatementoperator= (OracleStatement &&)=default
 
void setParameterValues () override
 
void execute (bool inTransaction) override
 
void execBulk (bool inTransaction, bool lastIteration)
 
void close () override
 
void fetch () override
 
ResultSetresultSet ()
 
void getOutputParameters (FieldList &fields)
 
- Public Member Functions inherited from sptk::DatabaseStatement< OracleConnection, oracle::occi::Statement >
OracleConnection * connection () const
 
void statement (oracle::occi::Statement *stmt)
 
oracle::occi::Statement * statement () const
 
 DatabaseStatement (OracleConnection *connection)
 
virtual ~DatabaseStatement ()=default
 
oracle::occi::Statement * stmt () const
 
virtual void enumerateParams (QueryParameterList &queryParams)
 
CParamVectorenumeratedParams ()
 
size_t outputParameterCount () const
 
virtual void setParameterValues ()=0
 
virtual void execute (bool inTransaction)=0
 
virtual void close ()=0
 
virtual void fetch ()=0
 
bool eof () const
 
unsigned colCount () const
 

Additional Inherited Members

- Protected Member Functions inherited from sptk::DatabaseStatement< OracleConnection, oracle::occi::Statement >
State & state ()
 

Detailed Description

Oracle statement

Constructor & Destructor Documentation

◆ OracleStatement() [1/3]

sptk::OracleStatement::OracleStatement ( OracleConnection *  connection,
const std::string &  sql 
)

Constructor

Parameters
connectionConnection*, Oracle connection
sqlstd::string, SQL statement

◆ OracleStatement() [2/3]

sptk::OracleStatement::OracleStatement ( const OracleStatement )
delete

Deleted copy constructor

◆ OracleStatement() [3/3]

sptk::OracleStatement::OracleStatement ( OracleStatement &&  )
default

Move constructor

◆ ~OracleStatement()

sptk::OracleStatement::~OracleStatement ( )
override

Destructor

Member Function Documentation

◆ close()

void sptk::OracleStatement::close ( )
overridevirtual

Closes statement and releases allocated resources

Implements sptk::DatabaseStatement< OracleConnection, oracle::occi::Statement >.

◆ execBulk()

void sptk::OracleStatement::execBulk ( bool  inTransaction,
bool  lastIteration 
)

Executes statement in bulk mode

Parameters
inTransactionbool, True if statement is executed from transaction
lastIterationbool, True if bulk operation is completed (all iterations added)

◆ execute()

void sptk::OracleStatement::execute ( bool  inTransaction)
overridevirtual

Executes statement

Parameters
inTransactionbool, True if statement is executed from transaction

Implements sptk::DatabaseStatement< OracleConnection, oracle::occi::Statement >.

◆ fetch()

void sptk::OracleStatement::fetch ( )
inlineoverridevirtual

◆ operator=() [1/2]

OracleStatement & sptk::OracleStatement::operator= ( const OracleStatement )
delete

Deleted copy assignment

◆ operator=() [2/2]

OracleStatement & sptk::OracleStatement::operator= ( OracleStatement &&  )
default

Move assignment

◆ resultSet()

ResultSet * sptk::OracleStatement::resultSet ( )
inline

Returns result set (if returned by a statement)

◆ setParameterValues()

void sptk::OracleStatement::setParameterValues ( )
overridevirtual

Sets actual parameter values for the statement execution

Implements sptk::DatabaseStatement< OracleConnection, oracle::occi::Statement >.


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

Fri Oct 14 2022 09:58:43: SPTK 5.4.1