Nemiver  0.3
Public Member Functions | Friends | List of all members
nemiver::common::Connection Class Reference

#include <nmv-connection.h>

Inheritance diagram for nemiver::common::Connection:
nemiver::common::Object

Public Member Functions

 Connection ()
 
 Connection (const Connection &a_con)
 
Connectionoperator= (const Connection &a_con)
 
bool is_initialized () const
 
virtual ~Connection ()
 
const char * get_last_error () const
 
bool start_transaction ()
 
bool commit_transaction ()
 
bool rollback_transaction ()
 
bool execute_statement (const common::SQLStatement &a_statement)
 
bool should_have_data () const
 
bool read_next_row ()
 
unsigned long get_number_of_columns ()
 
bool get_column_type (unsigned long a_offset, enum common::ColumnType &)
 
bool get_column_name (unsigned long a_offset, common::Buffer &a_name)
 
bool get_column_content (unsigned long a_offset, common::Buffer &a_field_content)
 
bool get_column_content (gulong a_offset, gint64 &a_column_content)
 
bool get_column_content (gulong a_offset, double &a_column_content)
 
bool get_column_content (gulong a_offset, common::UString &a_column_content)
 
void close ()
 
- Public Member Functions inherited from nemiver::common::Object
 Object ()
 
 Object (Object const &)
 
Objectoperator= (Object const &)
 
virtual ~Object ()
 
void ref ()
 
void unref ()
 
void enable_refcount (bool a_enabled=true)
 
bool is_refcount_enabled () const
 
long get_refcount () const
 
void attach_object (const UString &a_key, const Object *a_object)
 
bool get_attached_object (const UString &a_key, const Object *&a_object)
 

Friends

struct ConnectionPriv
 
class ConnectionManager
 

Additional Inherited Members

- Protected Attributes inherited from nemiver::common::Object
SafePtr< ObjectPrivm_priv
 

Constructor & Destructor Documentation

◆ Connection() [1/2]

nemiver::common::Connection::Connection ( )

◆ Connection() [2/2]

nemiver::common::Connection::Connection ( const Connection a_con)

◆ ~Connection()

virtual nemiver::common::Connection::~Connection ( )
virtual

Member Function Documentation

◆ close()

void nemiver::common::Connection::close ( )

◆ commit_transaction()

bool nemiver::common::Connection::commit_transaction ( )

◆ execute_statement()

bool nemiver::common::Connection::execute_statement ( const common::SQLStatement a_statement)

◆ get_column_content() [1/4]

bool nemiver::common::Connection::get_column_content ( gulong  a_offset,
common::UString a_column_content 
)

◆ get_column_content() [2/4]

bool nemiver::common::Connection::get_column_content ( gulong  a_offset,
double &  a_column_content 
)

◆ get_column_content() [3/4]

bool nemiver::common::Connection::get_column_content ( gulong  a_offset,
gint64 &  a_column_content 
)

◆ get_column_content() [4/4]

bool nemiver::common::Connection::get_column_content ( unsigned long  a_offset,
common::Buffer a_field_content 
)

◆ get_column_name()

bool nemiver::common::Connection::get_column_name ( unsigned long  a_offset,
common::Buffer a_name 
)

◆ get_column_type()

bool nemiver::common::Connection::get_column_type ( unsigned long  a_offset,
enum common::ColumnType  
)

◆ get_last_error()

const char* nemiver::common::Connection::get_last_error ( ) const

◆ get_number_of_columns()

unsigned long nemiver::common::Connection::get_number_of_columns ( )

◆ is_initialized()

bool nemiver::common::Connection::is_initialized ( ) const

◆ operator=()

Connection& nemiver::common::Connection::operator= ( const Connection a_con)

◆ read_next_row()

bool nemiver::common::Connection::read_next_row ( )

◆ rollback_transaction()

bool nemiver::common::Connection::rollback_transaction ( )

◆ should_have_data()

bool nemiver::common::Connection::should_have_data ( ) const

◆ start_transaction()

bool nemiver::common::Connection::start_transaction ( )

Friends And Related Function Documentation

◆ ConnectionManager

friend class ConnectionManager
friend

◆ ConnectionPriv

friend struct ConnectionPriv
friend

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