LibreOffice Module connectivity (master) 1
|
helper class for implementing XWarningsSupplier, which mixes own warnings with warnings obtained from an external instance More...
#include <warningscontainer.hxx>
Public Member Functions | |
WarningsContainer () | |
WarningsContainer (css::uno::Reference< css::sdbc::XWarningsSupplier > _xExternalWarnings) | |
void | setExternalWarnings (const css::uno::Reference< css::sdbc::XWarningsSupplier > &_rxExternalWarnings) |
void | appendWarning (const OUString &_rWarning, const char *_pAsciiSQLState, const css::uno::Reference< css::uno::XInterface > &_rxContext) |
appends an SQLWarning instance to the chain More... | |
void | appendWarning (const css::sdbc::SQLException &_rWarning) |
void | appendWarning (const css::sdbc::SQLWarning &_rWarning) |
void | appendWarning (const css::sdb::SQLContext &_rContext) |
css::uno::Any | getWarnings () const |
void | clearWarnings () |
Private Attributes | |
css::uno::Reference< css::sdbc::XWarningsSupplier > | m_xExternalWarnings |
css::uno::Any | m_aOwnWarnings |
helper class for implementing XWarningsSupplier, which mixes own warnings with warnings obtained from an external instance
Definition at line 40 of file warningscontainer.hxx.
|
inline |
Definition at line 47 of file warningscontainer.hxx.
|
inline |
Definition at line 48 of file warningscontainer.hxx.
void dbtools::WarningsContainer::appendWarning | ( | const css::sdb::SQLContext & | _rContext | ) |
void dbtools::WarningsContainer::appendWarning | ( | const css::sdbc::SQLException & | _rWarning | ) |
Definition at line 62 of file warningscontainer.cxx.
References Any, dbtools::lcl_concatWarnings(), and m_aOwnWarnings.
void dbtools::WarningsContainer::appendWarning | ( | const css::sdbc::SQLWarning & | _rWarning | ) |
void dbtools::WarningsContainer::appendWarning | ( | const OUString & | _rWarning, |
const char * | _pAsciiSQLState, | ||
const css::uno::Reference< css::uno::XInterface > & | _rxContext | ||
) |
appends an SQLWarning instance to the chain
_rWarning | the warning message |
_pAsciiSQLState | the SQLState of the warning |
_rxContext | the context of the warning |
Referenced by connectivity::evoab::OEvoabResultSet::construct().
void dbtools::WarningsContainer::clearWarnings | ( | ) |
Definition at line 93 of file warningscontainer.cxx.
References m_aOwnWarnings, and m_xExternalWarnings.
Referenced by connectivity::evoab::OEvoabConnection::clearWarnings(), and connectivity::evoab::OEvoabResultSet::clearWarnings().
Any dbtools::WarningsContainer::getWarnings | ( | ) | const |
Definition at line 80 of file warningscontainer.cxx.
References Any, dbtools::lcl_concatWarnings(), m_aOwnWarnings, and m_xExternalWarnings.
Referenced by connectivity::evoab::OEvoabConnection::getWarnings(), and connectivity::evoab::OEvoabResultSet::getWarnings().
|
inline |
Definition at line 51 of file warningscontainer.hxx.
|
private |
Definition at line 44 of file warningscontainer.hxx.
Referenced by appendWarning(), clearWarnings(), and getWarnings().
|
private |
Definition at line 43 of file warningscontainer.hxx.
Referenced by clearWarnings(), and getWarnings().