Search Toolkit Book for CTL_CursorResultExpl
#include <dbapi/driver/ctlib/interfaces.hpp>
Definition at line 1330 of file interfaces.hpp.
◆ CTL_CursorResultExpl() ◆ ~CTL_CursorResultExpl() CTL_CursorResultExpl::~CTL_CursorResultExpl ( void ) protectedvirtual ◆ ClearFields() void CTL_CursorResultExpl::ClearFields ( void ) private ◆ ClearResultSet() void CTL_CursorResultExpl::ClearResultSet ( void ) private ◆ CurrentItemNo() int CTL_CursorResultExpl::CurrentItemNo ( void ) const protectedvirtualReturn current item number we can retrieve (0,1,...) Return "-1" if no more items left (or available) to read.
Reimplemented from CTL_RowResult.
Definition at line 1333 of file result.cpp.
References m_CurItemNo.
◆ DumpResultSet() void CTL_CursorResultExpl::DumpResultSet ( void ) private ◆ Fetch()Fetch next row.
Reimplemented from CTL_CursorResult.
Definition at line 1254 of file result.cpp.
References ClearFields(), CTL_Connection::CompleteBlobDescriptors(), CTL_BLOB_DESCRIPTOR_TYPE_MAGNUM, CDB_Result::CurrentItemNo(), DATABASE_DRIVER_ERROR_EX, eDB_RowResult, CDB_Result::Fetch(), GetCmd(), CDB_Result::GetColumnNum(), CTL_RowResult::GetConnection(), CTL_RowResult::GetDbgInfo(), CDB_Result::GetDefineParams(), CDB_Result::GetItem(), i, CDB_Object::IsBlobType(), CDB_Result::ItemDataType(), m_BlobDescrs, impl::CResult::m_CachedRowInfo, m_CurItemNo, m_CursorName, m_Fields, m_ReadBytes, m_Res, NULL, CTL_LangCmd::Result(), CDB_Result::ResultType(), s_GetBlobDescriptor(), and CTL_LangCmd::Send().
◆ FetchAllResultSet() void CTL_CursorResultExpl::FetchAllResultSet ( void ) private ◆ GetBlobDescriptor() [1/2] ◆ GetBlobDescriptor() [2/2]Get a descriptor for a BLOB column (for SendData).
Return NULL if this result doesn't (or can't) have a BLOB descriptor. NOTE: you need to call ReadItem (maybe even with buffer_size == 0) before calling this method!
Reimplemented from CTL_RowResult.
Definition at line 1348 of file interfaces.hpp.
◆ GetCmd() [1/2] ◆ GetCmd() [2/2] ◆ GetColumnNum() int CTL_CursorResultExpl::GetColumnNum ( void ) const protectedvirtual ◆ GetItem()Get a result item (you can use either GetItem or ReadItem).
If "item_buf" is not NULL, then use "*item_buf" (its type should be compatible with the type of retrieved item!) to retrieve the item to; otherwise allocate new "CDB_Object".
Reimplemented from CTL_RowResult.
Definition at line 1345 of file result.cpp.
References CDB_Stream::Append(), CDB_Object::AssignValue(), buffer, DATABASE_DRIVER_ERROR, I_Result::eAppendLOB, GetColumnNum(), CTL_RowResult::GetDbgInfo(), CDB_Object::GetType(), CDB_Object::IsBlobType(), m_CurItemNo, m_Fields, CDB_Stream::MoveTo(), NULL, CDB_Stream::Read(), read_size(), CDB_Stream::Size(), and total_size.
◆ GetResultSet() CDB_Result* CTL_CursorResultExpl::GetResultSet ( void ) const private ◆ ReadItem() size_t CTL_CursorResultExpl::ReadItem ( void * buffer, size_t buffer_size, bool * is_null =0
) protectedvirtual
Read a result item body (for BLOB columns, mostly).
Return number of successfully read bytes. Set "*is_null" to TRUE if the item is <NULL>. Throw an exception on any error.
Reimplemented from CTL_RowResult.
Definition at line 1385 of file result.cpp.
References _cs_numeric::array, buffer, CHECK_DRIVER_ERROR, CS_BIGDATETIME_TYPE, cs_dt_crack, CS_MAX_NUMLEN, CS_SUCCEED, CTLibContext::CTLIB_GetContext(), ctx, CDB_String::Data(), data, CDB_LongChar::DataSize(), _cs_daterec::datedmonth, _cs_daterec::datedweek, _cs_daterec::datedyear, _cs_daterec::datehour, _cs_daterec::dateminute, _cs_daterec::datemonth, _cs_daterec::datemsecond, _cs_daterec::datesecfrac, _cs_daterec::datesecond, _cs_daterec::datesecprec, _cs_daterec::dateyear, _cs_datetime4::days, _cs_datetime::dtdays, _cs_datetime::dttime, eDB_BigDateTime, eDB_BigInt, eDB_Binary, eDB_Bit, eDB_Char, eDB_DateTime, eDB_Double, eDB_Float, eDB_Image, eDB_Int, eDB_LongBinary, eDB_LongChar, eDB_Numeric, eDB_SmallDateTime, eDB_SmallInt, eDB_Text, eDB_TinyInt, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, free(), CDB_DateTime::Get300Secs(), GetColumnNum(), CDB_BigDateTime::GetCTime(), CTL_Connection::GetCTLibContext(), CDB_SmallDateTime::GetDays(), CDB_DateTime::GetDays(), CDB_SmallDateTime::GetMinutes(), CDB_Object::GetType(), CDB_Object::IsNULL(), kMicroSecondsPerSecond, CTL_RowResult::m_Connect, m_CurItemNo, m_Fields, m_ReadBuffer, m_ReadBytes, malloc(), _cs_datetime4::minutes, CDB_Stream::MoveTo(), NULL, _cs_numeric::precision, CDB_Numeric::Precision(), CDB_Numeric::RawData(), CDB_Stream::Read(), _cs_numeric::scale, CDB_Numeric::Scale(), CDB_VarBinary::Size(), CDB_Binary::Size(), CDB_LongBinary::Size(), CDB_Stream::Size(), CDB_String::Size(), t, CDB_VarBinary::Value(), CDB_Binary::Value(), and CDB_LongBinary::Value().
◆ ResultType() EDB_ResType CTL_CursorResultExpl::ResultType ( void ) const protectedvirtual ◆ SetResultSet() void CTL_CursorResultExpl::SetResultSet ( CDB_Result * res ) private ◆ SkipItem() bool CTL_CursorResultExpl::SkipItem ( void ) protectedvirtual ◆ CTL_CursorCmdExpl ◆ default_delete< CTL_CursorResultExpl > ◆ m_BlobDescrs ◆ m_Cmd ◆ m_CurItemNo int CTL_CursorResultExpl::m_CurItemNo private ◆ m_CursorName string CTL_CursorResultExpl::m_CursorName private ◆ m_Fields vector<CDB_Object*> CTL_CursorResultExpl::m_Fields private ◆ m_ReadBuffer void* CTL_CursorResultExpl::m_ReadBuffer private ◆ m_ReadBytes size_t CTL_CursorResultExpl::m_ReadBytes private ◆ m_ResThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4