NCBI C++ ToolKit
|
Search Toolkit Book for CTL_CmdBase
#include <dbapi/driver/ctlib/interfaces.hpp>
Classes | |
class | CTempVarChar |
Public Member Functions | |
CTL_CmdBase (CTL_Connection &conn, const string &query) | |
CTL_CmdBase (CTL_Connection &conn, const string &cursor_name, const string &query) | |
virtual | ~CTL_CmdBase (void) |
Public Member Functions inherited from impl::CBaseCmd | |
CBaseCmd (impl::CConnection &conn, const string &query) | |
CBaseCmd (impl::CConnection &conn, const string &cursor_name, const string &query) | |
virtual | ~CBaseCmd (void) |
virtual bool | Send (void) |
Send command to the server. More... | |
virtual bool | Cancel (void) |
Cancel the command execution. More... | |
bool | WasCanceled (void) const |
virtual CDB_Result * | Result (void) |
Get result set. More... | |
virtual bool | HasMoreResults (void) const |
virtual bool | HasFailed (void) const |
virtual int | RowCount (void) const =0 |
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... | |
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... | |
virtual CDBParams & | GetBindParams (void) |
Binding. More... | |
virtual CDBParams & | GetDefineParams (void) |
Get meta-information about defined parameters. More... | |
const CDBParams * | GetLastParams (void) const |
bool | More (const string &query_text) |
Add more text to the language command. More... | |
const string & | GetQuery (void) const |
string | GetCmdName (void) const |
virtual void | SetHints (CTempString hints) |
Set hints by one call. More... | |
virtual void | AddHint (CDB_BCPInCmd::EBCP_Hints hint, unsigned int value) |
Add hint with value. More... | |
virtual void | AddOrderHint (CTempString columns) |
Add "ORDER" hint. More... | |
virtual bool | CommitBCPTrans (void) |
Complete batch – to store all rows transferred by far in this batch into the table. More... | |
virtual bool | EndBCP (void) |
Complete the BCP and store all rows transferred in last batch into the table. More... | |
unsigned int | GetRowsInCurrentBatch (void) const |
Public Member Functions inherited from impl::CCmdBase | |
CCmdBase (impl::CConnection &conn) | |
virtual | ~CCmdBase () |
bool | WasSent (void) const |
Public Member Functions inherited from impl::CCommand | |
virtual | ~CCommand (void) |
void | Release (void) |
Protected Types | |
enum | ECancelType { eAsyncCancel = CS_CANCEL_ATTN , eSyncCancel = CS_CANCEL_ALL } |
typedef CTL_Connection::TDbgInfo | TDbgInfo |
Protected Attributes | |
int | m_RowCount |
CRef< TDbgInfo > | m_DbgInfo |
Private Attributes | |
bool | m_IsActive |
bool | m_TimedOut |
ERetriable | m_Retriable |
Friends | |
class | CTL_Connection |
Additional Inherited Members | |
Static Public Member Functions inherited from impl::CCommand | |
static CDB_Result * | Create_Result (CResult &result) |
Definition at line 614 of file interfaces.hpp.
|
protected |
Definition at line 711 of file interfaces.hpp.
|
protected |
Enumerator | |
---|---|
eAsyncCancel | |
eSyncCancel |
Definition at line 662 of file interfaces.hpp.
CTL_CmdBase::CTL_CmdBase | ( | CTL_Connection & | conn, |
const string & | query | ||
) |
Definition at line 62 of file lang_cmd.cpp.
References conn.
CTL_CmdBase::CTL_CmdBase | ( | CTL_Connection & | conn, |
const string & | cursor_name, | ||
const string & | query | ||
) |
Definition at line 77 of file lang_cmd.cpp.
References conn.
|
virtual |
Definition at line 93 of file lang_cmd.cpp.
References GetConnection(), CTL_Connection::m_ActiveCmd, m_IsActive, and NULL.
|
protected |
Definition at line 102 of file lang_cmd.cpp.
References CTL_Connection::Check(), GetConnection(), GetCTLExceptionStorage(), GetDbgInfo(), GetRetriable(), SetRetriable(), and SetTimedOut().
Referenced by CTL_Cmd::AssignCmdParam(), CTL_SendDataCmd::Cancel(), CTL_BCPInCmd::CheckSentSFB(), CTL_BCPInCmd::CheckSF(), CTL_LRCmd::CheckSFB(), CTL_CursorCmd::CheckSFB(), CTL_BCPInCmd::CheckSFB(), CTL_Cmd::CheckSFB_Internal(), CTL_CursorCmd::CheckSFBCP(), CTL_SendDataCmd::Close(), CTL_CursorCmd::CloseForever(), CTL_BCPInCmd::CommitBCPTrans(), CTL_SendDataCmd::CTL_SendDataCmd(), CTL_Cmd::DropSybaseCmd(), CTL_LRCmd::MakeResultInternal(), CTL_CursorCmd::OpenCursor(), CTL_CursorCmd::ProcessResults(), CTL_BCPInCmd::Send(), CTL_SendDataCmd::SendChunk(), CTL_LRCmd::SendInternal(), CTL_BCPInCmd::SetHints(), CTL_BCPInCmd::x_AssignParams(), CTL_BCPInCmd::x_BlkSetHints(), CTL_LRCmd::x_Cancel(), CTL_BCPInCmd::~CTL_BCPInCmd(), and CTL_Cmd::~CTL_Cmd().
|
inlineprotected |
Definition at line 693 of file interfaces.hpp.
References eDiag_Error, GetDbgInfo, and NCBI_DATABASE_THROW_ANNOTATED.
Referenced by CTL_BCPInCmd::CommitBCPTrans(), CTL_CursorCmd::Delete(), CTL_BCPInCmd::EndBCP(), CTL_CursorCmd::OpenCursor(), CTL_BCPInCmd::Send(), CTL_SendDataCmd::SendChunk(), CTL_CursorCmd::Update(), CTL_CursorCmd::x_GetBlobDescriptor(), and CTL_CursorCmdExpl::x_GetBlobDescriptor().
|
inlineprotected |
Definition at line 1505 of file interfaces.hpp.
References GetConnection(), and CTL_Connection::SendDataCmd().
Referenced by CTL_CursorCmd::SendDataCmd().
|
inlineprotected |
Definition at line 1491 of file interfaces.hpp.
References cmd, impl::CConnection::DropCmd(), and GetConnection().
Referenced by CTL_BCPInCmd::~CTL_BCPInCmd(), CTL_CursorCmd::~CTL_CursorCmd(), CTL_LangCmd::~CTL_LangCmd(), CTL_RPCCmd::~CTL_RPCCmd(), and CTL_SendDataCmd::~CTL_SendDataCmd().
|
protected |
Definition at line 114 of file lang_cmd.cpp.
References conn, GetConnection(), and m_IsActive.
Referenced by CTL_LangCmd::Send(), and CTL_SendDataCmd::SendChunk().
|
inlineprotected |
Definition at line 657 of file interfaces.hpp.
|
inlineprotected |
Definition at line 1477 of file interfaces.hpp.
References impl::CCmdBase::GetConnImpl().
Referenced by CTL_Cmd::AssignCmdParam(), CTL_BCPInCmd::Cancel(), CTL_SendDataCmd::Cancel(), CTL_LRCmd::Cancel(), Check(), CTL_Cmd::CheckSFB_Internal(), CTL_CursorCmdExpl::CloseCursor(), ConnSendDataCmd(), CTL_BCPInCmd::CTL_BCPInCmd(), CTL_SendDataCmd::CTL_SendDataCmd(), CTL_CursorCmdExpl::Delete(), DropCmd(), EnsureActiveStatus(), CTL_Cmd::MakeComputeResult(), CTL_Cmd::MakeCursorResult(), CTL_Cmd::MakeParamResult(), CTL_LRCmd::MakeResultInternal(), CTL_Cmd::MakeRowResult(), CTL_Cmd::MakeStatusResult(), CTL_Cmd::MarkEndOfReply(), CTL_CursorCmdExpl::OpenCursor(), CTL_Cmd::ProcessResultInternal(), CTL_LangCmd::Send(), CTL_RPCCmd::Send(), CTL_CursorCmdExpl::SendDataCmd(), CTL_LRCmd::SendInternal(), CTL_CursorCmdExpl::Update(), CTL_CursorCmdExpl::UpdateBlob(), CTL_CursorCmdExpl::x_AssignParams(), CTL_BCPInCmd::x_AssignParams(), CTL_LRCmd::x_Cancel(), CTL_CursorCmd::x_GetBlobDescriptor(), CTL_Cmd::x_Init(), CTL_BCPInCmd::x_IsUnicodeClientAPI(), x_SendData(), ~CTL_CmdBase(), and CTL_CursorCmdExpl::~CTL_CursorCmdExpl().
|
inlineprotected |
Definition at line 1484 of file interfaces.hpp.
References impl::CCmdBase::GetConnImpl().
Definition at line 712 of file interfaces.hpp.
Referenced by CTL_BCPInCmd::AddHint(), Check(), CTL_CursorCmdExpl::CloseCursor(), CTL_BCPInCmd::CommitBCPTrans(), CTL_SendDataCmd::CTL_SendDataCmd(), CTL_CursorCmdExpl::Delete(), CTL_LRCmd::MakeResultInternal(), CTL_CursorCmd::OpenCursor(), CTL_CursorCmdExpl::OpenCursor(), CTL_LangCmd::Send(), CTL_RPCCmd::Send(), CTL_BCPInCmd::Send(), CTL_SendDataCmd::SendChunk(), CTL_LRCmd::SendInternal(), CTL_BCPInCmd::SetHints(), CTL_CursorCmdExpl::Update(), CTL_BCPInCmd::x_BlkSetHints(), CTL_LRCmd::x_Cancel(), and CTL_Cmd::x_Init().
Definition at line 680 of file interfaces.hpp.
|
inlineprotected |
Definition at line 728 of file interfaces.hpp.
Referenced by Check(), and CTL_LRCmd::MakeResultInternal().
|
inlineprotected |
Definition at line 718 of file interfaces.hpp.
Referenced by CTL_LRCmd::MakeResultInternal().
|
inlineprotected |
Definition at line 685 of file interfaces.hpp.
Referenced by CTL_BCPInCmd::Cancel(), CTL_SendDataCmd::Cancel(), CTL_CursorCmd::CloseCursor(), CTL_CursorCmd::CloseForever(), CTL_Cmd::DropSybaseCmd(), CTL_LRCmd::MakeResultInternal(), CTL_LRCmd::SendInternal(), CTL_LRCmd::x_Cancel(), CTL_BCPInCmd::~CTL_BCPInCmd(), and CTL_Cmd::~CTL_Cmd().
|
inlineprotected |
Definition at line 652 of file interfaces.hpp.
Definition at line 689 of file interfaces.hpp.
Referenced by CTL_LangCmd::Close(), and CTL_BCPInCmd::Close().
Definition at line 676 of file interfaces.hpp.
References info.
Referenced by CTL_BCPInCmd::CTL_BCPInCmd(), CTL_CursorCmd::CTL_CursorCmd(), CTL_CursorCmdExpl::CTL_CursorCmdExpl(), CTL_LangCmd::CTL_LangCmd(), and CTL_RPCCmd::CTL_RPCCmd().
Reimplemented from impl::CBaseCmd.
Definition at line 701 of file interfaces.hpp.
References eDiag_Error, GetDbgInfo, and NCBI_DATABASE_THROW_ANNOTATED.
Referenced by CTL_BCPInCmd::CheckSentSFB(), CTL_BCPInCmd::CheckSF(), CTL_LRCmd::CheckSFB(), CTL_CursorCmd::CheckSFB(), CTL_BCPInCmd::CheckSFB(), CTL_CursorCmd::CheckSFBCP(), CTL_BCPInCmd::CommitBCPTrans(), CTL_LRCmd::MakeResultInternal(), CTL_CursorCmd::OpenCursor(), CTL_CursorCmdExpl::OpenCursor(), CTL_CursorCmd::ProcessResults(), CTL_LangCmd::Send(), CTL_RPCCmd::Send(), CTL_BCPInCmd::Send(), and CTL_LRCmd::SendInternal().
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
Reimplemented in CTL_LRCmd.
Definition at line 668 of file interfaces.hpp.
|
inlineprotected |
Definition at line 1498 of file interfaces.hpp.
References GetConnection(), and CTL_Connection::x_SendData().
Referenced by CTL_CursorCmd::UpdateBlob().
|
friend |
Definition at line 616 of file interfaces.hpp.
Definition at line 742 of file interfaces.hpp.
|
private |
Definition at line 745 of file interfaces.hpp.
Referenced by EnsureActiveStatus(), CTL_Connection::x_SendData(), ~CTL_CmdBase(), and CTL_Connection::~CTL_Connection().
|
private |
Definition at line 750 of file interfaces.hpp.
|
protected |
Definition at line 741 of file interfaces.hpp.
Referenced by CTL_LRCmd::MakeResultInternal(), CTL_CursorCmd::OpenCursor(), CTL_LangCmd::RowCount(), CTL_RPCCmd::RowCount(), CTL_CursorCmd::RowCount(), CTL_CursorCmdExpl::RowCount(), and CTL_SendDataCmd::RowCount().
|
private |
Definition at line 749 of file interfaces.hpp.