LibreOffice Module dbaccess (master) 1
|
#include <datasourceconnector.hxx>
Public Member Functions | |
ODatasourceConnector (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, weld::Window *_pMessageParent) | |
ODatasourceConnector (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, weld::Window *_pMessageParent, OUString _sContextInformation) | |
bool | isValid () const |
returns <TRUE> if the object is able to create data source connections More... | |
css::uno::Reference< css::sdbc::XConnection > | connect (const OUString &_rDataSourceName, ::dbtools::SQLExceptionInfo *_pErrorInfo) const |
creates a connection to the data source, displays the possible error to the user, or returns it More... | |
css::uno::Reference< css::sdbc::XConnection > | connect (const css::uno::Reference< css::sdbc::XDataSource > &_xDataSource, ::dbtools::SQLExceptionInfo *_pErrorInfo) const |
creates a connection to the data source, displays the possible error to the user, or returns it More... | |
Private Attributes | |
weld::Window * | m_pErrorMessageParent |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
OUString | m_sContextInformation |
Definition at line 36 of file datasourceconnector.hxx.
dbaui::ODatasourceConnector::ODatasourceConnector | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rxContext, |
weld::Window * | _pMessageParent | ||
) |
dbaui::ODatasourceConnector::ODatasourceConnector | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rxContext, |
weld::Window * | _pMessageParent, | ||
OUString | _sContextInformation | ||
) |
css::uno::Reference< css::sdbc::XConnection > dbaui::ODatasourceConnector::connect | ( | const css::uno::Reference< css::sdbc::XDataSource > & | _xDataSource, |
::dbtools::SQLExceptionInfo * | _pErrorInfo | ||
) | const |
creates a connection to the data source, displays the possible error to the user, or returns it
Reference< XConnection > dbaui::ODatasourceConnector::connect | ( | const OUString & | _rDataSourceName, |
::dbtools::SQLExceptionInfo * | _pErrorInfo | ||
) | const |
creates a connection to the data source, displays the possible error to the user, or returns it
Definition at line 71 of file datasourceconnector.cxx.
References dbaui::getDataSourceByName(), and m_xContext.
Referenced by dbaui::OGenericUnoController::connect(), and dbaui::ODirectSQLDialog::createDialog().
|
inline |
returns <TRUE> if the object is able to create data source connections
Definition at line 55 of file datasourceconnector.hxx.
References m_xContext.
|
private |
Definition at line 38 of file datasourceconnector.hxx.
|
private |
Definition at line 41 of file datasourceconnector.hxx.
|
private |
Definition at line 40 of file datasourceconnector.hxx.
Referenced by isValid().