LibreOffice Module connectivity (master) 1
|
a class which is able to compose queries (SELECT statements) from a command and a command type More...
#include <statementcomposer.hxx>
Public Member Functions | |
StatementComposer (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const OUString &_rCommand, const sal_Int32 _nCommandType, const bool _bEscapeProcessing) | |
constructs an instance More... | |
~StatementComposer () | |
void | setDisposeComposer (bool _bDoDispose) |
controls whether or not the instance disposes its XSingleSelectQueryComposer upon destruction More... | |
void | setFilter (const OUString &_rFilter) |
void | setHavingClause (const OUString &_rHavingClause) |
void | setOrder (const OUString &_rOrder) |
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > const & | getComposer () |
returns the composer which has been fed with the current settings More... | |
OUString | getQuery () |
returns the composer statement More... | |
Private Member Functions | |
StatementComposer (const StatementComposer &)=delete | |
StatementComposer & | operator= (const StatementComposer &)=delete |
StatementComposer ()=delete | |
Private Attributes | |
::std::unique_ptr< StatementComposer_Data > | m_pData |
a class which is able to compose queries (SELECT statements) from a command and a command type
Definition at line 42 of file statementcomposer.hxx.
dbtools::StatementComposer::StatementComposer | ( | const css::uno::Reference< css::sdbc::XConnection > & | _rxConnection, |
const OUString & | _rCommand, | ||
const sal_Int32 | _nCommandType, | ||
const bool | _bEscapeProcessing | ||
) |
constructs an instance
_rxConnection | the connection to work with. Must not be <NULL>. |
dbtools::StatementComposer::~StatementComposer | ( | ) |
Definition at line 247 of file statementcomposer.cxx.
References m_pData.
|
privatedelete |
|
privatedelete |
Reference< XSingleSelectQueryComposer > const & dbtools::StatementComposer::getComposer | ( | ) |
returns the composer which has been fed with the current settings
css::sdbc::SQLException | if such an exception occurs while creating the composer |
Definition at line 280 of file statementcomposer.cxx.
References m_pData.
Referenced by dbtools::getComposedRowSetStatement().
OUString dbtools::StatementComposer::getQuery | ( | ) |
returns the composer statement
Effectively, this is equivalent to calling getComposer, and asking the composer for its Query attribute.
css::sdbc::SQLException | if such an exception occurs while creating the composer |
Definition at line 287 of file statementcomposer.cxx.
References m_pData.
Referenced by dbtools::getComposedRowSetStatement().
|
privatedelete |
void dbtools::StatementComposer::setDisposeComposer | ( | bool | _bDoDispose | ) |
controls whether or not the instance disposes its XSingleSelectQueryComposer upon destruction
Unless you explicitly call this method with the parameter being <TRUE>, the XSingleSelectQueryComposer will be disposed when the StatementComposer instance is destroyed.
Definition at line 253 of file statementcomposer.cxx.
References m_pData.
Referenced by dbtools::getComposedRowSetStatement().
void dbtools::StatementComposer::setFilter | ( | const OUString & | _rFilter | ) |
Definition at line 259 of file statementcomposer.cxx.
References m_pData.
Referenced by dbtools::getComposedRowSetStatement().
void dbtools::StatementComposer::setHavingClause | ( | const OUString & | _rHavingClause | ) |
Definition at line 266 of file statementcomposer.cxx.
References m_pData.
Referenced by dbtools::getComposedRowSetStatement().
void dbtools::StatementComposer::setOrder | ( | const OUString & | _rOrder | ) |
Definition at line 273 of file statementcomposer.cxx.
References m_pData.
Referenced by dbtools::getComposedRowSetStatement().
|
private |
Definition at line 44 of file statementcomposer.hxx.
Referenced by getComposer(), getQuery(), setDisposeComposer(), setFilter(), setHavingClause(), setOrder(), and ~StatementComposer().