27#include <com/sun/star/sdbc/ColumnValue.hpp>
41void WpADOColumn::Create()
48 ,m_pConnection(_pConnection)
51 OSL_ENSURE(_pColumn,
"Column can not be null!");
59 ,m_pConnection(_pConnection)
71 sal_Int32 nAttrib =
isNew() ? 0 : PropertyAttribute::READONLY;
81 std::u16string_view sAdoPropertyName;
131 if ( nVal == ColumnValue::NULLABLE )
146 sAdoPropertyName =
u"Description";
150 sAdoPropertyName =
u"Default";
154 if (!sAdoPropertyName.empty())
177 bool bForceTo =
true;
185 OTypeInfoMap::const_iterator aFind = std::find_if(pTypeInfoMap->begin(), pTypeInfoMap->end(),
186 [&aCase] (
const OTypeInfoMap::value_type& typeInfo) {
187 return aCase(typeInfo.second->getDBName(), u
"VarBinary");
190 if ( aFind != pTypeInfoMap->end() )
192 eType = aFind->first;
193 pTypeInfo = aFind->second;
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
static bool isJetEngine(sal_Int32 _nEngineType)
static const CLSID CLSID_ADOCOLUMN_25
static DataTypeEnum MapJdbc2ADOType(sal_Int32 _nType, sal_Int32 _nJetEngine)
static sal_Int32 MapADOType2Jdbc(DataTypeEnum eType)
OAdoColumn(bool _bCase, OConnection *_pConnection, _ADOColumn *_pColumn)
OConnection * m_pConnection
void fillPropertyValues()
OUString m_ReferencedColumn
WpADOColumn getColumnImpl() const
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual void construct() override
WpADOCatalog getCatalog() const
const OTypeInfoMap * getTypeInfo() const
sal_Int32 getEngineType() const
static const OExtendedTypeInfo * getTypeInfoFromType(const OTypeInfoMap &_rTypeInfo, DataTypeEnum _nType, const OUString &_sTypeName, sal_Int32 _nPrecision, sal_Int32 _nScale, bool &_brForceToType)
OCatalog * getAdoCatalog() const
OUString getString() const
DataTypeEnum get_Type() const
SortOrderEnum get_SortOrder() const
void put_Name(std::u16string_view _rName)
void put_NumericScale(sal_Int8 _nScale)
sal_uInt8 get_NumericScale() const
OUString get_RelatedColumn() const
sal_Int32 get_Precision() const
WpADOProperties get_Properties() const
bool put_Attributes(const ColumnAttributesEnum &_eNum)
void put_SortOrder(SortOrderEnum _nScale)
void put_RelatedColumn(std::u16string_view _rName)
OUString get_Name() const
void put_Type(const DataTypeEnum &_eNum)
void put_Precision(sal_Int32 _nPre)
void put_ParentCatalog(_ADOCatalog __RPC_FAR *ppvObject)
ColumnAttributesEnum get_Attributes() const
sal::systools::COMReference< _ADOColumn > pInterface
bool getBOOL(const Any &_rAny)
OUString getString(const Any &_rAny)
std::multimap< DataTypeEnum, OExtendedTypeInfo * > OTypeInfoMap
#define PROPERTY_ID_DESCRIPTION
#define PROPERTY_ID_ISROWVERSION
#define PROPERTY_ID_ISASCENDING
#define PROPERTY_ID_ISNULLABLE
#define PROPERTY_ID_RELATEDCOLUMN
#define PROPERTY_ID_PRECISION
#define PROPERTY_ID_ISAUTOINCREMENT
#define PROPERTY_ID_TYPENAME
#define PROPERTY_ID_DEFAULTVALUE
#define PROPERTY_ID_IM001
#define PROPERTY_ID_SCALE
::connectivity::OTypeInfo aSimpleType