NCBI C++ ToolKit
|
Search Toolkit Book for CTL_SendDataCmd
#include <dbapi/driver/ctlib/interfaces.hpp>
Protected Member Functions | |
CTL_SendDataCmd (CTL_Connection &conn, I_BlobDescriptor &descr_in, size_t nof_bytes, bool log_it, bool dump_results) | |
virtual | ~CTL_SendDataCmd (void) |
void | Close (void) |
virtual bool | Cancel (void) |
Cancel the command execution. More... | |
virtual size_t | SendChunk (const void *chunk_ptr, size_t nof_bytes) |
Send chunk of data to the server. More... | |
virtual CDB_Result * | Result (void) |
Get result set. More... | |
virtual bool | HasMoreResults (void) const |
virtual int | RowCount (void) const |
Get the number of rows affected by the command Special case: negative on error or if there is no way that this command could ever affect any rows (like PRINT). More... | |
Protected Member Functions inherited from impl::CSendDataCmd | |
void | DumpResults (void) |
Dump the results of the command if result processor is installed for this connection, it will be called for each result set. More... | |
void | DetachSendDataIntf (void) |
void | SetBytes2Go (size_t value) |
Protected Member Functions inherited from impl::CCmdBase | |
void | SetWasSent (bool flag=true) |
impl::CConnection & | GetConnImpl (void) const |
Private Attributes | |
CDB_BlobDescriptor::ETDescriptorType | m_DescrType |
bool | m_DumpResults |
bool | m_UseUpdateWrite |
Private Attributes inherited from CTL_CmdBase | |
int | m_RowCount |
CRef< TDbgInfo > | m_DbgInfo |
Friends | |
class | CTL_Connection |
Definition at line 1079 of file interfaces.hpp.
|
protected |
Definition at line 1729 of file connection.cpp.
References _ASSERT, CTL_CmdBase::Check(), CHECK_DRIVER_ERROR, CDB_BlobDescriptor::ColumnName(), CS_CANCEL_ALL, CS_COLUMN_DATA, CS_FALSE, CS_IMAGE_TYPE, CS_SEND_DATA_CMD, CS_SET, CS_SUCCEED, CS_TEXT_TYPE, CS_TRUE, CS_UNUSED, ct_cancel(), ct_command(), ct_data_info(), CTL_BLOB_DESCRIPTOR_TYPE_CURSOR, CTL_BLOB_DESCRIPTOR_TYPE_MAGNUM, DATABASE_DRIVER_ERROR, DATABASE_DRIVER_ERROR_EX, _cs_iodesc::datatype, CDB_BlobDescriptor::DescriptorType(), I_BlobDescriptor::DescriptorType(), CDB_BlobDescriptor::eBinary, CDB_BlobDescriptor::eText, CDB_BlobDescriptor::GetColumnType(), CTL_CmdBase::GetConnection(), CTL_CmdBase::GetDbgInfo(), CTL_CursorBlobDescriptor::IsValid(), _cs_iodesc::log_on_update, CTL_BlobDescriptor::m_Context, CTL_BlobDescriptor::m_Desc, m_DescrType, m_UseUpdateWrite, NULL, result, CDB_BlobDescriptor::SearchConditions(), CDB_BlobDescriptor::TableName(), _cs_iodesc::textptrlen, _cs_iodesc::total_txtlen, CTL_Connection::x_GetNativeBlobDescriptor(), and CTL_Cmd::x_GetSybaseCmd().
|
protectedvirtual |
Definition at line 1962 of file connection.cpp.
References Cancel(), Close(), impl::CSendDataCmd::DetachSendDataIntf(), CTL_CmdBase::DropCmd(), NCBI_CATCH_ALL_X, and NCBI_CURRENT_FUNCTION.
|
protectedvirtual |
Cancel the command execution.
Reimplemented from CTL_LRCmd.
Definition at line 1941 of file connection.cpp.
References CTL_Connection::CancelFinished(), CTL_CmdBase::Check(), CS_CANCEL_ALL, ct_cancel(), impl::CSendDataCmd::GetBytes2Go(), CTL_CmdBase::GetConnection(), CTL_CmdBase::IsDead(), CTL_Connection::PrepareToCancel(), impl::CSendDataCmd::SetBytes2Go(), impl::CCmdBase::SetWasSent(), impl::CCmdBase::WasSent(), and CTL_Cmd::x_GetSybaseCmd().
Referenced by Close(), and ~CTL_SendDataCmd().
|
protected |
Definition at line 1978 of file connection.cpp.
References Cancel(), CTL_CmdBase::Check(), ct_cmd_drop(), impl::CSendDataCmd::DetachSendDataIntf(), impl::CBaseCmd::DumpResults(), NULL, CTL_Cmd::SetSybaseCmd(), and CTL_Cmd::x_GetSybaseCmd().
Referenced by ~CTL_SendDataCmd().
|
protectedvirtual |
Reimplemented from impl::CSendDataCmd.
Definition at line 2000 of file connection.cpp.
References impl::CCmdBase::WasSent().
|
protectedvirtual |
Get result set.
Reimplemented from impl::CSendDataCmd.
Definition at line 1994 of file connection.cpp.
References CTL_LRCmd::MakeResult().
|
protectedvirtual |
Get the number of rows affected by the command Special case: negative on error or if there is no way that this command could ever affect any rows (like PRINT).
Implements impl::CBaseCmd.
Definition at line 2006 of file connection.cpp.
References CTL_CmdBase::m_RowCount.
|
protectedvirtual |
Send chunk of data to the server.
Return number of bytes actually transferred to server.
Implements impl::CSendDataCmd.
Definition at line 1845 of file connection.cpp.
References _TROUBLE, CTL_Cmd::AssignCmdParam(), CTL_CmdBase::Check(), CHECK_DRIVER_ERROR, CTL_CmdBase::CheckIsDead(), CS_CANCEL_CURRENT, CS_END, CS_INPUTVALUE, CS_LANG_CMD, CS_SUCCEED, ct_cancel(), ct_command(), ct_send(), ct_send_data(), DATABASE_DRIVER_ERROR, impl::CBaseCmd::DumpResults(), CDB_BlobDescriptor::eBinary, CTL_CmdBase::EnsureActiveStatus(), impl::CSendDataCmd::GetBytes2Go(), CTL_CmdBase::GetDbgInfo(), impl::GetValidUTF8Len(), l(), m_DescrType, m_DumpResults, m_UseUpdateWrite, n, impl::CSendDataCmd::SetBytes2Go(), impl::CCmdBase::SetWasSent(), _cs_datafmt::status, and CTL_Cmd::x_GetSybaseCmd().
|
friend |
Definition at line 1081 of file interfaces.hpp.
|
private |
Definition at line 1101 of file interfaces.hpp.
Referenced by CTL_SendDataCmd(), and SendChunk().
|
private |
Definition at line 1106 of file interfaces.hpp.
Referenced by SendChunk().
|
private |
Definition at line 1107 of file interfaces.hpp.
Referenced by CTL_SendDataCmd(), and SendChunk().