21#include <com/sun/star/beans/PropertyAttribute.hpp>
25#include <com/sun/star/sdbc/ColumnValue.hpp>
37OUString SAL_CALL OColumn::getImplementationName( )
40 return "com.sun.star.sdbcx.VColumnDescriptor";
41 return "com.sun.star.sdbcx.VColumn";
44css::uno::Sequence< OUString > SAL_CALL OColumn::getSupportedServiceNames( )
46 return { isNew()?OUString(
"com.sun.star.sdbcx.ColumnDescriptor"):OUString(
"com.sun.star.sdbcx.Column") };
49sal_Bool SAL_CALL OColumn::supportsService(
const OUString& _rServiceName )
57 ,m_IsNullable(ColumnValue::NULLABLE)
61 ,m_IsAutoIncrement(false)
62 ,m_IsRowVersion(false)
70 OUString DefaultValue,
85 ,m_TypeName(
std::move(TypeName))
86 ,m_Description(
std::move(Description))
87 ,m_DefaultValue(
std::move(DefaultValue))
88 ,m_IsNullable(IsNullable)
89 ,m_Precision(Precision)
92 ,m_IsAutoIncrement(IsAutoIncrement)
93 ,m_IsRowVersion(IsRowVersion)
94 ,m_IsCurrency(IsCurrency)
95 ,m_CatalogName(
std::move(CatalogName))
96 ,m_SchemaName(
std::move(SchemaName))
97 ,m_TableName(
std::move(TableName))
110 return doCreateArrayHelper();
118void SAL_CALL OColumn::acquire() noexcept
120 OColumnDescriptor_BASE::acquire();
123void SAL_CALL OColumn::release() noexcept
125 OColumnDescriptor_BASE::release();
128Any SAL_CALL OColumn::queryInterface(
const Type & rType )
130 Any aRet = ODescriptor::queryInterface( rType);
136 aRet = OColumnDescriptor_BASE::queryInterface( rType);
141Sequence< Type > SAL_CALL OColumn::getTypes( )
149void OColumn::construct()
153 sal_Int32 nAttrib = isNew() ? 0 : PropertyAttribute::READONLY;
170void OColumn::disposing()
175Reference< XPropertySet > SAL_CALL OColumn::createDataDescriptor( )
195 pNewColumn->setNew(
true);
199css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OColumn::getPropertySetInfo( )
201 return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
205OUString SAL_CALL OColumn::getName( )
210void SAL_CALL OColumn::setName(
const OUString& aName )
::cppu::IPropertyArrayHelper * getArrayHelper(sal_Int32 nId)
void disposing(std::unique_lock< std::mutex > &rGuard)
virtual void construct() override
virtual void construct() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
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
::cppu::WeakComponentImplHelper< css::container::XNamed, css::lang::XServiceInfo > OColumnDescriptor_BASE
void checkDisposed(bool _bThrow)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
#define PROPERTY_ID_TABLENAME
#define PROPERTY_ID_DESCRIPTION
#define PROPERTY_ID_CATALOGNAME
#define PROPERTY_ID_ISROWVERSION
#define PROPERTY_ID_ISNULLABLE
#define PROPERTY_ID_PRECISION
#define PROPERTY_ID_SCHEMANAME
#define PROPERTY_ID_ISAUTOINCREMENT
#define PROPERTY_ID_ISCURRENCY
#define PROPERTY_ID_TYPENAME
#define PROPERTY_ID_DEFAULTVALUE
#define PROPERTY_ID_SCALE