CompleteDB Embedded: Direct C++ API  2.4.2
Statement Class Reference

Base class that defines an API to execute the statement. More...

#include <Statement.hpp>

+ Inheritance diagram for Statement:

Public Member Functions

virtual bool cast (const Object &from)
virtual bool isConnected () const
virtual bool isDisconnected () const
virtual Type::Enum getClassType () const
virtual Type::Enum getObjectType () const
virtual Error::Enum getLastErrorId () const
virtual const char * getLastError () const
virtual bool prepare ()
virtual bool execute ()
Statementoperator= (const Statement &src)
 Statement (const Statement &src)
virtual ~Statement ()
 Statement ()
- Public Member Functions inherited from Object
void * get () const
Objectoperator= (const Object &src)
 Object (const Object &src)
virtual ~Object ()
 Object ()
- Public Member Functions inherited from FastStatement
FastStatementoperator= (const FastStatement &src)
 FastStatement (const FastStatement &src)
virtual ~FastStatement ()
 FastStatement ()

Additional Inherited Members

- Protected Member Functions inherited from Object
 Object (void *src)
- Protected Attributes inherited from Object
void * m

Detailed Description

Base class that defines an API to execute the statement.

Definition at line 16 of file Statement.hpp.

Constructor & Destructor Documentation

Statement ( const Statement src)
inline

Definition at line 72 of file Statement.hpp.

virtual ~Statement ( )
inlinevirtual

Definition at line 76 of file Statement.hpp.

Statement ( )
inline

Definition at line 77 of file Statement.hpp.

Member Function Documentation

virtual bool cast ( const Object from)
inlinevirtual

Performs safe typecast.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 26 of file Statement.hpp.

virtual bool execute ( )
inlinevirtual

Executes the statement.

Reimplemented in CreateTable.

Definition at line 67 of file Statement.hpp.

virtual Type::Enum getClassType ( ) const
inlinevirtual

class type of the object.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 38 of file Statement.hpp.

virtual const char* getLastError ( ) const
inlinevirtual

Retrieves the calling object last-error text message.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 53 of file Statement.hpp.

virtual Error::Enum getLastErrorId ( ) const
inlinevirtual

Retrieves the calling object last-error id value.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 49 of file Statement.hpp.

virtual Type::Enum getObjectType ( ) const
inlinevirtual

object type of the underlying derived object.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 42 of file Statement.hpp.

virtual bool isConnected ( ) const
inlinevirtual

if underlying database is connected.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 30 of file Statement.hpp.

virtual bool isDisconnected ( ) const
inlinevirtual

if underlying database is not connected.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 34 of file Statement.hpp.

Statement& operator= ( const Statement src)
inline

Definition at line 71 of file Statement.hpp.

virtual bool prepare ( )
inlinevirtual

Validates and prepares statement for execution.

Reimplemented from FastStatement.

Reimplemented in CreateTable.

Definition at line 60 of file Statement.hpp.


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