Home / Open source / Terimber 2.0
orcl_dbserver Class Referenceclass implements interface dbserver
More...
#include <orclsrv.h>
List of all members.
Detailed Description
class implements interface dbserver
Definition at line 39 of file orclsrv.h.
Constructor & Destructor Documentation
orcl_dbserver::orcl_dbserver |
( |
size_t |
ident |
) |
|
constructor
- Parameters:
-
Definition at line 59 of file orclsrv.cpp.
orcl_dbserver::~orcl_dbserver |
( |
|
) |
[virtual] |
Member Function Documentation
void orcl_dbserver::v_connect |
( |
bool |
trusted_connection, |
|
|
const char * |
connection_string | |
|
) |
| | [protected, virtual] |
void orcl_dbserver::v_disconnect |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_start_transaction |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_commit |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_rollback |
( |
|
) |
[protected, virtual] |
bool orcl_dbserver::v_is_connect_alive |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_before_execute |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_after_execute |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_before_bind_columns |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_execute |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_close |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_fetch |
( |
|
) |
[protected, virtual] |
fetches block of rows
Implements dbserver_impl.
Definition at line 238 of file orclsrv.cpp.
References dbserver_impl::_cols, dbserver_impl::_data, dbserver_impl::_data_allocator, _errhp, dbserver_impl::_fetched_rows, dbserver_impl::_requested_rows, dbserver_impl::_start_row, _stmthp, exception::_throw(), check_retcode, base_list< T >::end(), dbserver_impl::get_state(), _list< T, A >::push_back(), base_vector< T >::size(), STATE_INTERRUPTED, v_convert_one_value(), and v_execute().
void orcl_dbserver::v_replace_quote |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_bind_one_param |
( |
size_t |
index |
) |
[protected, virtual] |
binds one param by index
Implements dbserver_impl.
Definition at line 335 of file orclsrv.cpp.
References binder::_bind_buffer, binder::_bind_type, dbserver_impl::_data_allocator, binder::_in_out, binder::_max_length, binder::_native_type, dbserver_impl::_params, binder::_real_length, dbserver_impl::_temp_allocator, exception::_throw(), binder::_type, binder::_value, byte_allocator::allocate(), _terimber_xml_value_::boolVal, _terimber_xml_value_::bufVal, _terimber_xml_value_::bVal, check_pointer(), date::convert_from(), _terimber_xml_value_::cVal, db_binary, db_bool, db_date, db_decimal, db_double, db_float, db_numeric, db_sb1, db_sb2, db_sb4, db_sb8, db_string, db_ub1, db_ub2, db_ub4, db_ub8, db_wstring, _terimber_xml_value_::dblVal, _terimber_xml_value_::fltVal, _terimber_xml_value_::intVal, is_param_out(), _terimber_xml_value_::iVal, _terimber_xml_value_::lVal, terimber_db_value::nullVal, numeric::orcl_len(), os_minus_one, numeric::parse_orcl(), numeric::persist_orcl(), str_template::strcpy(), str_template::strlen(), _terimber_xml_value_::strVal, _terimber_xml_value_::uiVal, _terimber_xml_value_::ulVal, terimber_db_value::val, and _terimber_xml_value_::wstrVal.
void orcl_dbserver::v_bind_one_column |
( |
size_t |
index |
) |
[protected, virtual] |
binds one column by index
Implements dbserver_impl.
Definition at line 556 of file orclsrv.cpp.
References binder::_bind_buffer, binder::_bind_type, dbserver_impl::_cols, _envhp, _errhp, binder::_max_length, binder::_native_type, binder::_real_length, _stmthp, dbserver_impl::_temp_allocator, exception::_throw(), binder::_user_code, binder::_value, byte_allocator::allocate(), check_pointer(), check_retcode, _terimber_xml_value_::lVal, _terimber_xml_value_::ulVal, and terimber_db_value::val.
size_t orcl_dbserver::v_get_number_columns |
( |
|
) |
[protected, virtual] |
void orcl_dbserver::v_convert_one_value |
( |
size_t |
row, |
|
|
size_t |
col, |
|
|
terimber_db_value & |
val | |
|
) |
| | [protected, virtual] |
converts one field value to variant buffer
Implements dbserver_impl.
Definition at line 642 of file orclsrv.cpp.
References binder::_bind_buffer, binder::_bind_type, dbserver_impl::_cols, dbserver_impl::_data_allocator, _errhp, binder::_max_length, binder::_native_type, binder::_real_length, _svchp, dbserver_impl::_temp_allocator, exception::_throw(), binder::_user_code, binder::_value, byte_allocator::allocate(), _terimber_xml_value_::boolVal, _terimber_xml_value_::bufVal, check_pointer(), check_retcode, date::convert_to(), _terimber_xml_value_::dblVal, _terimber_xml_value_::intVal, terimber_db_value::nullVal, numeric::orcl_len(), numeric::parse_orcl(), numeric::persist_orcl(), _terimber_xml_value_::strVal, and terimber_db_value::val.
Referenced by v_fetch().
void orcl_dbserver::v_get_one_column_info |
( |
size_t |
index |
) |
[protected, virtual] |
gets one column info from native driver
Implements dbserver_impl.
Definition at line 802 of file orclsrv.cpp.
References dbserver_impl::_cols, dbserver_impl::_columns_allocator, _errhp, binder::_max_length, binder::_native_type, binder::_precision, binder::_scale, _stmthp, binder::_value, check_retcode, terimber_db_value::nullVal, and binder::set_name().
void orcl_dbserver::v_form_sql_string |
( |
|
) |
[protected, virtual] |
forms SQL expression depending on type selected and native driver
Implements dbserver_impl.
Definition at line 852 of file orclsrv.cpp.
References dbserver_impl::_params, dbserver_impl::_quote, dbserver_impl::_sql, dbserver_impl::_temp_allocator, dbserver_impl::ACTION_EXEC_PROC, dbserver_impl::ACTION_EXEC_PROC_ASYNC, dbserver_impl::ACTION_EXEC_SQL, dbserver_impl::ACTION_EXEC_SQL_ASYNC, dbserver_impl::ACTION_FETCH, dbserver_impl::ACTION_FETCH_ASYNC, dbserver_impl::ACTION_NONE, dbserver_impl::ACTION_OPEN_PROC, dbserver_impl::ACTION_OPEN_PROC_ASYNC, dbserver_impl::ACTION_OPEN_SQL, dbserver_impl::ACTION_OPEN_SQL_ASYNC, dbserver_impl::get_action(), base_vector< T >::size(), and str_template::strprint().
void orcl_dbserver::v_rebind_one_param |
( |
size_t |
index |
) |
[protected, virtual] |
rebinds one param for input/output or output params
Implements dbserver_impl.
Definition at line 904 of file orclsrv.cpp.
References binder::_bind_buffer, _errhp, binder::_in_out, binder::_max_length, binder::_native_type, dbserver_impl::_params, binder::_real_length, _svchp, dbserver_impl::_temp_allocator, exception::_throw(), binder::_user_code, binder::_value, binder::allocate_value(), _terimber_xml_value_::bufVal, check_pointer(), check_retcode, date::convert_to(), _terimber_xml_value_::intVal, is_param_out(), terimber_db_value::nullVal, numeric::orcl_len(), os_minus_one, numeric::parse_orcl(), numeric::persist_orcl(), and terimber_db_value::val.
void orcl_dbserver::v_interrupt_async |
( |
|
) |
[protected, virtual] |
dbtypes orcl_dbserver::v_native_type_to_client_type |
( |
size_t |
native_type |
) |
[protected, virtual] |
Member Data Documentation
oracle error interface handle
Definition at line 77 of file orclsrv.h.
Referenced by v_before_execute(), v_bind_one_column(), v_commit(), v_connect(), v_convert_one_value(), v_disconnect(), v_execute(), v_fetch(), v_get_number_columns(), v_get_one_column_info(), v_rebind_one_param(), v_rollback(), and v_start_transaction().
The documentation for this class was generated from the following files:
|
|