LibreOffice Module connectivity (master) 1
|
#include <PColumn.hxx>
Public Types | |
typedef std::map< OUString, int > | StringMap |
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< OSQLColumns > | 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. 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::IPropertyArrayHelper * | getArrayHelper (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::IPropertyArrayHelper * | getArrayHelper () |
Static Public Member Functions | |
static rtl::Reference< OParseColumn > | createColumnForResultSet (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::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual | ~OParseColumn () override |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper (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::IPropertyArrayHelper * | createArrayHelper (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::IPropertyArrayHelper * | createArrayHelper (sal_Int32 nId) const=0 |
Protected Member Functions inherited from connectivity::sdbcx::ODescriptor | |
::cppu::IPropertyArrayHelper * | doCreateArrayHelper () 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::IPropertyArrayHelper * | createArrayHelper () 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::mutex & | theMutex () |
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::IPropertyArrayHelper * | s_pProps |
Definition at line 43 of file PColumn.hxx.
typedef std::map<OUString, int> connectivity::parse::OParseColumn::StringMap |
Definition at line 93 of file PColumn.hxx.
|
overrideprivatevirtual |
Definition at line 168 of file PColumn.cxx.
connectivity::parse::OParseColumn::OParseColumn | ( | const css::uno::Reference< css::beans::XPropertySet > & | _xColumn, |
bool | _bCase | ||
) |
Referenced by createColumnForResultSet().
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.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OColumn.
Definition at line 172 of file PColumn.cxx.
References connectivity::OMetaConnection::getPropMap(), m_aRealName, m_bAggregateFunction, m_bDbasePrecisionChanged, m_bFunction, m_bIsSearchable, m_sLabel, PROPERTY_ID_AGGREGATEFUNCTION, PROPERTY_ID_DBASEPRECISIONCHANGED, PROPERTY_ID_FUNCTION, PROPERTY_ID_ISSEARCHABLE, PROPERTY_ID_LABEL, PROPERTY_ID_REALNAME, and comphelper::OPropertyContainerHelper::registerProperty().
Referenced by createArrayHelper(), and OParseColumn().
|
overrideprivatevirtual |
Implements comphelper::OPropertyArrayUsageHelper< class TYPE >.
Definition at line 182 of file PColumn.cxx.
References connectivity::sdbcx::ODescriptor::doCreateArrayHelper().
|
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.
|
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().
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.
|
overrideprivate |
Definition at line 187 of file PColumn.cxx.
References comphelper::OPropertyArrayUsageHelper< class TYPE >::getArrayHelper(), and connectivity::sdbcx::ODescriptor::isNew().
|
inline |
Definition at line 82 of file PColumn.hxx.
|
inline |
Definition at line 80 of file PColumn.hxx.
|
inline |
Definition at line 79 of file PColumn.hxx.
|
inline |
Definition at line 81 of file PColumn.hxx.
|
inline |
Definition at line 77 of file PColumn.hxx.
|
inline |
Definition at line 76 of file PColumn.hxx.
|
inline |
Definition at line 78 of file PColumn.hxx.
|
private |
Definition at line 46 of file PColumn.hxx.
Referenced by construct().
|
private |
Definition at line 50 of file PColumn.hxx.
Referenced by construct().
|
private |
Definition at line 49 of file PColumn.hxx.
Referenced by construct().
|
private |
Definition at line 48 of file PColumn.hxx.
Referenced by construct().
|
private |
Definition at line 51 of file PColumn.hxx.
Referenced by construct().
|
private |
Definition at line 47 of file PColumn.hxx.
Referenced by construct().