tdf#144694 In direct SQL dialog, activate options 'Run SQL command
[LibreOffice.git] / connectivity / source / drivers / postgresql / pq_sequenceresultsetmetadata.hxx
blob3cd32ff66d7a3833039778bfe7e7bcdf9a307023
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 #pragma once
39 #include <cppuhelper/implbase.hxx>
40 #include <com/sun/star/sdbc/XResultSetMetaData.hpp>
42 #include "pq_connection.hxx"
43 #include "pq_statics.hxx"
45 namespace pq_sdbc_driver
47 class SequenceResultSetMetaData :
48 public ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData >
50 ColumnMetaDataVector m_columnData;
51 sal_Int32 m_colCount;
53 /// @throws css::sdbc::SQLException
54 /// @throws css::uno::RuntimeException
55 void checkColumnIndex( sal_Int32 columnIndex );
57 public:
58 SequenceResultSetMetaData(
59 ColumnMetaDataVector&& vec,
60 int colCount );
62 public:
63 // Methods
64 virtual sal_Int32 SAL_CALL getColumnCount( ) override;
65 virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) override;
66 virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) override;
67 virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) override;
68 virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) override;
69 virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) override;
70 virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) override;
71 virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) override;
72 virtual OUString SAL_CALL getColumnLabel( sal_Int32 column ) override;
73 virtual OUString SAL_CALL getColumnName( sal_Int32 column ) override;
74 virtual OUString SAL_CALL getSchemaName( sal_Int32 column ) override;
75 virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) override;
76 virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) override;
77 virtual OUString SAL_CALL getTableName( sal_Int32 column ) override;
78 virtual OUString SAL_CALL getCatalogName( sal_Int32 column ) override;
79 virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) override;
80 virtual OUString SAL_CALL getColumnTypeName( sal_Int32 column ) override;
81 virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) override;
82 virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) override;
83 virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) override;
84 virtual OUString SAL_CALL getColumnServiceName( sal_Int32 column ) override;
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */