LibreOffice Module ucbhelper (master) 1
|
This class implements the interface XRow. More...
#include <propertyvalueset.hxx>
Public Member Functions | |
PropertyValueSet (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~PropertyValueSet () override |
virtual sal_Bool SAL_CALL | wasNull () override |
virtual OUString SAL_CALL | getString (sal_Int32 columnIndex) override |
virtual sal_Bool SAL_CALL | getBoolean (sal_Int32 columnIndex) override |
virtual sal_Int8 SAL_CALL | getByte (sal_Int32 columnIndex) override |
virtual sal_Int16 SAL_CALL | getShort (sal_Int32 columnIndex) override |
virtual sal_Int32 SAL_CALL | getInt (sal_Int32 columnIndex) override |
virtual sal_Int64 SAL_CALL | getLong (sal_Int32 columnIndex) override |
virtual float SAL_CALL | getFloat (sal_Int32 columnIndex) override |
virtual double SAL_CALL | getDouble (sal_Int32 columnIndex) override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getBytes (sal_Int32 columnIndex) override |
virtual css::util::Date SAL_CALL | getDate (sal_Int32 columnIndex) override |
virtual css::util::Time SAL_CALL | getTime (sal_Int32 columnIndex) override |
virtual css::util::DateTime SAL_CALL | getTimestamp (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getBinaryStream (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getCharacterStream (sal_Int32 columnIndex) override |
virtual css::uno::Any SAL_CALL | getObject (sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override |
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL | getRef (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL | getBlob (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL | getClob (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL | getArray (sal_Int32 columnIndex) override |
virtual sal_Int32 SAL_CALL | findColumn (const OUString &columnName) override |
void | appendString (const OUString &rPropName, const OUString &rValue) |
void | appendString (const css::beans::Property &rProp, const OUString &rValue) |
void | appendBoolean (const OUString &rPropName, bool bValue) |
void | appendBoolean (const css::beans::Property &rProp, bool bValue) |
void | appendLong (const OUString &rPropName, sal_Int64 nValue) |
void | appendLong (const css::beans::Property &rProp, sal_Int64 nValue) |
void | appendTimestamp (const OUString &rPropName, const css::util::DateTime &rValue) |
void | appendTimestamp (const css::beans::Property &rProp, const css::util::DateTime &rValue) |
void | appendObject (const OUString &rPropName, const css::uno::Any &rValue) |
void | appendObject (const css::beans::Property &rProp, const css::uno::Any &rValue) |
void | appendVoid (const OUString &rPropName) |
void | appendVoid (const css::beans::Property &rProp) |
void | appendPropertySet (const css::uno::Reference< css::beans::XPropertySet > &rSet) |
This method tries to append all property values contained in a property set to the value set. More... | |
bool | appendPropertySetValue (const css::uno::Reference< css::beans::XPropertySet > &rSet, const css::beans::Property &rProperty) |
This method tries to append a single property value contained in a property set to the value set. More... | |
Private Member Functions | |
UCBHELPER_DLLPRIVATE const css::uno::Reference< css::script::XTypeConverter > & | getTypeConverter () |
template<class T , T ucbhelper_impl::PropertyValue::* _member_name_> | |
T | getValue (PropsSet nTypeName, sal_Int32 columnIndex) |
template<class T , T ucbhelper_impl::PropertyValue::* _member_name_> | |
void | appendValue (const OUString &rPropName, PropsSet nTypeName, const T &rValue) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::script::XTypeConverter > | m_xTypeConverter |
std::mutex | m_aMutex |
std::unique_ptr< PropertyValues > | m_pValues |
bool | m_bWasNull |
bool | m_bTriedToGetTypeConverter |
This class implements the interface XRow.
After construction of a valueset the user can append properties ( incl. its values ) to the set. This class is useful when implementing the command "getPropertyValues", because the values to return can easily appended to a valueset object. That object can directly be returned by the implementation of the command.
Definition at line 57 of file propertyvalueset.hxx.
ucbhelper::PropertyValueSet::PropertyValueSet | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
Definition at line 129 of file propertyvalueset.cxx.
References m_pValues, and m_xContext.
|
overridevirtual |
Definition at line 141 of file propertyvalueset.cxx.
|
inline |
Definition at line 148 of file propertyvalueset.hxx.
void ucbhelper::PropertyValueSet::appendBoolean | ( | const OUString & | rPropName, |
bool | bValue | ||
) |
Definition at line 561 of file propertyvalueset.cxx.
References Boolean.
|
inline |
Definition at line 154 of file propertyvalueset.hxx.
References nValue.
void ucbhelper::PropertyValueSet::appendLong | ( | const OUString & | rPropName, |
sal_Int64 | nValue | ||
) |
Definition at line 568 of file propertyvalueset.cxx.
|
inline |
Definition at line 166 of file propertyvalueset.hxx.
void ucbhelper::PropertyValueSet::appendObject | ( | const OUString & | rPropName, |
const css::uno::Any & | rValue | ||
) |
Referenced by appendPropertySet(), and appendPropertySetValue().
void ucbhelper::PropertyValueSet::appendPropertySet | ( | const css::uno::Reference< css::beans::XPropertySet > & | rSet | ) |
This method tries to append all property values contained in a property set to the value set.
@param rSet is a property set containing the property values.
Definition at line 595 of file propertyvalueset.cxx.
References Any, appendObject(), and Property.
bool ucbhelper::PropertyValueSet::appendPropertySetValue | ( | const css::uno::Reference< css::beans::XPropertySet > & | rSet, |
const css::beans::Property & | rProperty | ||
) |
This method tries to append a single property value contained in a property set to the value set.
@param rSet is a property set containing the property values. @param rProperty is the property for that the value shall be obtained from the given property set. @return False, if the property value cannot be obtained from the given property pet. True, otherwise.
Definition at line 651 of file propertyvalueset.cxx.
References Any, and appendObject().
|
inline |
Definition at line 142 of file propertyvalueset.hxx.
void ucbhelper::PropertyValueSet::appendString | ( | const OUString & | rPropName, |
const OUString & | rValue | ||
) |
Definition at line 554 of file propertyvalueset.cxx.
References String.
|
inline |
Definition at line 160 of file propertyvalueset.hxx.
void ucbhelper::PropertyValueSet::appendTimestamp | ( | const OUString & | rPropName, |
const css::util::DateTime & | rValue | ||
) |
|
private |
Definition at line 540 of file propertyvalueset.cxx.
References m_aMutex, m_pValues, ucbhelper_impl::PropertyValue::nOrigValue, ucbhelper_impl::PropertyValue::nPropsSet, and ucbhelper_impl::PropertyValue::sPropertyName.
|
inline |
Definition at line 172 of file propertyvalueset.hxx.
void ucbhelper::PropertyValueSet::appendVoid | ( | const OUString & | rPropName | ) |
Definition at line 589 of file propertyvalueset.cxx.
|
overridevirtual |
Definition at line 502 of file propertyvalueset.cxx.
References columnName, m_aMutex, m_pValues, n, and nCount.
|
overridevirtual |
Definition at line 492 of file propertyvalueset.cxx.
References Array, and ucbhelper_impl::PropertyValue::xArray.
|
overridevirtual |
Definition at line 327 of file propertyvalueset.cxx.
References BinaryStream, and ucbhelper_impl::PropertyValue::xBinaryStream.
|
overridevirtual |
Definition at line 478 of file propertyvalueset.cxx.
References Blob, and ucbhelper_impl::PropertyValue::xBlob.
|
overridevirtual |
Definition at line 248 of file propertyvalueset.cxx.
References Boolean.
|
overridevirtual |
Definition at line 255 of file propertyvalueset.cxx.
References Byte.
|
overridevirtual |
Definition at line 298 of file propertyvalueset.cxx.
References ucbhelper_impl::PropertyValue::aBytes, and Bytes.
|
overridevirtual |
Definition at line 335 of file propertyvalueset.cxx.
References CharacterStream, and ucbhelper_impl::PropertyValue::xCharacterStream.
|
overridevirtual |
Definition at line 485 of file propertyvalueset.cxx.
References Clob, and ucbhelper_impl::PropertyValue::xClob.
|
overridevirtual |
Definition at line 305 of file propertyvalueset.cxx.
References Date.
|
overridevirtual |
Definition at line 290 of file propertyvalueset.cxx.
References Double.
|
overridevirtual |
Definition at line 283 of file propertyvalueset.cxx.
References Float.
|
overridevirtual |
Definition at line 269 of file propertyvalueset.cxx.
References Int.
|
overridevirtual |
Definition at line 276 of file propertyvalueset.cxx.
References Long.
|
overridevirtual |
Definition at line 342 of file propertyvalueset.cxx.
References ucbhelper_impl::PropertyValue::aBytes, ucbhelper_impl::PropertyValue::aDate, Any, ucbhelper_impl::PropertyValue::aObject, Array, ucbhelper_impl::PropertyValue::aString, ucbhelper_impl::PropertyValue::aTime, ucbhelper_impl::PropertyValue::aTimestamp, ucbhelper_impl::PropertyValue::bBoolean, BinaryStream, Blob, Boolean, Byte, Bytes, CharacterStream, Clob, Date, Double, Float, Int, Long, m_aMutex, m_bWasNull, m_pValues, o3tl::make_unsigned(), ucbhelper_impl::PropertyValue::nByte, ucbhelper_impl::PropertyValue::nDouble, ucbhelper_impl::PropertyValue::nFloat, ucbhelper_impl::PropertyValue::nInt, ucbhelper_impl::PropertyValue::nLong, NONE, ucbhelper_impl::PropertyValue::nOrigValue, ucbhelper_impl::PropertyValue::nPropsSet, ucbhelper_impl::PropertyValue::nShort, Object, Ref, Short, String, Time, Timestamp, ucbhelper_impl::PropertyValue::xArray, ucbhelper_impl::PropertyValue::xBinaryStream, ucbhelper_impl::PropertyValue::xBlob, ucbhelper_impl::PropertyValue::xCharacterStream, ucbhelper_impl::PropertyValue::xClob, and ucbhelper_impl::PropertyValue::xRef.
Referenced by getValue().
|
overridevirtual |
Definition at line 471 of file propertyvalueset.cxx.
References Ref, and ucbhelper_impl::PropertyValue::xRef.
|
overridevirtual |
Definition at line 262 of file propertyvalueset.cxx.
References Short.
|
overridevirtual |
Definition at line 241 of file propertyvalueset.cxx.
References String.
|
overridevirtual |
Definition at line 312 of file propertyvalueset.cxx.
References Time.
|
overridevirtual |
Definition at line 319 of file propertyvalueset.cxx.
References Timestamp.
|
private |
Definition at line 522 of file propertyvalueset.cxx.
References m_aMutex, m_bTriedToGetTypeConverter, m_xContext, and m_xTypeConverter.
Referenced by getValue().
|
private |
Definition at line 150 of file propertyvalueset.cxx.
References Any, ucbhelper_impl::PropertyValue::aObject, getObject(), getTypeConverter(), m_aMutex, m_bWasNull, m_pValues, o3tl::make_unsigned(), NONE, ucbhelper_impl::PropertyValue::nOrigValue, ucbhelper_impl::PropertyValue::nPropsSet, Object, and xConverter.
|
overridevirtual |
Definition at line 231 of file propertyvalueset.cxx.
References m_bWasNull.
|
private |
Definition at line 64 of file propertyvalueset.hxx.
Referenced by appendValue(), findColumn(), getObject(), getTypeConverter(), and getValue().
|
private |
Definition at line 67 of file propertyvalueset.hxx.
Referenced by getTypeConverter().
|
private |
Definition at line 66 of file propertyvalueset.hxx.
Referenced by getObject(), getValue(), and wasNull().
|
private |
Definition at line 65 of file propertyvalueset.hxx.
Referenced by appendValue(), findColumn(), getObject(), and getValue().
|
private |
Definition at line 62 of file propertyvalueset.hxx.
Referenced by getTypeConverter().
|
private |
Definition at line 63 of file propertyvalueset.hxx.
Referenced by getTypeConverter().