NCBI C++ ToolKit
|
Search Toolkit Book for CTL_Connection
#include <dbapi/driver/ctlib/interfaces.hpp>
Classes | |
class | CCancelModeGuard |
Protected Member Functions | |
CTL_Connection (CTLibContext &cntx, const CDBConnParams ¶ms) | |
virtual | ~CTL_Connection (void) |
virtual CDB_LangCmd * | LangCmd (const string &lang_query) |
These methods: LangCmd(), RPC(), BCPIn(), Cursor() and SendDataCmd() create and return a "command" object, register it for later use with this (and only this!) connection. More... | |
virtual CDB_RPCCmd * | RPC (const string &rpc_name) |
Remote procedure call. More... | |
virtual CDB_BCPInCmd * | BCPIn (const string &table_name) |
"Bulk copy in" command More... | |
virtual CDB_CursorCmd * | Cursor (const string &cursor_name, const string &query, unsigned int batch_size=1) |
Cursor. More... | |
virtual CDB_SendDataCmd * | SendDataCmd (I_BlobDescriptor &desc, size_t data_size, bool log_it=true, bool dump_results=true) |
"Send-data" command More... | |
virtual bool | SendData (I_BlobDescriptor &desc, CDB_Stream &lob, bool log_it=true) |
Shortcut to send text and image to the server without using the "Send-data" command (SendDataCmd) More... | |
virtual bool | Refresh (void) |
Reset the connection to the "ready" state (cancel all active commands) More... | |
virtual I_DriverContext::TConnectionMode | ConnectMode (void) const |
Get the bitmask for the connection mode (BCP, secure login, ...) More... | |
CTL_LangCmd * | xLangCmd (const string &lang_query) |
virtual bool | Abort (void) |
abort the connection Attention: it is not recommended to use this method unless you absolutely have to. More... | |
virtual bool | Close (void) |
Close an open connection. More... | |
CS_RETCODE | CheckWhileOpening (CS_RETCODE rc) |
CS_RETCODE | CheckSFB (CS_RETCODE rc, const char *msg, unsigned int msg_num) |
bool | IsDead (void) const |
void | SetDead (bool flag=true) |
const TDbgInfo & | GetDbgInfo (void) const |
virtual void | SetTimeout (size_t nof_secs) |
virtual void | SetCancelTimeout (size_t nof_secs) |
virtual size_t | GetTimeout (void) const |
virtual size_t | GetCancelTimeout (void) const |
virtual unsigned int | GetRowsInCurrentBatch (void) const |
size_t | PrepareToCancel (void) |
void | CancelFinished (size_t was_timeout) |
bool | IsCancelInProgress (void) const |
virtual TSockHandle | GetLowLevelHandle (void) const |
Get OS handle of the socket represented by the connection. More... | |
virtual string | GetVersionString (void) const |
void | CompleteBlobDescriptor (I_BlobDescriptor &desc, const string &cursor_name, int item_num) |
void | CompleteBlobDescriptors (vector< I_BlobDescriptor * > &descs, const string &cursor_name) |
Protected Member Functions inherited from impl::CConnection | |
CDB_LangCmd * | Create_LangCmd (CBaseCmd &lang_cmd) |
These methods to allow the children of CConnection to create various command-objects. More... | |
CDB_RPCCmd * | Create_RPCCmd (CBaseCmd &rpc_cmd) |
CDB_BCPInCmd * | Create_BCPInCmd (CBaseCmd &bcpin_cmd) |
CDB_CursorCmd * | Create_CursorCmd (CBaseCmd &cursor_cmd) |
CDB_SendDataCmd * | Create_SendDataCmd (CSendDataCmd &senddata_cmd) |
void | Release (void) |
const CDBHandlerStack & | GetMsgHandlers (void) const |
CDBHandlerStack & | GetMsgHandlers (void) |
void | DropCmd (impl::CCommand &cmd) |
void | DeleteAllCommands (void) |
void | AttachTo (CDB_Connection *interface) |
void | ReleaseInterface (void) |
void | DetachResultProcessor (void) |
void | CheckCanOpen (void) |
void | MarkClosed (void) |
unsigned int | GetReuseCount (void) const |
bool | IsBCPable (void) const |
bool | HasSecureLogin (void) const |
TDbgInfo & | SetDbgInfo (void) |
void | SetServerType (CDBConnParams::EServerType type) |
const CDBHandlerStack & | GetOpeningMsgHandlers (void) const |
CObject * | x_GetUserData (void) const |
void | x_RecordServer (const CDBServer &server) |
void | x_DisableReuse (void) |
Private Member Functions | |
void | x_LoadTextPtrProcs (void) |
void | x_CmdAlloc (CS_COMMAND **cmd) |
void | x_SetExtraMsg (const I_BlobDescriptor &descr, size_t data_size) |
bool | x_SendData (I_BlobDescriptor &desc, CDB_Stream &img, bool log_it=true) |
bool | x_SendUpdateWrite (CDB_BlobDescriptor &desc, CDB_Stream &img, size_t size) |
I_BlobDescriptor * | x_GetNativeBlobDescriptor (const CDB_BlobDescriptor &d) |
bool | x_IsLegacyBlobColumnType (const string &table_name, const string &column_name) |
CS_CONNECTION * | x_GetSybaseConn (void) const |
bool | x_ProcessResultInternal (CS_COMMAND *cmd, CS_INT res_type) |
const CDBParams * | GetLastParams (void) const |
Private Attributes | |
CTLibContext * | m_Cntx |
CTL_CmdBase * | m_ActiveCmd |
ctlib::Connection | m_Handle |
int | m_TDSVersion |
bool | m_TextPtrProcsLoaded |
bool | m_CancelInProgress |
bool | m_CancelRequested |
unsigned int | m_ActivityLevel |
CMutex | m_CancelLogisticsMutex |
Friends | |
class | CTLibContext |
class | ctlib::Connection |
class | ncbi::CDB_Connection |
class | CTL_Cmd |
class | CTL_CmdBase |
class | CTL_LRCmd |
class | CTL_LangCmd |
class | CTL_RPCCmd |
class | CTL_SendDataCmd |
class | CTL_BCPInCmd |
class | CTL_CursorCmd |
class | CTL_CursorCmdExpl |
class | CTL_CursorResultExpl |
class | CTL_RowResult |
class | CCancelModeGuard |
Additional Inherited Members | |
Public Types inherited from impl::CConnection | |
typedef CDB_Exception::SContext | TDbgInfo |
Public Types inherited from I_ConnectionExtra | |
typedef SOCKET | TSockHandle |
Static Protected Member Functions inherited from impl::CConnection | |
static CDB_Result * | Create_Result (impl::CResult &result) |
Definition at line 374 of file interfaces.hpp.
|
protected |
Definition at line 158 of file connection.cpp.
References Check(), CheckWhileOpening(), CS_APPNAME, CS_BULK_LOGIN, CS_CLIENTMSG_CB, CS_GET, CS_HOSTNAME, CS_LOC_PROP, CS_LOGIN_TIMEOUT, CS_NO_LIMIT, CS_NULLTERM, CS_PACKETSIZE, CS_PASSWORD, CS_SEC_ENCRYPTION, CS_SERVERMSG_CB, CS_SET, CS_SUCCEED, CS_TDS_50, CS_TDS_70, CS_TDS_71, CS_TDS_72, CS_TDS_73, CS_TDS_74, CS_TDS_VERSION, CS_TIMEOUT, CS_TRUE, CS_UNUSED, CS_USERDATA, CS_USERNAME, CS_VERSION_100, CS_VERSION_110, CS_VERSION_125, ct_callback(), ct_con_props(), CTLibContext::CTLIB_cterr_handler(), CTLibContext::CTLIB_srverr_handler(), data, DATABASE_DRIVER_ERROR, FTDS_IN_USE, impl::CConnection::GetCDriverContext(), GetCTLibContext(), GetDbgInfo(), CTLibContext::GetLocale(), CTLibContext::GetLoginLoopDelay(), CTLibContext::GetLoginRetryCount(), ctlib::Connection::GetNativeHandle(), CTLibContext::GetPacketSize(), CDBConnParams::GetParam(), CDBConnParams::GetPassword(), CDBConnParams::GetProtocolVersion(), CDBConnParams::GetServerName(), CTLibContext::GetTDSVersion(), CDBConnParams::GetUserName(), m_Handle, m_TDSVersion, NULL, ctlib::Connection::Open(), impl::CConnection::SetServerType(), ncbi::grid::netcache::search::fields::size, NStr::StringToNumeric(), tds, _cs_connection::tds_socket, tds_version, and x_GetSybaseConn().
|
protectedvirtual |
Definition at line 941 of file connection.cpp.
References Close(), m_ActiveCmd, CTL_CmdBase::m_IsActive, NCBI_CATCH_ALL_X, and NCBI_CURRENT_FUNCTION.
|
protectedvirtual |
abort the connection Attention: it is not recommended to use this method unless you absolutely have to.
The expected implementation is - close underlying file descriptor[s] without destroing any objects associated with a connection. Returns: true - if succeed false - if not
Implements impl::CConnection.
Definition at line 1472 of file connection.cpp.
References Check(), close(), CS_GET, CS_SUCCEED, CS_UNUSED, ct_con_props(), impl::CConnection::MarkClosed(), and x_GetSybaseConn().
|
protectedvirtual |
"Bulk copy in" command
Implements impl::CConnection.
Definition at line 823 of file connection.cpp.
References impl::CConnection::Create_BCPInCmd(), CTL_BCPInCmd, impl::CConnection::SetExtraMsg(), and table_name.
|
protected |
Definition at line 631 of file connection.cpp.
References m_CancelInProgress, and SetTimeout().
Referenced by CTL_BCPInCmd::Cancel(), CTL_SendDataCmd::Cancel(), and CTL_LRCmd::x_Cancel().
CS_RETCODE CTL_Connection::Check | ( | CS_RETCODE | rc | ) |
Definition at line 459 of file connection.cpp.
References GetCTLExceptionStorage(), GetDbgInfo(), GetLastParams(), impl::CConnection::GetMsgHandlers(), and impl::CDBExceptionStorage::Handle().
Referenced by Abort(), CTL_CmdBase::Check(), CTL_RowResult::Check(), CheckSFB(), ctlib::Command::Close(), CTL_Connection(), ctlib::Connection::Drop(), ctlib::Command::Drop(), ctlib::Command::Fetch(), ctlib::Command::GetResults(), ctlib::Connection::IsOpen_native(), ctlib::Command::Open(), and x_SendData().
CS_RETCODE CTL_Connection::Check | ( | CS_RETCODE | rc, |
const TDbgInfo & | dbg_info | ||
) |
Definition at line 469 of file connection.cpp.
References GetCTLExceptionStorage(), GetLastParams(), impl::CConnection::GetMsgHandlers(), and impl::CDBExceptionStorage::Handle().
|
protected |
Definition at line 490 of file connection.cpp.
References Check(), CS_BUSY, CS_FAIL, CS_SUCCEED, DATABASE_DRIVER_ERROR, IsAlive(), and msg().
Referenced by x_CmdAlloc().
|
protected |
Definition at line 478 of file connection.cpp.
References CTLibContext::Check(), GetCTLExceptionStorage(), GetCTLibContext(), GetDbgInfo(), GetLastParams(), impl::CConnection::GetOpeningMsgHandlers(), impl::CDBHandlerStack::GetSize(), and impl::CDBExceptionStorage::Handle().
Referenced by CTL_Connection().
|
protectedvirtual |
Close an open connection.
Returns: true - if successfully closed an open connection. false - if not
Implements impl::CConnection.
Definition at line 1494 of file connection.cpp.
References CTLibContext::Check(), ctlib::Connection::Close(), CS_SET, CS_USERDATA, ct_con_props(), ctlib::Connection::Drop(), GetCTLExceptionStorage(), GetCTLibContext(), ctlib::Connection::IsOpen(), m_Handle, impl::CConnection::MarkClosed(), NULL, Refresh(), impl::CDBExceptionStorage::SetClosingConnect(), tds, _cs_connection::tds_socket, and x_GetSybaseConn().
Referenced by ~CTL_Connection().
|
protected |
Definition at line 691 of file connection.cpp.
References CDBParams::Bind(), CHECK_DRIVER_ERROR, cmd, CS_TP_SIZE, CTL_BLOB_DESCRIPTOR_TYPE_MAGNUM, CDB_VarBinary::Data(), I_BlobDescriptor::DescriptorType(), eDB_ParamResult, CDB_Object::IsNULL(), CTL_BlobDescriptor::m_Desc, min(), NULL, result, RPC(), CDB_VarBinary::Size(), util::strcmp(), _cs_iodesc::textptr, _cs_iodesc::textptrlen, and x_LoadTextPtrProcs().
|
protected |
Definition at line 744 of file connection.cpp.
References _ASSERT, CDB_Object::AssignNULL(), CDBParams::Bind(), CHECK_DRIVER_ERROR, cmd, CS_TP_SIZE, CTL_BLOB_DESCRIPTOR_TYPE_MAGNUM, CDB_VarBinary::Data(), eDB_RowResult, i, CDB_Object::IsNULL(), min(), NULL, result, RPC(), CDB_VarBinary::Size(), _cs_iodesc::textptr, _cs_iodesc::textptrlen, CDB_Int::Value(), and x_LoadTextPtrProcs().
Referenced by CTL_CursorResultExpl::Fetch().
|
protectedvirtual |
Get the bitmask for the connection mode (BCP, secure login, ...)
Implements impl::CConnection.
Definition at line 930 of file connection.cpp.
References I_DriverContext::fBcpIn, I_DriverContext::fPasswordEncrypted, and impl::CConnection::HasSecureLogin().
|
protectedvirtual |
Cursor.
Implements impl::CConnection.
Definition at line 837 of file connection.cpp.
References impl::CConnection::Create_CursorCmd(), CTL_CursorCmd, CTL_CursorCmdExpl, query, and impl::CConnection::SetExtraMsg().
void CTL_Connection::DeferTimeout | ( | void | ) |
Definition at line 1662 of file connection.cpp.
Referenced by CTL_RowResult::CheckIsDead().
CS_INT CTL_Connection::GetBLKVersion | ( | void | ) | const |
Definition at line 514 of file connection.cpp.
References _ASSERT, BLK_VERSION_100, BLK_VERSION_110, BLK_VERSION_125, BLK_VERSION_150, BLK_VERSION_155, BLK_VERSION_157, BLK_VERSION_160, CS_VERSION_100, CS_VERSION_110, CS_VERSION_125, CS_VERSION_150, CS_VERSION_155, CS_VERSION_157, CS_VERSION_160, CTLibContext::GetTDSVersion(), m_Cntx, and tds_version.
|
protectedvirtual |
Reimplemented from impl::CConnection.
Definition at line 615 of file connection.cpp.
References impl::CDriverContext::GetCancelTimeout(), and GetCTLibContext().
Referenced by PrepareToCancel().
|
inline |
Definition at line 406 of file interfaces.hpp.
References _ASSERT.
|
inline |
Definition at line 401 of file interfaces.hpp.
References _ASSERT.
Referenced by CTL_Cmd::AssignCmdParam(), CheckWhileOpening(), Close(), CTL_Connection(), GetCancelTimeout(), CTL_RowResult::GetItemInternal(), GetTimeout(), GetVersionString(), PrepareToCancel(), CTL_CursorResultExpl::ReadItem(), and SetCancelTimeout().
|
inlineprotectedvirtual |
Reimplemented from impl::CConnection.
Definition at line 1399 of file interfaces.hpp.
References GetDbgInfo.
Referenced by Check(), CheckWhileOpening(), CTL_Connection(), CTL_RowResult::GetDbgInfo(), x_GetNativeBlobDescriptor(), x_IsLegacyBlobColumnType(), and x_SendData().
Definition at line 1404 of file interfaces.hpp.
References NULL.
Referenced by Check(), CheckWhileOpening(), and CTL_RowResult::GetLastParams().
|
protectedvirtual |
Get OS handle of the socket represented by the connection.
Reimplemented from impl::CConnection.
Definition at line 639 of file connection.cpp.
References impl::CConnection::GetLowLevelHandle(), and x_GetSybaseConn().
|
inline |
Definition at line 412 of file interfaces.hpp.
|
inline |
Definition at line 416 of file interfaces.hpp.
|
inlineprotectedvirtual |
|
protectedvirtual |
Reimplemented from impl::CConnection.
Definition at line 601 of file connection.cpp.
References CS_GET, CS_NO_LIMIT, CS_SUCCEED, CS_TIMEOUT, CS_UNUSED, ct_con_props(), GetCTLibContext(), CTLibContext::GetTimeout(), and x_GetSybaseConn().
Referenced by PrepareToCancel().
|
protectedvirtual |
Reimplemented from impl::CConnection.
Definition at line 649 of file connection.cpp.
References buffer, CS_FAIL, CS_GET, CS_VERSION, ct_config(), GetCTLibContext(), len, and result.
|
virtual |
Check out if connection is alive (this function doesn't ping the server, it just checks the status of connection which was set by the last i/o operation)
Implements impl::CConnection.
Definition at line 575 of file connection.cpp.
References ctlib::Connection::IsAlive(), and m_Handle.
Referenced by CheckSFB().
|
inlineprotected |
Definition at line 501 of file interfaces.hpp.
|
inlineprotected |
Definition at line 480 of file interfaces.hpp.
References IsValid().
Referenced by CTL_RowResult::IsDead(), and x_SendData().
|
inline |
Definition at line 422 of file interfaces.hpp.
|
protectedvirtual |
These methods: LangCmd(), RPC(), BCPIn(), Cursor() and SendDataCmd() create and return a "command" object, register it for later use with this (and only this!) connection.
On error, an exception will be thrown (they never return NULL!). It is the user's responsibility to delete the returned "command" object. Language command
Implements impl::CConnection.
Definition at line 795 of file connection.cpp.
References impl::CConnection::Create_LangCmd(), CTL_LangCmd, and impl::CConnection::SetExtraMsg().
Referenced by CTL_CursorCmdExpl::Delete(), x_GetNativeBlobDescriptor(), x_IsLegacyBlobColumnType(), and x_SendUpdateWrite().
|
protected |
Definition at line 621 of file connection.cpp.
References GetCancelTimeout(), GetCTLibContext(), GetTimeout(), m_CancelInProgress, and SetTimeout().
Referenced by CTL_BCPInCmd::Cancel(), CTL_SendDataCmd::Cancel(), and CTL_LRCmd::x_Cancel().
|
protectedvirtual |
Reset the connection to the "ready" state (cancel all active commands)
Implements impl::CConnection.
Definition at line 915 of file connection.cpp.
References ctlib::Connection::Cancel(), impl::CConnection::DeleteAllCommands(), ctlib::Connection::IsAlive(), and m_Handle.
Referenced by Close().
|
protectedvirtual |
Remote procedure call.
Implements impl::CConnection.
Definition at line 809 of file connection.cpp.
References impl::CConnection::Create_RPCCmd(), CTL_RPCCmd, and impl::CConnection::SetExtraMsg().
Referenced by CompleteBlobDescriptor(), and CompleteBlobDescriptors().
|
protectedvirtual |
Shortcut to send text and image to the server without using the "Send-data" command (SendDataCmd)
Implements impl::CConnection.
Definition at line 909 of file connection.cpp.
References x_SendData().
|
protectedvirtual |
"Send-data" command
Implements impl::CConnection.
Definition at line 893 of file connection.cpp.
References impl::CConnection::Create_SendDataCmd(), CTL_SendDataCmd, and x_SetExtraMsg().
Referenced by CTL_CmdBase::ConnSendDataCmd(), and CTL_CursorCmdExpl::SendDataCmd().
|
protectedvirtual |
Implements impl::CConnection.
Definition at line 594 of file connection.cpp.
References GetCTLibContext(), and impl::CDriverContext::SetCancelTimeout().
Definition at line 484 of file interfaces.hpp.
|
protectedvirtual |
Implements impl::CConnection.
Definition at line 582 of file connection.cpp.
References _TRACE, CS_NO_LIMIT, CS_SET, CS_SUCCEED, CS_TIMEOUT, CS_UNUSED, ct_con_props(), and x_GetSybaseConn().
Referenced by CancelFinished(), and PrepareToCancel().
|
private |
Definition at line 1057 of file connection.cpp.
References CheckSFB(), cmd, ct_cmd_alloc(), and x_GetSybaseConn().
Referenced by x_SendData().
|
private |
Definition at line 1328 of file connection.cpp.
References _ASSERT, CHECK_DRIVER_ERROR, CDB_BlobDescriptor::ColumnName(), CS_TP_SIZE, CTL_BLOB_DESCRIPTOR_TYPE_MAGNUM, CDB_VarBinary::Data(), I_BlobDescriptor::DescriptorType(), eDB_RowResult, CDB_Result::Fetch(), CDB_Result::GetBlobDescriptor(), GetDbgInfo(), CDB_Result::GetItem(), i, CDB_Object::IsNULL(), LangCmd(), min(), NULL, CDB_Result::ResultType(), CDB_BlobDescriptor::SearchConditions(), CDB_VarBinary::Size(), CDB_Result::SkipItem(), CDB_BlobDescriptor::TableName(), _cs_iodesc::textptr, and _cs_iodesc::textptrlen.
Referenced by CTL_SendDataCmd::CTL_SendDataCmd(), and x_SendData().
|
inlineprivate |
Definition at line 525 of file interfaces.hpp.
Referenced by Abort(), Close(), CTL_Connection(), GetLowLevelHandle(), GetTimeout(), SetTimeout(), and x_CmdAlloc().
|
private |
Definition at line 1422 of file connection.cpp.
References CHECK_DRIVER_ERROR, cmd, eDB_RowResult, CDBConnParams::eMSSqlServer, GetDbgInfo(), impl::CConnection::GetServerType(), LangCmd(), NPOS, query, table_name, and CDB_Int::Value().
Referenced by x_SendData().
|
private |
Definition at line 663 of file connection.cpp.
References ArraySize(), CHECK_DRIVER_ERROR, cmd, NStr::EqualNocase(), i, m_TextPtrProcsLoaded, n, and sql.
Referenced by CompleteBlobDescriptor(), and CompleteBlobDescriptors().
|
private |
Definition at line 1538 of file connection.cpp.
References cmd, impl::CConnection::Create_Result(), CS_COMPUTE_RESULT, CS_PARAM_RESULT, CS_ROW_RESULT, CS_STATUS_RESULT, CTL_RowResult, impl::CConnection::GetResultProcessor(), and CDB_ResultProcessor::ProcessResult().
Referenced by CTL_Cmd::ProcessResultInternal(), and x_SendData().
|
private |
Definition at line 1064 of file connection.cpp.
References _ASSERT, Check(), cmd, CDB_BlobDescriptor::ColumnName(), CS_CANCEL_ALL, CS_CANCEL_CURRENT, CS_CMD_FAIL, CS_COLUMN_DATA, CS_COMPUTE_RESULT, CS_CURSOR_RESULT, CS_END_DATA, CS_END_RESULTS, CS_FALSE, CS_PARAM_RESULT, CS_ROW_RESULT, CS_SEND_DATA_CMD, CS_SET, CS_STATUS_RESULT, CS_SUCCEED, CS_TRUE, CS_UNUSED, ct_cancel(), ct_cmd_drop(), ct_command(), ct_data_info(), ct_fetch(), ct_results(), ct_send(), ct_send_data(), CTL_BLOB_DESCRIPTOR_TYPE_CURSOR, CTL_BLOB_DESCRIPTOR_TYPE_MAGNUM, DATABASE_DRIVER_ERROR, DATABASE_DRIVER_ERROR_EX, I_BlobDescriptor::DescriptorType(), eTriState_False, eTriState_True, eTriState_Unknown, GetDbgInfo(), CDB_BlobDescriptor::GetHasLegacyType(), IsDead(), len, _cs_iodesc::log_on_update, m_ActiveCmd, CTL_BlobDescriptor::m_Context, CTL_BlobDescriptor::m_Desc, CTL_CmdBase::m_IsActive, NULL, CDB_Stream::Read(), CDB_BlobDescriptor::SetHasLegacyType(), ncbi::grid::netcache::search::fields::size, CDB_Stream::Size(), CDB_BlobDescriptor::TableName(), _cs_iodesc::textptrlen, _cs_iodesc::total_txtlen, x_CmdAlloc(), x_GetNativeBlobDescriptor(), x_IsLegacyBlobColumnType(), x_ProcessResultInternal(), x_SendUpdateWrite(), and x_SetExtraMsg().
Referenced by SendData(), CTL_CursorCmdExpl::UpdateBlob(), and CTL_CmdBase::x_SendData().
|
private |
Definition at line 1230 of file connection.cpp.
References _ASSERT, CHECK_DRIVER_ERROR, CDB_BlobDescriptor::ColumnName(), CTL_BLOB_DESCRIPTOR_TYPE_CURSOR, CDB_BlobDescriptor::DescriptorType(), CDB_BlobDescriptor::eBinary, eBlobType_Text, eBulkEnc_RawBytes, eBulkEnc_RawUCS2, eDB_Text, eDB_VarCharMax, CDB_Object::GetBlobType(), CDB_BlobDescriptor::GetColumnType(), CDB_Object::GetType(), impl::GetValidUTF8Len(), CTL_CursorBlobDescriptor::IsValid(), l(), LangCmd(), len, n, CDB_Stream::Read(), result, CDB_BlobDescriptor::SearchConditions(), CDB_String::SetBulkInsertionEnc(), ncbi::grid::netcache::search::fields::size, and CDB_BlobDescriptor::TableName().
Referenced by x_SendData().
|
private |
Definition at line 865 of file connection.cpp.
References impl::binary_to_hex_string(), buffer, CDB_BlobDescriptor::ColumnName(), CS_TP_SIZE, CTL_BLOB_DESCRIPTOR_TYPE_MAGNUM, I_BlobDescriptor::DescriptorType(), impl::fB2H_NoFinalNul, impl::fB2H_NoPrefix, n, _cs_iodesc::name, _cs_iodesc::namelen, NULL, CDB_BlobDescriptor::SearchConditions(), impl::CConnection::SetExtraMsg(), CDB_BlobDescriptor::TableName(), _cs_iodesc::textptr, and _cs_iodesc::textptrlen.
Referenced by SendDataCmd(), and x_SendData().
|
protected |
Definition at line 954 of file connection.cpp.
References CTL_LangCmd, and impl::CConnection::SetExtraMsg().
|
friend |
Definition at line 564 of file interfaces.hpp.
|
friend |
Definition at line 385 of file interfaces.hpp.
Referenced by BCPIn().
|
friend |
Definition at line 379 of file interfaces.hpp.
|
friend |
Definition at line 380 of file interfaces.hpp.
|
friend |
Definition at line 386 of file interfaces.hpp.
Referenced by Cursor().
|
friend |
Definition at line 387 of file interfaces.hpp.
Referenced by Cursor().
|
friend |
Definition at line 388 of file interfaces.hpp.
|
friend |
Definition at line 382 of file interfaces.hpp.
Referenced by LangCmd(), and xLangCmd().
|
friend |
Definition at line 381 of file interfaces.hpp.
|
friend |
Definition at line 389 of file interfaces.hpp.
Referenced by x_ProcessResultInternal().
|
friend |
Definition at line 383 of file interfaces.hpp.
Referenced by RPC().
|
friend |
Definition at line 384 of file interfaces.hpp.
Referenced by SendDataCmd().
|
friend |
Definition at line 377 of file interfaces.hpp.
|
friend |
Definition at line 376 of file interfaces.hpp.
|
friend |
Definition at line 378 of file interfaces.hpp.
|
private |
Definition at line 531 of file interfaces.hpp.
Referenced by x_SendData(), CTL_CmdBase::~CTL_CmdBase(), and ~CTL_Connection().
|
private |
Definition at line 537 of file interfaces.hpp.
|
private |
Definition at line 535 of file interfaces.hpp.
Referenced by CancelFinished(), and PrepareToCancel().
|
private |
Definition at line 538 of file interfaces.hpp.
|
private |
Definition at line 536 of file interfaces.hpp.
Referenced by CTL_Cmd::MarkEndOfReply(), and CTL_LRCmd::x_Cancel().
|
private |
Definition at line 530 of file interfaces.hpp.
Referenced by GetBLKVersion().
|
private |
Definition at line 532 of file interfaces.hpp.
Referenced by Close(), CTL_Connection(), IsAlive(), and Refresh().
|
private |
Definition at line 533 of file interfaces.hpp.
Referenced by CTL_Cmd::AssignCmdParam(), CTL_Connection(), and CTL_BCPInCmd::x_AssignParams().
|
private |
Definition at line 534 of file interfaces.hpp.
Referenced by x_LoadTextPtrProcs().