LibreOffice Module connectivity (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
connectivity::parse::OParseColumn Class Referencefinal

#include <PColumn.hxx>

Inheritance diagram for connectivity::parse::OParseColumn:
[legend]
Collaboration diagram for connectivity::parse::OParseColumn:
[legend]

Public Types

typedef std::map< OUString, intStringMap
 

Public Member Functions

 OParseColumn (const css::uno::Reference< css::beans::XPropertySet > &_xColumn, bool _bCase)
 
 OParseColumn (const OUString &Name, const OUString &TypeName, const OUString &DefaultValue, const OUString &Description, sal_Int32 IsNullable, sal_Int32 Precision, sal_Int32 Scale, sal_Int32 Type, bool IsAutoIncrement, bool IsCurrency, bool _bCase, const OUString &CatalogName, const OUString &SchemaName, const OUString &TableName)
 
virtual void construct () override
 
void setRealName (const OUString &_rName)
 
void setLabel (const OUString &i_sLabel)
 
void setTableName (const OUString &_rName)
 
void setFunction (bool _bFunction)
 
void setAggregateFunction (bool _bFunction)
 
void setIsSearchable (bool _bIsSearchable)
 
const OUString & getRealName () const
 
static ::rtl::Reference< OSQLColumnscreateColumnsForResultSet (const css::uno::Reference< css::sdbc::XResultSetMetaData > &_rxResMetaData, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_rxDBMetaData, const css::uno::Reference< css::container::XNameAccess > &i_xQueryColumns)
 creates a collection of OParseColumn, as described by a result set meta data instance. More...
 
- Public Member Functions inherited from connectivity::sdbcx::OColumn
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
 OColumn (bool _bCase)
 
 OColumn (const OUString &Name, OUString TypeName, OUString DefaultValue, OUString Description, sal_Int32 IsNullable, sal_Int32 Precision, sal_Int32 Scale, sal_Int32 Type, bool IsAutoIncrement, bool IsRowVersion, bool IsCurrency, bool _bCase, OUString CatalogName, OUString SchemaName, OUString TableName)
 
 DECLARE_SERVICE_INFO ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual void construct () override
 
virtual void SAL_CALL disposing () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor () override
 
- Public Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
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
 
- Public Member Functions inherited from comphelper::OIdPropertyArrayUsageHelper< class TYPE >
 OIdPropertyArrayUsageHelper ()
 
virtual ~OIdPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper (sal_Int32 nId)
 
- Public Member Functions inherited from connectivity::sdbcx::ODescriptor
 ODescriptor (::cppu::OBroadcastHelper &_rBHelper, bool _bCase, bool _bNew=false)
 
virtual ~ODescriptor () override
 
bool isNew () const
 
void setNew (bool _bNew)
 
bool isCaseSensitive () const
 
virtual void construct ()
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes ()
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Static Public Member Functions

static rtl::Reference< OParseColumncreateColumnForResultSet (const css::uno::Reference< css::sdbc::XResultSetMetaData > &_rxResMetaData, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_rxDBMetaData, sal_Int32 _nColumnPos, StringMap &_rColumns)
 creates a single OParseColumn, as described by a result set meta data instance. More...
 
- Static Public Member Functions inherited from connectivity::sdbcx::ODescriptor
static bool isNew (const css::uno::Reference< css::uno::XInterface > &_rxDescriptor)
 

Private Member Functions

virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ~OParseColumn () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper (sal_Int32 _nId) const override
 

Private Attributes

OUString m_aRealName
 
OUString m_sLabel
 
bool m_bFunction
 
bool m_bDbasePrecisionChanged
 
bool m_bAggregateFunction
 
bool m_bIsSearchable
 

Additional Inherited Members

- Protected Member Functions inherited from connectivity::sdbcx::OColumn
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper (sal_Int32 _nId) const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ~OColumn () override
 
- Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper (sal_Int32 nId) const=0
 
- Protected Member Functions inherited from connectivity::sdbcx::ODescriptor
::cppu::IPropertyArrayHelperdoCreateArrayHelper () const
 helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper More...
 
- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const=0
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static std::mutextheMutex ()
 
- Protected Attributes inherited from connectivity::sdbcx::OColumn
OUString m_TypeName
 
OUString m_Description
 
OUString m_DefaultValue
 
sal_Int32 m_IsNullable
 
sal_Int32 m_Precision
 
sal_Int32 m_Scale
 
sal_Int32 m_Type
 
bool m_IsAutoIncrement
 
bool m_IsRowVersion
 
bool m_IsCurrency
 
OUString m_CatalogName
 
OUString m_SchemaName
 
OUString m_TableName
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from connectivity::sdbcx::ODescriptor
OUString m_Name
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 43 of file PColumn.hxx.

Member Typedef Documentation

◆ StringMap

Definition at line 93 of file PColumn.hxx.

Constructor & Destructor Documentation

◆ ~OParseColumn()

OParseColumn::~OParseColumn ( )
overrideprivatevirtual

Definition at line 168 of file PColumn.cxx.

◆ OParseColumn() [1/2]

connectivity::parse::OParseColumn::OParseColumn ( const css::uno::Reference< css::beans::XPropertySet > &  _xColumn,
bool  _bCase 
)

◆ OParseColumn() [2/2]

OParseColumn::OParseColumn ( const OUString &  Name,
const OUString &  TypeName,
const OUString &  DefaultValue,
const OUString &  Description,
sal_Int32  IsNullable,
sal_Int32  Precision,
sal_Int32  Scale,
sal_Int32  Type,
bool  IsAutoIncrement,
bool  IsCurrency,
bool  _bCase,
const OUString &  CatalogName,
const OUString &  SchemaName,
const OUString &  TableName 
)

Definition at line 65 of file PColumn.cxx.

References construct(), Name, and Scale.

Member Function Documentation

◆ construct()

void OParseColumn::construct ( )
overridevirtual

◆ createArrayHelper() [1/2]

cppu::IPropertyArrayHelper * OParseColumn::createArrayHelper ( ) const
overrideprivatevirtual

◆ createArrayHelper() [2/2]

cppu::IPropertyArrayHelper * OColumn::createArrayHelper ( sal_Int32  _nId) const
overrideprivatevirtual

Reimplemented from connectivity::sdbcx::OColumn.

Definition at line 69 of file VColumn.cxx.

References construct(), m_aMutex, connectivity::sdbcx::ODescriptor::m_Name, Name, and Scale.

◆ createColumnForResultSet()

rtl::Reference< OParseColumn > OParseColumn::createColumnForResultSet ( const css::uno::Reference< css::sdbc::XResultSetMetaData > &  _rxResMetaData,
const css::uno::Reference< css::sdbc::XDatabaseMetaData > &  _rxDBMetaData,
sal_Int32  _nColumnPos,
StringMap _rColumns 
)
static

creates a single OParseColumn, as described by a result set meta data instance.

The column names are unique.

Definition at line 128 of file PColumn.cxx.

References OParseColumn().

Referenced by createColumnsForResultSet().

◆ createColumnsForResultSet()

rtl::Reference< OSQLColumns > OParseColumn::createColumnsForResultSet ( const css::uno::Reference< css::sdbc::XResultSetMetaData > &  _rxResMetaData,
const css::uno::Reference< css::sdbc::XDatabaseMetaData > &  _rxDBMetaData,
const css::uno::Reference< css::container::XNameAccess > &  i_xQueryColumns 
)

creates a collection of OParseColumn, as described by a result set meta data instance.

Definition at line 103 of file PColumn.cxx.

References createColumnForResultSet(), connectivity::OMetaConnection::getPropMap(), i, PROPERTY_ID_LABEL, and xColumn.

◆ getInfoHelper()

cppu::IPropertyArrayHelper &SAL_CALL OParseColumn::getInfoHelper ( )
overrideprivate

◆ getRealName()

const OUString & connectivity::parse::OParseColumn::getRealName ( ) const
inline

Definition at line 82 of file PColumn.hxx.

◆ setAggregateFunction()

void connectivity::parse::OParseColumn::setAggregateFunction ( bool  _bFunction)
inline

Definition at line 80 of file PColumn.hxx.

◆ setFunction()

void connectivity::parse::OParseColumn::setFunction ( bool  _bFunction)
inline

Definition at line 79 of file PColumn.hxx.

◆ setIsSearchable()

void connectivity::parse::OParseColumn::setIsSearchable ( bool  _bIsSearchable)
inline

Definition at line 81 of file PColumn.hxx.

◆ setLabel()

void connectivity::parse::OParseColumn::setLabel ( const OUString &  i_sLabel)
inline

Definition at line 77 of file PColumn.hxx.

◆ setRealName()

void connectivity::parse::OParseColumn::setRealName ( const OUString &  _rName)
inline

Definition at line 76 of file PColumn.hxx.

◆ setTableName()

void connectivity::parse::OParseColumn::setTableName ( const OUString &  _rName)
inline

Definition at line 78 of file PColumn.hxx.

Member Data Documentation

◆ m_aRealName

OUString connectivity::parse::OParseColumn::m_aRealName
private

Definition at line 46 of file PColumn.hxx.

Referenced by construct().

◆ m_bAggregateFunction

bool connectivity::parse::OParseColumn::m_bAggregateFunction
private

Definition at line 50 of file PColumn.hxx.

Referenced by construct().

◆ m_bDbasePrecisionChanged

bool connectivity::parse::OParseColumn::m_bDbasePrecisionChanged
private

Definition at line 49 of file PColumn.hxx.

Referenced by construct().

◆ m_bFunction

bool connectivity::parse::OParseColumn::m_bFunction
private

Definition at line 48 of file PColumn.hxx.

Referenced by construct().

◆ m_bIsSearchable

bool connectivity::parse::OParseColumn::m_bIsSearchable
private

Definition at line 51 of file PColumn.hxx.

Referenced by construct().

◆ m_sLabel

OUString connectivity::parse::OParseColumn::m_sLabel
private

Definition at line 47 of file PColumn.hxx.

Referenced by construct().


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