LibreOffice Module dbaccess (master) 1
|
#include <WCopyTable.hxx>
Public Member Functions | |
ObjectCopySource (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::beans::XPropertySet > &_rxObject) | |
virtual OUString | getQualifiedObjectName () const override |
retrieves the fully qualified name of the object to copy More... | |
virtual bool | isView () const override |
determines whether the object is a view More... | |
virtual void | copyUISettingsTo (const css::uno::Reference< css::beans::XPropertySet > &_rxObject) const override |
copies the UI settings of the object to the given target object. More... | |
virtual void | copyFilterAndSortingTo (const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::beans::XPropertySet > &_rxObject) const override |
copies the filter and sorting More... | |
virtual css::uno::Sequence< OUString > | getColumnNames () const override |
retrieves the column names of the to-be-copied object More... | |
virtual css::uno::Sequence< OUString > | getPrimaryKeyColumnNames () const override |
retrieves the names of the primary keys of the to-be-copied object More... | |
virtual OFieldDescription * | createFieldDescription (const OUString &_rColumnName) const override |
creates a OFieldDescription for the given column of the to-be-copied object More... | |
virtual OUString | getSelectStatement () const override |
returns the SELECT statement which can be used to retrieve the data of the to-be-copied object More... | |
virtual ::utl::SharedUNOComponent< css::sdbc::XPreparedStatement > | getPreparedSelectStatement () const override |
returns the prepared statement which can be used to retrieve the data of the to-be-copied object More... | |
Public Member Functions inherited from dbaui::ICopyTableSourceObject | |
virtual OUString | getQualifiedObjectName () const =0 |
retrieves the fully qualified name of the object to copy More... | |
virtual bool | isView () const =0 |
determines whether the object is a view More... | |
virtual void | copyUISettingsTo (const css::uno::Reference< css::beans::XPropertySet > &_rxObject) const =0 |
copies the UI settings of the object to the given target object. More... | |
virtual css::uno::Sequence< OUString > | getColumnNames () const =0 |
retrieves the column names of the to-be-copied object More... | |
virtual css::uno::Sequence< OUString > | getPrimaryKeyColumnNames () const =0 |
retrieves the names of the primary keys of the to-be-copied object More... | |
virtual OFieldDescription * | createFieldDescription (const OUString &_rColumnName) const =0 |
creates a OFieldDescription for the given column of the to-be-copied object More... | |
virtual OUString | getSelectStatement () const =0 |
returns the SELECT statement which can be used to retrieve the data of the to-be-copied object More... | |
virtual void | copyFilterAndSortingTo (const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::beans::XPropertySet > &_rxObject) const =0 |
copies the filter and sorting More... | |
virtual ::utl::SharedUNOComponent< css::sdbc::XPreparedStatement > | getPreparedSelectStatement () const =0 |
returns the prepared statement which can be used to retrieve the data of the to-be-copied object More... | |
virtual | ~ICopyTableSourceObject () |
Private Attributes | |
css::uno::Reference< css::sdbc::XConnection > | m_xConnection |
css::uno::Reference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
css::uno::Reference< css::beans::XPropertySet > | m_xObject |
css::uno::Reference< css::beans::XPropertySetInfo > | m_xObjectPSI |
css::uno::Reference< css::container::XNameAccess > | m_xObjectColumns |
Definition at line 140 of file WCopyTable.hxx.
ObjectCopySource::ObjectCopySource | ( | const css::uno::Reference< css::sdbc::XConnection > & | _rxConnection, |
const css::uno::Reference< css::beans::XPropertySet > & | _rxObject | ||
) |
Definition at line 95 of file WCopyTable.cxx.
|
overridevirtual |
copies the filter and sorting
Implements dbaui::ICopyTableSourceObject.
Definition at line 146 of file WCopyTable.cxx.
References Any, aProperties, Exception, m_xConnection, m_xObject, m_xObjectPSI, PROPERTY_APPLYFILTER(), PROPERTY_FILTER(), and PROPERTY_ORDER().
|
overridevirtual |
copies the UI settings of the object to the given target object.
Might be ignored by implementations which do not have Ui settings.
Implements dbaui::ICopyTableSourceObject.
Definition at line 134 of file WCopyTable.cxx.
References m_xObject, m_xObjectPSI, PROPERTY_FONT(), PROPERTY_ROW_HEIGHT(), PROPERTY_TEXTCOLOR(), PROPERTY_TEXTEMPHASIS(), PROPERTY_TEXTLINECOLOR(), and PROPERTY_TEXTRELIEF().
|
overridevirtual |
creates a OFieldDescription for the given column of the to-be-copied object
Implements dbaui::ICopyTableSourceObject.
Definition at line 201 of file WCopyTable.cxx.
References m_xObjectColumns, and xColumn.
|
overridevirtual |
retrieves the column names of the to-be-copied object
Implements dbaui::ICopyTableSourceObject.
Definition at line 187 of file WCopyTable.cxx.
References m_xObjectColumns.
Referenced by getSelectStatement().
|
overridevirtual |
returns the prepared statement which can be used to retrieve the data of the to-be-copied object
The default implementation of this method will simply prepare a statement with the return value of ->getSelectStatement.
Implements dbaui::ICopyTableSourceObject.
Definition at line 243 of file WCopyTable.cxx.
References getSelectStatement(), and m_xConnection.
|
overridevirtual |
retrieves the names of the primary keys of the to-be-copied object
Implements dbaui::ICopyTableSourceObject.
Definition at line 192 of file WCopyTable.cxx.
References getPrimaryKeyColumns_throw(), and m_xObject.
|
overridevirtual |
retrieves the fully qualified name of the object to copy
Implements dbaui::ICopyTableSourceObject.
Definition at line 104 of file WCopyTable.cxx.
References m_xMetaData, m_xObject, m_xObjectPSI, PROPERTY_COMMAND(), PROPERTY_NAME(), and sName.
|
overridevirtual |
returns the SELECT statement which can be used to retrieve the data of the to-be-copied object
Implements dbaui::ICopyTableSourceObject.
Definition at line 207 of file WCopyTable.cxx.
References getColumnNames(), m_xConnection, m_xMetaData, m_xObject, m_xObjectPSI, PROPERTY_COMMAND(), and sQuote.
Referenced by getPreparedSelectStatement().
|
overridevirtual |
determines whether the object is a view
Implements dbaui::ICopyTableSourceObject.
Definition at line 115 of file WCopyTable.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_xObject, m_xObjectPSI, and PROPERTY_TYPE().
|
private |
Definition at line 143 of file WCopyTable.hxx.
Referenced by copyFilterAndSortingTo(), getPreparedSelectStatement(), and getSelectStatement().
|
private |
Definition at line 144 of file WCopyTable.hxx.
Referenced by getQualifiedObjectName(), and getSelectStatement().
|
private |
Definition at line 145 of file WCopyTable.hxx.
Referenced by copyFilterAndSortingTo(), copyUISettingsTo(), getPrimaryKeyColumnNames(), getQualifiedObjectName(), getSelectStatement(), and isView().
|
private |
Definition at line 147 of file WCopyTable.hxx.
Referenced by createFieldDescription(), and getColumnNames().
|
private |
Definition at line 146 of file WCopyTable.hxx.
Referenced by copyFilterAndSortingTo(), copyUISettingsTo(), getQualifiedObjectName(), getSelectStatement(), and isView().