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

default implementation for XObjectNames More...

#include <objectnames.hxx>

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

Public Member Functions

 ObjectNames (const css::uno::Reference< css::uno::XComponentContext > &_rContext, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 constructs the instance More...
 
virtual OUString SAL_CALL suggestName (::sal_Int32 CommandType, const OUString &BaseName) override
 
virtual OUString SAL_CALL convertToSQLName (const OUString &Name) override
 
virtual sal_Bool SAL_CALL isNameUsed (::sal_Int32 CommandType, const OUString &Name) override
 
virtual sal_Bool SAL_CALL isNameValid (::sal_Int32 CommandType, const OUString &Name) override
 
virtual void SAL_CALL checkNameForCreate (::sal_Int32 CommandType, const OUString &Name) override
 
- Public Member Functions inherited from sdbtools::ConnectionDependentComponent
::osl::Mutex & getMutex (GuardAccess) const
 
bool acquireConnection (GuardAccess)
 
void releaseConnection (GuardAccess)
 

Protected Member Functions

virtual ~ObjectNames () 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

 ObjectNames (const ObjectNames &)=delete
 
ObjectNamesoperator= (const ObjectNames &)=delete
 

Detailed Description

default implementation for XObjectNames

Definition at line 38 of file objectnames.hxx.

Constructor & Destructor Documentation

◆ ObjectNames() [1/2]

sdbtools::ObjectNames::ObjectNames ( 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>

◆ ~ObjectNames()

sdbtools::ObjectNames::~ObjectNames ( )
overrideprotectedvirtual

Definition at line 352 of file objectnames.cxx.

◆ ObjectNames() [2/2]

sdbtools::ObjectNames::ObjectNames ( const ObjectNames )
privatedelete

Member Function Documentation

◆ checkNameForCreate()

void SAL_CALL sdbtools::ObjectNames::checkNameForCreate ( ::sal_Int32  CommandType,
const OUString &  Name 
)
overridevirtual

Definition at line 408 of file objectnames.cxx.

References CommandType, getConnection(), and Name.

◆ convertToSQLName()

OUString SAL_CALL sdbtools::ObjectNames::convertToSQLName ( const OUString &  Name)
overridevirtual

Definition at line 385 of file objectnames.cxx.

References getConnection(), and Name.

◆ isNameUsed()

sal_Bool SAL_CALL sdbtools::ObjectNames::isNameUsed ( ::sal_Int32  CommandType,
const OUString &  Name 
)
overridevirtual

Definition at line 392 of file objectnames.cxx.

References CommandType, getConnection(), and Name.

◆ isNameValid()

sal_Bool SAL_CALL sdbtools::ObjectNames::isNameValid ( ::sal_Int32  CommandType,
const OUString &  Name 
)
overridevirtual

Definition at line 400 of file objectnames.cxx.

References CommandType, getConnection(), and Name.

◆ operator=()

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

◆ suggestName()

OUString SAL_CALL sdbtools::ObjectNames::suggestName ( ::sal_Int32  CommandType,
const OUString &  BaseName 
)
overridevirtual

Definition at line 356 of file objectnames.cxx.

References CommandType, DBA_RES, getConnection(), i, dbaccess::QUERY, sName, and dbaccess::TABLE.


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