Bump version to 5.0-14
[LibreOffice.git] / dbaccess / source / core / api / resultcolumn.hxx
blob7f019c6a462c392cf616650f2674a7a87ac5b80a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_DBACCESS_SOURCE_CORE_API_RESULTCOLUMN_HXX
21 #define INCLUDED_DBACCESS_SOURCE_CORE_API_RESULTCOLUMN_HXX
23 #include <com/sun/star/sdbc/XResultSetMetaData.hpp>
24 #include <column.hxx>
25 #include <boost/optional.hpp>
26 namespace dbaccess
29 // OResultColumn
31 class OResultColumn : public OColumn,
32 public ::comphelper::OPropertyArrayUsageHelper < OResultColumn >
34 protected:
35 ::com::sun::star::uno::Reference < ::com::sun::star::sdbc::XResultSetMetaData > m_xMetaData;
36 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xDBMetaData;
37 sal_Int32 m_nPos;
38 ::com::sun::star::uno::Any m_aIsRowVersion;
39 mutable ::boost::optional< sal_Bool > m_isSigned;
40 mutable ::boost::optional< sal_Bool > m_isCurrency;
41 mutable ::boost::optional< sal_Bool > m_bSearchable;
42 mutable ::boost::optional< sal_Bool > m_isCaseSensitive;
43 mutable ::boost::optional< sal_Bool > m_isReadOnly;
44 mutable ::boost::optional< sal_Bool > m_isWritable;
45 mutable ::boost::optional< sal_Bool > m_isDefinitelyWritable;
46 mutable ::boost::optional< sal_Bool > m_isAutoIncrement;
47 mutable ::boost::optional< sal_Int32 > m_isNullable;
48 mutable ::boost::optional< OUString > m_sColumnLabel;
49 mutable ::boost::optional< sal_Int32 > m_nColumnDisplaySize;
50 mutable ::boost::optional< sal_Int32 > m_nColumnType;
51 mutable ::boost::optional< sal_Int32 > m_nPrecision;
52 mutable ::boost::optional< sal_Int32 > m_nScale;
54 virtual ~OResultColumn();
55 public:
56 OResultColumn(
57 const ::com::sun::star::uno::Reference < ::com::sun::star::sdbc::XResultSetMetaData >& _xMetaData,
58 sal_Int32 _nPos,
59 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _rxDBMeta );
61 // com::sun::star::lang::XTypeProvider
62 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
64 // com::sun::star::lang::XServiceInfo
65 virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
66 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
68 // cppu::OComponentHelper
69 virtual void SAL_CALL disposing() SAL_OVERRIDE;
71 // comphelper::OPropertyArrayUsageHelper
72 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const SAL_OVERRIDE;
74 // cppu::OPropertySetHelper
75 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
76 virtual void SAL_CALL getFastPropertyValue(
77 ::com::sun::star::uno::Any& rValue,
78 sal_Int32 nHandle
79 ) const SAL_OVERRIDE;
81 private:
82 void impl_determineIsRowVersion_nothrow();
84 protected:
85 using ::cppu::OPropertySetHelper::getFastPropertyValue;
88 #endif // INCLUDED_DBACCESS_SOURCE_CORE_API_RESULTCOLUMN_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */