LibreOffice Module dbaccess (master) 1
Public Member Functions | List of all members
dbaui::ICopyTableSourceObject Class Referenceabstract

interface to an object to copy to another DB, using the OCopyTableWizard More...

#include <WCopyTable.hxx>

Inheritance diagram for dbaui::ICopyTableSourceObject:
[legend]

Public Member Functions

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 OFieldDescriptioncreateFieldDescription (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 ()
 

Detailed Description

interface to an object to copy to another DB, using the OCopyTableWizard

when the wizard is used to copy an object to another DB, it usually requires a sdbcx-level or sdb-level object (a css.sdbcx.Table or css.sdb.Query, that is).

However, to also support copying tables from sdbc-level connections, we allow to work with the object name only. This implies some less features (like copying the UI settings of a table is not done), but still allows to copy definition and data.

Definition at line 100 of file WCopyTable.hxx.

Constructor & Destructor Documentation

◆ ~ICopyTableSourceObject()

ICopyTableSourceObject::~ICopyTableSourceObject ( )
virtual

Definition at line 90 of file WCopyTable.cxx.

Member Function Documentation

◆ copyFilterAndSortingTo()

virtual void dbaui::ICopyTableSourceObject::copyFilterAndSortingTo ( const css::uno::Reference< css::sdbc::XConnection > &  _xConnection,
const css::uno::Reference< css::beans::XPropertySet > &  _rxObject 
) const
pure virtual

copies the filter and sorting

Returns

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

Referenced by dbaui::OCopyTableWizard::createTable().

◆ copyUISettingsTo()

virtual void dbaui::ICopyTableSourceObject::copyUISettingsTo ( const css::uno::Reference< css::beans::XPropertySet > &  _rxObject) const
pure virtual

copies the UI settings of the object to the given target object.

Might be ignored by implementations which do not have Ui settings.

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

Referenced by dbaui::OCopyTableWizard::createTable().

◆ createFieldDescription()

virtual OFieldDescription * dbaui::ICopyTableSourceObject::createFieldDescription ( const OUString &  _rColumnName) const
pure virtual

creates a OFieldDescription for the given column of the to-be-copied object

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

Referenced by dbaui::OCopyTableWizard::loadData().

◆ getColumnNames()

virtual css::uno::Sequence< OUString > dbaui::ICopyTableSourceObject::getColumnNames ( ) const
pure virtual

retrieves the column names of the to-be-copied object

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

Referenced by dbaui::OCopyTableWizard::createUniqueName(), and dbaui::OCopyTableWizard::loadData().

◆ getPreparedSelectStatement()

virtual ::utl::SharedUNOComponent< css::sdbc::XPreparedStatement > dbaui::ICopyTableSourceObject::getPreparedSelectStatement ( ) const
pure virtual

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.

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

◆ getPrimaryKeyColumnNames()

virtual css::uno::Sequence< OUString > dbaui::ICopyTableSourceObject::getPrimaryKeyColumnNames ( ) const
pure virtual

retrieves the names of the primary keys of the to-be-copied object

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

Referenced by dbaui::OCopyTableWizard::loadData().

◆ getQualifiedObjectName()

virtual OUString dbaui::ICopyTableSourceObject::getQualifiedObjectName ( ) const
pure virtual

retrieves the fully qualified name of the object to copy

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

◆ getSelectStatement()

virtual OUString dbaui::ICopyTableSourceObject::getSelectStatement ( ) const
pure virtual

returns the SELECT statement which can be used to retrieve the data of the to-be-copied object

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.

Referenced by dbaui::OCopyTableWizard::createView().

◆ isView()

virtual bool dbaui::ICopyTableSourceObject::isView ( ) const
pure virtual

determines whether the object is a view

Implemented in dbaui::ObjectCopySource, and dbaui::NamedTableCopySource.


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