LibreOffice Module dbaccess (master) 1
resultcolumn.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
23#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
24#include <column.hxx>
25#include <optional>
27namespace dbaccess
28{
29
30 // OResultColumn
31
32 class OResultColumn : public OColumn,
33 public ::comphelper::OPropertyArrayUsageHelper < OResultColumn >
34 {
35 protected:
36 css::uno::Reference < css::sdbc::XResultSetMetaData > m_xMetaData;
37 css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xDBMetaData;
38 sal_Int32 m_nPos;
39 css::uno::Any m_aIsRowVersion;
40 mutable ::std::optional< sal_Bool > m_isSigned;
41 mutable ::std::optional< sal_Bool > m_isCurrency;
42 mutable ::std::optional< sal_Bool > m_bSearchable;
43 mutable ::std::optional< sal_Bool > m_isCaseSensitive;
44 mutable ::std::optional< sal_Bool > m_isReadOnly;
45 mutable ::std::optional< sal_Bool > m_isWritable;
46 mutable ::std::optional< sal_Bool > m_isDefinitelyWritable;
47 mutable ::std::optional< sal_Bool > m_isAutoIncrement;
48 mutable ::std::optional< sal_Int32 > m_isNullable;
49 mutable ::std::optional< OUString > m_sColumnLabel;
50 mutable ::std::optional< sal_Int32 > m_nColumnDisplaySize;
51 mutable ::std::optional< sal_Int32 > m_nColumnType;
52 mutable ::std::optional< sal_Int32 > m_nPrecision;
53 mutable ::std::optional< sal_Int32 > m_nScale;
54
55 virtual ~OResultColumn() override;
56 public:
58 const css::uno::Reference < css::sdbc::XResultSetMetaData >& _xMetaData,
59 sal_Int32 _nPos,
60 const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _rxDBMeta );
61
62 // css::lang::XTypeProvider
63 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
64
65 // css::lang::XServiceInfo
66 virtual OUString SAL_CALL getImplementationName( ) override;
67 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
68
69 // cppu::OComponentHelper
70 virtual void SAL_CALL disposing() override;
71
72 // comphelper::OPropertyArrayUsageHelper
73 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
74
75 // cppu::OPropertySetHelper
76 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
77 virtual void SAL_CALL getFastPropertyValue( css::uno::Any& rValue, sal_Int32 nHandle ) const override;
78
79 private:
81
82 protected:
83 using ::cppu::OPropertySetHelper::getFastPropertyValue;
84 };
85}
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
mutable ::std::optional< sal_Bool > m_isSigned
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData
void impl_determineIsRowVersion_nothrow()
mutable ::std::optional< sal_Bool > m_isAutoIncrement
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
mutable ::std::optional< sal_Bool > m_bSearchable
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
mutable ::std::optional< sal_Int32 > m_nColumnDisplaySize
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xDBMetaData
virtual ~OResultColumn() override
mutable ::std::optional< sal_Int32 > m_isNullable
mutable ::std::optional< sal_Bool > m_isReadOnly
mutable ::std::optional< sal_Bool > m_isCaseSensitive
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
mutable ::std::optional< sal_Int32 > m_nPrecision
virtual void SAL_CALL disposing() override
virtual OUString SAL_CALL getImplementationName() override
css::uno::Any m_aIsRowVersion
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
OResultColumn(const css::uno::Reference< css::sdbc::XResultSetMetaData > &_xMetaData, sal_Int32 _nPos, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_rxDBMeta)
mutable ::std::optional< sal_Bool > m_isWritable
mutable ::std::optional< sal_Int32 > m_nColumnType
mutable ::std::optional< OUString > m_sColumnLabel
mutable ::std::optional< sal_Int32 > m_nScale
mutable ::std::optional< sal_Bool > m_isDefinitelyWritable
mutable ::std::optional< sal_Bool > m_isCurrency