20#ifndef INCLUDED_CONNECTIVITY_FVALUE_HXX
21#define INCLUDED_CONNECTIVITY_FVALUE_HXX
23#include <com/sun/star/sdbc/DataType.hpp>
24#include <com/sun/star/uno/Any.hxx>
25#include <rtl/ustring.hxx>
30#include <com/sun/star/util/DateTime.hpp>
31#include <com/sun/star/util/Date.hpp>
32#include <com/sun/star/util/Time.hpp>
33#include <com/sun/star/uno/Sequence.hxx>
82 :m_eTypeKind(css::sdbc::
DataType::VARCHAR)
92 :m_eTypeKind(css::sdbc::
DataType::VARCHAR)
98 m_aValue.m_pString =
nullptr;
103 :m_eTypeKind(css::sdbc::DataType::VARCHAR)
109 m_aValue.m_pString =
nullptr;
110 operator=(std::move(_rRH));
114 :m_eTypeKind(css::sdbc::
DataType::VARCHAR)
120 m_aValue.m_pString =
nullptr;
131 m_aValue.m_pString =
nullptr;
142 m_aValue.m_pString =
nullptr;
147 :m_eTypeKind(css::sdbc::
DataType::TINYINT)
153 m_aValue.m_pString =
nullptr;
158 :m_eTypeKind(css::sdbc::
DataType::SMALLINT)
164 m_aValue.m_pString =
nullptr;
168 :m_eTypeKind(css::sdbc::
DataType::SMALLINT)
174 m_aValue.m_pString =
nullptr;
178 :m_eTypeKind(css::sdbc::
DataType::INTEGER)
184 m_aValue.m_pString =
nullptr;
188 :m_eTypeKind(css::sdbc::
DataType::INTEGER)
194 m_aValue.m_pString =
nullptr;
198 :m_eTypeKind(css::sdbc::
DataType::BIGINT)
204 m_aValue.m_pString =
nullptr;
208 :m_eTypeKind(css::sdbc::
DataType::BIGINT)
214 m_aValue.m_pString =
nullptr;
219 :m_eTypeKind(css::sdbc::
DataType::BIT)
225 m_aValue.m_pString =
nullptr;
237 m_aValue.m_pString =
nullptr;
248 m_aValue.m_pString =
nullptr;
253 :m_eTypeKind(css::sdbc::
DataType::TIMESTAMP)
259 m_aValue.m_pString =
nullptr;
264 :m_eTypeKind(css::sdbc::
DataType::LONGVARBINARY)
270 m_aValue.m_pString =
nullptr;
317 return !( *
this == _rRH );
328 m_aValue.m_pString =
nullptr;
332 void setBound(
bool _bBound) { m_bBound = _bBound; }
338 void setSigned(
bool _bSig);
341 void setTypeKind(sal_Int32 _eType);
343 bool getBool()
const;
348 sal_Int16 getInt16()
const;
349 sal_uInt16 getUInt16()
const;
351 sal_Int32 getInt32()
const;
352 sal_uInt32 getUInt32()
const;
354 sal_Int64 getLong()
const;
355 sal_uInt64 getULong()
const;
361 css::util::Date getDate()
const;
362 css::util::Time getTime()
const;
363 css::util::DateTime getDateTime()
const;
364 css::uno::Sequence<sal_Int8> getSequence()
const;
366 const css::uno::Any&
getAny()
const {
return *
static_cast<css::uno::Any*
>(m_aValue.m_pValue); }
375 void fill(sal_Int32 _nPos,
377 const css::uno::Reference< css::sdbc::XRow>& _xRow);
389 const css::uno::Reference< css::sdbc::XRow>& _xRow);
391 void fill(
const css::uno::Any& _rValue);
393 void fill(
const sal_Int32 _nType,
394 const css::uno::Reference< css::sdb::XColumn >& _rxColumn );
397 void impl_fill(
const sal_Int32 _nType,
bool _bNullable,
const detail::IValueSource& _rValueSource );
465 for (
auto & elem : *
this)
470#define SQL_NO_PARAMETER (SAL_MAX_UINT32)
OAssignValues(size_type n)
sal_Int32 getParameterIndex(sal_Int32 _nId) const
void setParameterIndex(sal_Int32 _nId, sal_Int32 _nParameterIndex)
::std::vector< sal_Int32 > m_nParameterIndexes
ODeleteVector(size_t _st)
void setDeleted(bool _bDeleted)
ORowSetValueDecorator decorates an ORowSetValue so the value is "refcounted".
void setModified(bool _bModified)
ORowSetValueDecorator(ORowSetValue _aValue)
void setValue(const ORowSetValue &_aValue)
const ORowSetValue & getValue() const
void setTypeKind(sal_Int32 _nType)
void setBound(bool _bBound)
ORowSetValue(T const *)=delete
ORowSetValue(sal_Bool)=delete
ORowSetValue(sal_uInt16 _rRH)
ORowSetValue(sal_uInt32 _rRH)
ORowSetValue & operator=(const css::uno::Sequence< sal_Int8 > &_rRH)
ORowSetValue(const double &_rRH)
ORowSetValue & operator=(const css::util::Date &_rRH)
ORowSetValue(sal_Int32 _rRH)
ORowSetValue(sal_Int8 _rRH)
void fill(const sal_Int32 _nType, const css::uno::Reference< css::sdb::XColumn > &_rxColumn)
ORowSetValue(sal_uInt64 _rRH)
ORowSetValue(const OUString &_rRH)
sal_Int32 getTypeKind() const
void setBound(bool _bBound)
void fill(const css::uno::Any &_rValue)
ORowSetValue(const css::uno::Sequence< sal_Int8 > &_rRH)
ORowSetValue(sal_Int64 _rRH)
ORowSetValue & operator=(const css::util::DateTime &_rRH)
void setTypeKind(sal_Int32 _eType)
ORowSetValue & operator=(const css::uno::Any &_rAny)
ORowSetValue(sal_Int16 _rRH)
void setModified(bool _bMod)
ORowSetValue(const css::util::Date &_rRH)
ORowSetValue(const css::util::Time &_rRH)
void fill(sal_Int32 _nPos, sal_Int32 _nType, bool _bNullable, const css::uno::Reference< css::sdbc::XRow > &_xRow)
fetches a single value out of the row
bool operator!=(const ORowSetValue &_rRH) const
ORowSetValue(const ORowSetValue &_rRH)
const css::uno::Any & getAny() const
ORowSetValue(ORowSetValue &&_rRH) noexcept
ORowSetValue(const css::util::DateTime &_rRH)
OValueRefVector(size_t _st)
double getDouble(const Any &_rAny)
float getFloat(const Any &_rAny)
OUString getString(const Any &_rAny)
::rtl::Reference< OValueVector > OValueRow
::rtl::Reference< OValueRefVector > OValueRefRow
::rtl::Reference< OAssignValues > ORefAssignValues
::rtl::Reference< ORowSetValueDecorator > ORowSetValueDecoratorRef
ODeleteVector< ORowSetValue > OValueVector
css::uno::Any SAL_CALL makeAny(const SharedUNOComponent< INTERFACE, COMPONENT > &value)
TSetBound is a functor to set the bound value with e.q. for_each call.
void operator()(ORowSetValue &_rValue) const
TSetBound is a functor to set the bound value with e.q. for_each call.
void operator()(ORowSetValueDecoratorRef const &_rValue) const
TSetRefBound(bool _bBound)