Wolframe, 0.0.3

_Wolframe::db::TransactionExecStatemachine Class Referenceabstract

Interface to the database transaction execution statemechine. More...

#include <transactionExecStatemachine.hpp>

Public Member Functions

 TransactionExecStatemachine ()
 Constructor. More...
 
virtual ~TransactionExecStatemachine ()
 Destructor. More...
 
virtual const std::string & databaseID () const =0
 Get database identifier. More...
 
virtual bool begin ()=0
 Begin transaction. More...
 
virtual bool commit ()=0
 Commit current transaction. More...
 
virtual bool rollback ()=0
 Rollback current transaction. More...
 
virtual bool start (const std::string &statement)=0
 Start new command statement. More...
 
virtual bool bind (std::size_t idx, const types::VariantConst &value)=0
 Bind parameter value on current command statement. More...
 
virtual bool execute ()=0
 Execute instance of current statement. More...
 
virtual std::size_t nofColumns ()=0
 Get the number of columns of the last result. More...
 
virtual const char * columnName (std::size_t idx)=0
 Get a column title of the last result. More...
 
virtual types::VariantConst get (std::size_t idx)=0
 Get a column of the last result. More...
 
virtual bool next ()=0
 Skip to the next row of the last result. More...
 
virtual bool hasResult ()=0
 Evaluate if there is a result. More...
 
virtual const db::DatabaseErrorgetLastError ()=0
 Get the last database error as structure. More...
 
virtual bool isCaseSensitive ()=0
 Find out if the database is case sensitive or not. More...
 

Detailed Description

Interface to the database transaction execution statemechine.

Remarks
TODO: Provide state transition schema

Constructor & Destructor Documentation

_Wolframe::db::TransactionExecStatemachine::TransactionExecStatemachine ( )
inline

Constructor.

virtual _Wolframe::db::TransactionExecStatemachine::~TransactionExecStatemachine ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual bool _Wolframe::db::TransactionExecStatemachine::begin ( )
pure virtual

Begin transaction.

virtual bool _Wolframe::db::TransactionExecStatemachine::bind ( std::size_t  idx,
const types::VariantConst value 
)
pure virtual

Bind parameter value on current command statement.

virtual const char* _Wolframe::db::TransactionExecStatemachine::columnName ( std::size_t  idx)
pure virtual

Get a column title of the last result.

virtual bool _Wolframe::db::TransactionExecStatemachine::commit ( )
pure virtual

Commit current transaction.

virtual const std::string& _Wolframe::db::TransactionExecStatemachine::databaseID ( ) const
pure virtual

Get database identifier.

virtual bool _Wolframe::db::TransactionExecStatemachine::execute ( )
pure virtual

Execute instance of current statement.

virtual types::VariantConst _Wolframe::db::TransactionExecStatemachine::get ( std::size_t  idx)
pure virtual

Get a column of the last result.

virtual const db::DatabaseError* _Wolframe::db::TransactionExecStatemachine::getLastError ( )
pure virtual

Get the last database error as structure.

virtual bool _Wolframe::db::TransactionExecStatemachine::hasResult ( )
pure virtual

Evaluate if there is a result.

virtual bool _Wolframe::db::TransactionExecStatemachine::isCaseSensitive ( )
pure virtual

Find out if the database is case sensitive or not.

virtual bool _Wolframe::db::TransactionExecStatemachine::next ( )
pure virtual

Skip to the next row of the last result.

virtual std::size_t _Wolframe::db::TransactionExecStatemachine::nofColumns ( )
pure virtual

Get the number of columns of the last result.

virtual bool _Wolframe::db::TransactionExecStatemachine::rollback ( )
pure virtual

Rollback current transaction.

virtual bool _Wolframe::db::TransactionExecStatemachine::start ( const std::string &  statement)
pure virtual

Start new command statement.

Parameters
[in]statementstatement string

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