Man page - opendbx_stmt(3)
Packages contains this manual
- odbx_escape(3)
- odbx_column_type(3)
- odbx_lo_open(3)
- odbx_error(3)
- odbx_field_length(3)
- odbx_lo_read(3)
- odbx_row_fetch(3)
- odbx_capabilities(3)
- odbx_get_option(3)
- odbx_error_type(3)
- odbx_unbind(3)
- odbx_lo_close(3)
- odbx_bind(3)
- odbx_finish(3)
- odbx_result(3)
- odbx_lo_write(3)
- odbx_column_name(3)
- odbx_rows_affected(3)
- odbx_query(3)
- odbx_field_value(3)
- odbx_column_count(3)
- odbx_init(3)
- odbx_set_option(3)
- odbx_result_finish(3)
apt-get install libopendbx1-dev
Manual
OpenDBX::Stmt
NAMESYNOPSIS
Public Types
Public Member Functions
Protected Member Functions
Detailed Description
Member Enumeration Documentation
enum OpenDBX::Stmt::Type
Constructor & Destructor Documentation
OpenDBX::Stmt::Stmt () [inline], [protected]
OpenDBX::Stmt::Stmt (Stmt_Iface * impl)std::exception [protected]
OpenDBX::Stmt::˜Stmt ()
OpenDBX::Stmt::Stmt (const Stmt & ref)
Member Function Documentation
Result OpenDBX::Stmt::execute ()std::exception
Stmt & OpenDBX::Stmt::operator= (const Stmt & ref)
Author
NAME
OpenDBX::Stmt - Statement object.
SYNOPSIS
Public Types
enum
Type
Statement objects which can be created.
Public Member Functions
Result
execute
() throw ( std::exception )
Executes a statement and returns a
Result
instance.
Stmt
&
operator=
(const
Stmt
&ref)
throw ()
Assigns a statement instance to another one.
Stmt
(const
Stmt
&ref) throw ()
Copy constructor.
˜Stmt
() throw ()
Destroys the statement instance if no other references
exist.
Protected Member Functions
Stmt
()
throw ()
Default constructor.
Stmt
(Stmt_Iface *impl) throw ( std::exception )
Creates a statement instance.
Detailed Description
Statement object.
Author
Norbert Sendetzky norbert@linuxnetworks.de
Version
1.0
Member Enumeration Documentation
enum OpenDBX::Stmt::Type
Statement objects which can be created. Currently, only simple processing of statements is supported which means that the statement sent to the database server consists of the statement and the parameters in text form. Later on, also prepared statements will be available which separates parsing and execution with different parameters.
Constructor & Destructor Documentation
OpenDBX::Stmt::Stmt () [inline], [protected]
Default constructor. The default constructor isn’t part of the public interface as the object must not be created manually. Instead, the Conn::create() method is a factory for instances of the Stmt class.
Returns
Statement instance
OpenDBX::Stmt::Stmt (Stmt_Iface * impl)std::exception [protected]
Creates a statement instance. The constructor isn’t part of the public interface as the object must not be created manually. Instead, the Conn::create() method is a factory for instances of the Stmt class.
Parameters
impl Pointer to private implementation
Exceptions
std::exception If an error occures
Returns
Statement instance
OpenDBX::Stmt::˜Stmt ()
Destroys the statement instance if no other references exist. Each statement object uses a reference counter to remember if the internal variables are shared with other objects. If this isn’t the case or if this object is the last one referencing the variables, the object is cleaned up and the allocated memory freed.
OpenDBX::Stmt::Stmt (const Stmt & ref)
Copy constructor. Enables the transfer of the internal state of an object ref of the same type to this object. Both objects share the same variables and the reference counter afterwards. The reference counter is incremented each time an object is copied and will be decremented if it is destroyed.
Parameters
ref Original statement object instance
Member Function Documentation
Result OpenDBX::Stmt::execute ()std::exception
Executes a statement and returns a Result instance. Sends the necessary data to the database server which will execute the statement and return one or more result sets afterwards. The result sets can be fetched via the returned Result object.
Returns
Result instance
Exceptions
OpenDBX::Exception If the underlying database library returns an error
See also
Result
Stmt & OpenDBX::Stmt::operator= (const Stmt & ref)
Assigns a statement instance to another one. Assigns the internal state of an object ref of the same type to this object. Both objects share the same variables and the reference counter afterwards. The reference counter is incremented each time an object is copied and will be decremented if it is destroyed.
Parameters
ref Stmt instance
Returns
Statement reference of this instance
Author
Generated automatically by Doxygen for opendbx from the source code.