LibreOffice Module dbaccess (master) 1
|
#include <querydescriptor.hxx>
Public Member Functions | |
OQueryDescriptor_Base (::osl::Mutex &_rMutex,::cppu::OWeakObject &_rMySelf) | |
OQueryDescriptor_Base (const OQueryDescriptor_Base &_rSource,::cppu::OWeakObject &_rMySelf) | |
constructs the object with a UNO QueryDescriptor. More... | |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getColumns () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
virtual rtl::Reference< OColumn > | createColumn (const OUString &_rName) const =0 |
creates an OColumn object which should represent the column with a given name More... | |
virtual css::uno::Reference< css::beans::XPropertySet > | createColumnDescriptor ()=0 |
creates a column descriptor object. More... | |
virtual void | columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor)=0 |
notifies that a column, created from a column descriptor, has been appended More... | |
virtual void | columnDropped (const OUString &_sName)=0 |
notifies that a column with a given name has been dropped More... | |
virtual void | refreshColumns ()=0 |
Protected Member Functions | |
virtual | ~OQueryDescriptor_Base () |
void | setColumnsOutOfDate (bool _bOutOfDate=true) |
sal_Int32 | getColumnCount () const |
void | clearColumns () |
void | implAppendColumn (const OUString &_rName, OColumn *_pColumn) |
virtual rtl::Reference< OColumn > | createColumn (const OUString &_rName) const override |
creates an OColumn object which should represent the column with a given name More... | |
virtual css::uno::Reference< css::beans::XPropertySet > | createColumnDescriptor () override |
creates a column descriptor object. More... | |
virtual void | columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor) override |
notifies that a column, created from a column descriptor, has been appended More... | |
virtual void | columnDropped (const OUString &_sName) override |
notifies that a column with a given name has been dropped More... | |
virtual void | rebuildColumns () |
rebuild our columns set More... | |
void | disposeColumns () |
virtual void | refreshColumns () override |
Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
~ImplHelper2 () SAL_NOEXCEPT | |
Protected Member Functions inherited from dbaccess::OCommandBase | |
OCommandBase () | |
Protected Member Functions inherited from dbaccess::IColumnFactory | |
~IColumnFactory () | |
Protected Member Functions inherited from connectivity::sdbcx::IRefreshableColumns | |
~IRefreshableColumns () | |
Protected Attributes | |
std::unique_ptr< OColumns > | m_pColumns |
OUString | m_sElementName |
Private Attributes | |
bool | m_bColumnsOutOfDate: 1 |
::osl::Mutex & | m_rMutex |
Additional Inherited Members | |
Public Attributes inherited from dbaccess::OCommandBase | |
css::uno::Sequence< css::beans::PropertyValue > | m_aLayoutInformation |
OUString | m_sCommand |
bool | m_bEscapeProcessing |
OUString | m_sUpdateTableName |
OUString | m_sUpdateSchemaName |
OUString | m_sUpdateCatalogName |
Definition at line 44 of file querydescriptor.hxx.
|
protectedvirtual |
Definition at line 141 of file querydescriptor.cxx.
References m_pColumns.
dbaccess::OQueryDescriptor_Base::OQueryDescriptor_Base | ( | ::osl::Mutex & | _rMutex, |
::cppu::OWeakObject & | _rMySelf | ||
) |
Definition at line 120 of file querydescriptor.cxx.
References m_pColumns, and m_rMutex.
dbaccess::OQueryDescriptor_Base::OQueryDescriptor_Base | ( | const OQueryDescriptor_Base & | _rSource, |
::cppu::OWeakObject & | _rMySelf | ||
) |
constructs the object with a UNO QueryDescriptor.
If you use this ctor, the resulting object won't have any column information (the column container will be empty)
Definition at line 127 of file querydescriptor.cxx.
References dbaccess::OCommandBase::m_aLayoutInformation, dbaccess::OCommandBase::m_bEscapeProcessing, m_pColumns, m_rMutex, dbaccess::OCommandBase::m_sCommand, dbaccess::OCommandBase::m_sUpdateCatalogName, dbaccess::OCommandBase::m_sUpdateSchemaName, and dbaccess::OCommandBase::m_sUpdateTableName.
|
protected |
Definition at line 159 of file querydescriptor.cxx.
References m_pColumns, and setColumnsOutOfDate().
Referenced by getColumns(), and refreshColumns().
|
overrideprotectedvirtual |
notifies that a column, created from a column descriptor, has been appended
Implements dbaccess::IColumnFactory.
Definition at line 216 of file querydescriptor.cxx.
|
overrideprotectedvirtual |
notifies that a column with a given name has been dropped
Implements dbaccess::IColumnFactory.
Definition at line 221 of file querydescriptor.cxx.
|
overrideprotectedvirtual |
creates an OColumn object which should represent the column with a given name
Implements dbaccess::IColumnFactory.
Reimplemented in dbaccess::OQuery.
Definition at line 245 of file querydescriptor.cxx.
|
overrideprotectedvirtual |
creates a column descriptor object.
A column descriptor object is used to append new columns to the collection. If such an append actually happened, columnAppended is called afterwards.
Implements dbaccess::IColumnFactory.
Definition at line 226 of file querydescriptor.cxx.
|
protected |
Definition at line 211 of file querydescriptor.cxx.
References m_pColumns.
Referenced by dbaccess::OQuery::disposing().
|
inlineprotected |
Definition at line 61 of file querydescriptor.hxx.
References m_pColumns.
|
overridevirtual |
Definition at line 166 of file querydescriptor.cxx.
References clearColumns(), Exception, m_bColumnsOutOfDate, m_pColumns, m_rMutex, rebuildColumns(), and setColumnsOutOfDate().
|
overridevirtual |
Definition at line 196 of file querydescriptor.cxx.
|
overridevirtual |
Definition at line 206 of file querydescriptor.cxx.
References SERVICE_SDB_DATASETTINGS, and SERVICE_SDB_QUERYDESCRIPTOR.
|
protected |
Definition at line 154 of file querydescriptor.cxx.
References m_pColumns.
|
protectedvirtual |
rebuild our columns set
clearColumns has already been called before, do NOT call it, again
Reimplemented in dbaccess::OQuery.
Definition at line 232 of file querydescriptor.cxx.
Referenced by getColumns(), and refreshColumns().
|
overrideprotectedvirtual |
Implements connectivity::sdbcx::IRefreshableColumns.
Definition at line 237 of file querydescriptor.cxx.
References clearColumns(), m_rMutex, and rebuildColumns().
|
protected |
Definition at line 147 of file querydescriptor.cxx.
References m_bColumnsOutOfDate, and m_pColumns.
Referenced by clearColumns(), getColumns(), and dbaccess::OQuery::setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Definition at line 201 of file querydescriptor.cxx.
References cppu::supportsService().
|
private |
Definition at line 51 of file querydescriptor.hxx.
Referenced by getColumns(), and setColumnsOutOfDate().
|
protected |
Definition at line 55 of file querydescriptor.hxx.
Referenced by clearColumns(), disposeColumns(), getColumnCount(), getColumns(), implAppendColumn(), OQueryDescriptor_Base(), setColumnsOutOfDate(), and ~OQueryDescriptor_Base().
|
private |
Definition at line 52 of file querydescriptor.hxx.
Referenced by getColumns(), OQueryDescriptor_Base(), and refreshColumns().
|
protected |
Definition at line 56 of file querydescriptor.hxx.
Referenced by dbaccess::OQuery::registerProperties().