LibreOffice Module connectivity (master) 1
Public Member Functions | Private Attributes | List of all members
dbtools::WarningsContainer Class Reference

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
 

Detailed Description

helper class for implementing XWarningsSupplier, which mixes own warnings with warnings obtained from an external instance

Definition at line 40 of file warningscontainer.hxx.

Constructor & Destructor Documentation

◆ WarningsContainer() [1/2]

dbtools::WarningsContainer::WarningsContainer ( )
inline

Definition at line 47 of file warningscontainer.hxx.

◆ WarningsContainer() [2/2]

dbtools::WarningsContainer::WarningsContainer ( css::uno::Reference< css::sdbc::XWarningsSupplier >  _xExternalWarnings)
inline

Definition at line 48 of file warningscontainer.hxx.

Member Function Documentation

◆ appendWarning() [1/4]

void dbtools::WarningsContainer::appendWarning ( const css::sdb::SQLContext &  _rContext)

◆ appendWarning() [2/4]

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.

◆ appendWarning() [3/4]

void dbtools::WarningsContainer::appendWarning ( const css::sdbc::SQLWarning &  _rWarning)

◆ appendWarning() [4/4]

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

Parameters
_rWarningthe warning message
_pAsciiSQLStatethe SQLState of the warning
_rxContextthe context of the warning

Referenced by connectivity::evoab::OEvoabResultSet::construct().

◆ clearWarnings()

void dbtools::WarningsContainer::clearWarnings ( )

◆ getWarnings()

Any dbtools::WarningsContainer::getWarnings ( ) const

◆ setExternalWarnings()

void dbtools::WarningsContainer::setExternalWarnings ( const css::uno::Reference< css::sdbc::XWarningsSupplier > &  _rxExternalWarnings)
inline

Definition at line 51 of file warningscontainer.hxx.

Member Data Documentation

◆ m_aOwnWarnings

css::uno::Any dbtools::WarningsContainer::m_aOwnWarnings
private

Definition at line 44 of file warningscontainer.hxx.

Referenced by appendWarning(), clearWarnings(), and getWarnings().

◆ m_xExternalWarnings

css::uno::Reference< css::sdbc::XWarningsSupplier > dbtools::WarningsContainer::m_xExternalWarnings
private

Definition at line 43 of file warningscontainer.hxx.

Referenced by clearWarnings(), and getWarnings().


The documentation for this class was generated from the following files: