#include <Request.hpp>
Inheritance diagram for CarobNS::Request:

Public Member Functions | |
| void | sendToStream (const DriverSocket &out) const throw (SocketIOException, UnexpectedException) |
| Serializes the request on the output stream by sending only the needed parameters to reconstruct it on the controller. | |
| bool | isEscapeProcessing () const |
| Returns the escapeProcessing value. | |
| Request & | setEscapeProcessing (bool escapeProcessingPrm) |
| Sets the escapeProcessing value. | |
| std::wstring | getSqlQueryOrTemplate () const |
| Returns the sqlQuery value. | |
| Request & | setParameters (std::wstring preparedStatementParametersPrm) |
| Sets the sqlTemplate. | |
| void | setSqlQueryOrTemplate (std::wstring sqlQueryOrTemplatePrm) |
| Sets the sqlQueryOrTemplate value. | |
| operator std::wstring & () | |
| Cast to wstring operator to ease printing (for debug/traces). | |
| std::wstring | getPreparedStatementParameters () const |
| Returns the preparedStatementParameters value. | |
| bool | isReadOnly () |
| Returns the isReadOnly value. | |
| void | setIsReadOnly (bool isReadOnlyPrm) |
| Sets the isReadOnly value. | |
| int64_t | getId () const |
| Returns the id value. | |
| void | setId (int64_t idPrm) |
| Sets the id value. | |
| bool | isAutoCommit () const |
| Returns the isAutoCommit value. | |
| void | setIsAutoCommit (bool isAutoCommitPrm) |
| Sets the isAutoCommit value. | |
| int | getTimeoutInSeconds () const |
| Returns the timeoutInSeconds value. | |
| Request & | setTimeoutInSeconds (int timeoutInSecondsPrm) |
| Sets the timeoutInSeconds value. | |
Protected Member Functions | |
| Request (std::wstring sql) | |
Creates a new Request object. | |
Friends | |
| class | Statement |
| class | ParameterStatement |
It basically carries the SQL statement and the SQL template if this is a ParameterStatement.
| CarobNS::Request::Request | ( | std::wstring | sql | ) | [inline, protected] |
Creates a new Request object.
Protected to ensure no one but friend classes can use us
| sql | the SQL statement |
| void CarobNS::Request::sendToStream | ( | const DriverSocket & | out | ) | const throw (SocketIOException, UnexpectedException) |
Serializes the request on the output stream by sending only the needed parameters to reconstruct it on the controller.
| out | destination socket to controller |
| SocketIOException | an error occurs on the stream |
Reimplemented in CarobNS::RequestWithResultSetParameters.
| bool CarobNS::Request::isEscapeProcessing | ( | ) | const [inline] |
Returns the escapeProcessing value.
| Request& CarobNS::Request::setEscapeProcessing | ( | bool | escapeProcessingPrm | ) | [inline] |
Sets the escapeProcessing value.
| escapeProcessingPrm | escapeProcessing to set. |
| std::wstring CarobNS::Request::getSqlQueryOrTemplate | ( | ) | const [inline] |
Returns the sqlQuery value.
| CarobNS::Request::operator std::wstring & | ( | ) | [inline] |
Cast to wstring operator to ease printing (for debug/traces).
| std::wstring CarobNS::Request::getPreparedStatementParameters | ( | ) | const [inline] |
Returns the preparedStatementParameters value.
| bool CarobNS::Request::isReadOnly | ( | ) | [inline] |
Returns the isReadOnly value.
| void CarobNS::Request::setIsReadOnly | ( | bool | isReadOnlyPrm | ) | [inline] |
Sets the isReadOnly value.
| isReadOnlyPrm | value to set. |
| int64_t CarobNS::Request::getId | ( | ) | const [inline] |
Returns the id value.
| void CarobNS::Request::setId | ( | int64_t | idPrm | ) | [inline] |
Sets the id value.
| idPrm | to set |
| bool CarobNS::Request::isAutoCommit | ( | ) | const [inline] |
Returns the isAutoCommit value.
| void CarobNS::Request::setIsAutoCommit | ( | bool | isAutoCommitPrm | ) | [inline] |
Sets the isAutoCommit value.
| isAutoCommitPrm | The isAutoCommit to set. |
| int CarobNS::Request::getTimeoutInSeconds | ( | ) | const [inline] |
Returns the timeoutInSeconds value.
| Request& CarobNS::Request::setTimeoutInSeconds | ( | int | timeoutInSecondsPrm | ) | [inline] |
Sets the timeoutInSeconds value.
| timeoutInSecondsPrm | The timeoutInSeconds to set. |
1.5.0