2010-10-27 12:33:13 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2013-11-05 03:50:50 +01:00
|
|
|
#ifndef INCLUDED_DBACCESS_SOURCE_CORE_API_RESULTCOLUMN_HXX
|
|
|
|
#define INCLUDED_DBACCESS_SOURCE_CORE_API_RESULTCOLUMN_HXX
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2012-06-21 17:39:01 +01:00
|
|
|
#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
|
2000-09-18 23:16:46 +00:00
|
|
|
#include <column.hxx>
|
2009-09-08 09:50:48 +00:00
|
|
|
#include <boost/optional.hpp>
|
2000-11-03 13:32:31 +00:00
|
|
|
namespace dbaccess
|
2000-09-18 23:16:46 +00:00
|
|
|
{
|
2014-02-25 18:11:51 +01:00
|
|
|
|
2000-11-03 13:32:31 +00:00
|
|
|
// OResultColumn
|
2014-02-25 18:11:51 +01:00
|
|
|
|
2000-11-03 13:32:31 +00:00
|
|
|
class OResultColumn : public OColumn,
|
|
|
|
public ::comphelper::OPropertyArrayUsageHelper < OResultColumn >
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Reference < ::com::sun::star::sdbc::XResultSetMetaData > m_xMetaData;
|
2005-12-19 16:15:05 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xDBMetaData;
|
|
|
|
sal_Int32 m_nPos;
|
|
|
|
::com::sun::star::uno::Any m_aIsRowVersion;
|
2009-09-08 09:50:48 +00:00
|
|
|
mutable ::boost::optional< sal_Bool > m_isSigned;
|
|
|
|
mutable ::boost::optional< sal_Bool > m_isCurrency;
|
|
|
|
mutable ::boost::optional< sal_Bool > m_bSearchable;
|
|
|
|
mutable ::boost::optional< sal_Bool > m_isCaseSensitive;
|
|
|
|
mutable ::boost::optional< sal_Bool > m_isReadOnly;
|
|
|
|
mutable ::boost::optional< sal_Bool > m_isWritable;
|
|
|
|
mutable ::boost::optional< sal_Bool > m_isDefinitelyWritable;
|
|
|
|
mutable ::boost::optional< sal_Bool > m_isAutoIncrement;
|
|
|
|
mutable ::boost::optional< sal_Int32 > m_isNullable;
|
2013-04-07 12:06:47 +02:00
|
|
|
mutable ::boost::optional< OUString > m_sColumnLabel;
|
2009-09-08 09:50:48 +00:00
|
|
|
mutable ::boost::optional< sal_Int32 > m_nColumnDisplaySize;
|
|
|
|
mutable ::boost::optional< sal_Int32 > m_nColumnType;
|
|
|
|
mutable ::boost::optional< sal_Int32 > m_nPrecision;
|
|
|
|
mutable ::boost::optional< sal_Int32 > m_nScale;
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2001-08-15 12:05:15 +00:00
|
|
|
virtual ~OResultColumn();
|
2000-11-03 13:32:31 +00:00
|
|
|
public:
|
2005-12-19 16:15:05 +00:00
|
|
|
OResultColumn(
|
|
|
|
const ::com::sun::star::uno::Reference < ::com::sun::star::sdbc::XResultSetMetaData >& _xMetaData,
|
|
|
|
sal_Int32 _nPos,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _rxDBMeta );
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2000-11-03 13:32:31 +00:00
|
|
|
// com::sun::star::lang::XTypeProvider
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2000-11-03 13:32:31 +00:00
|
|
|
// com::sun::star::lang::XServiceInfo
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2000-11-03 13:32:31 +00:00
|
|
|
// cppu::OComponentHelper
|
2015-04-14 12:44:47 +02:00
|
|
|
virtual void SAL_CALL disposing() SAL_OVERRIDE;
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2000-11-03 13:32:31 +00:00
|
|
|
// comphelper::OPropertyArrayUsageHelper
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const SAL_OVERRIDE;
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2000-11-03 13:32:31 +00:00
|
|
|
// cppu::OPropertySetHelper
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
|
2000-11-03 13:32:31 +00:00
|
|
|
virtual void SAL_CALL getFastPropertyValue(
|
|
|
|
::com::sun::star::uno::Any& rValue,
|
|
|
|
sal_Int32 nHandle
|
2014-03-27 18:12:18 +01:00
|
|
|
) const SAL_OVERRIDE;
|
2005-12-19 16:15:05 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void impl_determineIsRowVersion_nothrow();
|
2006-06-20 01:40:45 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
using ::cppu::OPropertySetHelper::getFastPropertyValue;
|
2000-11-03 13:32:31 +00:00
|
|
|
};
|
|
|
|
}
|
2013-11-05 03:50:50 +01:00
|
|
|
#endif // INCLUDED_DBACCESS_SOURCE_CORE_API_RESULTCOLUMN_HXX
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2010-10-27 12:33:13 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|