bump product version to 6.3.0.0.beta1
[LibreOffice.git] / connectivity / source / drivers / postgresql / pq_sequenceresultsetmetadata.hxx
blob2bba06aa7d2f5f20e6c81ed915c8ea814dff1f8f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * Effective License of whole file:
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License version 2.1, as published by the Free Software Foundation.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
20 * Parts "Copyright by Sun Microsystems, Inc" prior to August 2011:
22 * The Contents of this file are made available subject to the terms of
23 * the GNU Lesser General Public License Version 2.1
25 * Copyright: 200? by Sun Microsystems, Inc.
27 * Contributor(s): Joerg Budischewski
29 * All parts contributed on or after August 2011:
31 * This Source Code Form is subject to the terms of the Mozilla Public
32 * License, v. 2.0. If a copy of the MPL was not distributed with this
33 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
35 ************************************************************************/
37 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_POSTGRESQL_PQ_SEQUENCERESULTSETMETADATA_HXX
38 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_POSTGRESQL_PQ_SEQUENCERESULTSETMETADATA_HXX
40 #include <cppuhelper/implbase.hxx>
41 #include <com/sun/star/sdbc/XResultSetMetaData.hpp>
43 #include "pq_connection.hxx"
44 #include "pq_statics.hxx"
46 namespace pq_sdbc_driver
48 class SequenceResultSetMetaData :
49 public ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData >
51 ColumnMetaDataVector m_columnData;
52 sal_Int32 m_colCount;
54 /// @throws css::sdbc::SQLException
55 /// @throws css::uno::RuntimeException
56 void checkColumnIndex( sal_Int32 columnIndex );
58 public:
59 SequenceResultSetMetaData(
60 const ColumnMetaDataVector &vec,
61 int colCount );
63 public:
64 // Methods
65 virtual sal_Int32 SAL_CALL getColumnCount( ) override;
66 virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) override;
67 virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) override;
68 virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) override;
69 virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) override;
70 virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) override;
71 virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) override;
72 virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) override;
73 virtual OUString SAL_CALL getColumnLabel( sal_Int32 column ) override;
74 virtual OUString SAL_CALL getColumnName( sal_Int32 column ) override;
75 virtual OUString SAL_CALL getSchemaName( sal_Int32 column ) override;
76 virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) override;
77 virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) override;
78 virtual OUString SAL_CALL getTableName( sal_Int32 column ) override;
79 virtual OUString SAL_CALL getCatalogName( sal_Int32 column ) override;
80 virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) override;
81 virtual OUString SAL_CALL getColumnTypeName( sal_Int32 column ) override;
82 virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) override;
83 virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) override;
84 virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) override;
85 virtual OUString SAL_CALL getColumnServiceName( sal_Int32 column ) override;
90 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_POSTGRESQL_PQ_SEQUENCERESULTSETMETADATA_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */