LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
sdbtools::TableName Class Reference

default implementation for XTableName More...

#include <tablename.hxx>

Inheritance diagram for sdbtools::TableName:
[legend]
Collaboration diagram for sdbtools::TableName:
[legend]

Public Member Functions

 TableName (const css::uno::Reference< css::uno::XComponentContext > &_rContext, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 constructs the instance More...
 
virtual OUString SAL_CALL getCatalogName () override
 
virtual void SAL_CALL setCatalogName (const OUString &_catalogname) override
 
virtual OUString SAL_CALL getSchemaName () override
 
virtual void SAL_CALL setSchemaName (const OUString &_schemaname) override
 
virtual OUString SAL_CALL getTableName () override
 
virtual void SAL_CALL setTableName (const OUString &_tablename) override
 
virtual OUString SAL_CALL getNameForSelect () override
 
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getTable () override
 
virtual void SAL_CALL setTable (const css::uno::Reference< css::beans::XPropertySet > &_table) override
 
virtual OUString SAL_CALL getComposedName (::sal_Int32 Type, sal_Bool Quote) override
 
virtual void SAL_CALL setComposedName (const OUString &ComposedName, ::sal_Int32 Type) override
 
- Public Member Functions inherited from sdbtools::ConnectionDependentComponent
::osl::Mutex & getMutex (GuardAccess) const
 
bool acquireConnection (GuardAccess)
 
void releaseConnection (GuardAccess)
 

Protected Member Functions

virtual ~TableName () override
 
- Protected Member Functions inherited from sdbtools::ConnectionDependentComponent
::osl::Mutex & getMutex () const
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
 ConnectionDependentComponent (css::uno::Reference< css::uno::XComponentContext > _xContext)
 
void setWeakConnection (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 sets the connection we depend on. More...
 
const css::uno::Reference< css::sdbc::XConnection > & getConnection () const
 

Private Member Functions

 TableName (const TableName &)=delete
 
TableNameoperator= (const TableName &)=delete
 

Private Attributes

OUString msCatalog
 
OUString msSchema
 
OUString msName
 

Detailed Description

default implementation for XTableName

Definition at line 38 of file tablename.hxx.

Constructor & Destructor Documentation

◆ TableName() [1/2]

sdbtools::TableName::TableName ( const css::uno::Reference< css::uno::XComponentContext > &  _rContext,
const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection 
)

constructs the instance

Parameters
_rContextthe component's context
_rxConnectionthe connection to work with. Will be held weak. Must not be <NULL>.
Exceptions
css::lang::NullPointerExceptionif _rxConnection is <NULL>

◆ ~TableName()

sdbtools::TableName::~TableName ( )
overrideprotectedvirtual

Definition at line 60 of file tablename.cxx.

◆ TableName() [2/2]

sdbtools::TableName::TableName ( const TableName )
privatedelete

Member Function Documentation

◆ getCatalogName()

OUString SAL_CALL sdbtools::TableName::getCatalogName ( )
overridevirtual

Definition at line 64 of file tablename.cxx.

◆ getComposedName()

OUString SAL_CALL sdbtools::TableName::getComposedName ( ::sal_Int32  Type,
sal_Bool  Quote 
)
overridevirtual

Definition at line 197 of file tablename.cxx.

References composeTableName(), getConnection(), and msName.

◆ getNameForSelect()

OUString SAL_CALL sdbtools::TableName::getNameForSelect ( )
overridevirtual

Definition at line 100 of file tablename.cxx.

References composeTableNameForSelect(), getConnection(), and msName.

◆ getSchemaName()

OUString SAL_CALL sdbtools::TableName::getSchemaName ( )
overridevirtual

Definition at line 76 of file tablename.cxx.

◆ getTable()

Reference< XPropertySet > SAL_CALL sdbtools::TableName::getTable ( )
overridevirtual

Definition at line 106 of file tablename.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and getConnection().

◆ getTableName()

OUString SAL_CALL sdbtools::TableName::getTableName ( )
overridevirtual

Definition at line 88 of file tablename.cxx.

References msName.

◆ operator=()

TableName & sdbtools::TableName::operator= ( const TableName )
privatedelete

◆ setCatalogName()

void SAL_CALL sdbtools::TableName::setCatalogName ( const OUString &  _catalogname)
overridevirtual

Definition at line 70 of file tablename.cxx.

◆ setComposedName()

void SAL_CALL sdbtools::TableName::setComposedName ( const OUString &  ComposedName,
::sal_Int32  Type 
)
overridevirtual

Definition at line 207 of file tablename.cxx.

References getConnection(), msName, and qualifiedNameComponents().

◆ setSchemaName()

void SAL_CALL sdbtools::TableName::setSchemaName ( const OUString &  _schemaname)
overridevirtual

Definition at line 82 of file tablename.cxx.

◆ setTable()

void SAL_CALL sdbtools::TableName::setTable ( const css::uno::Reference< css::beans::XPropertySet > &  _table)
overridevirtual

◆ setTableName()

void SAL_CALL sdbtools::TableName::setTableName ( const OUString &  _tablename)
overridevirtual

Definition at line 94 of file tablename.cxx.

References msName.

Member Data Documentation

◆ msCatalog

OUString sdbtools::TableName::msCatalog
private

Definition at line 77 of file tablename.hxx.

◆ msName

OUString sdbtools::TableName::msName
private

Definition at line 79 of file tablename.hxx.

◆ msSchema

OUString sdbtools::TableName::msSchema
private

Definition at line 78 of file tablename.hxx.


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