LibreOffice Module connectivity (master) 1
pq_sequenceresultsetmetadata.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*************************************************************************
3 *
4 * Effective License of whole file:
5 *
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.
9 *
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.
14 *
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
19 *
20 * Parts "Copyright by Sun Microsystems, Inc" prior to August 2011:
21 *
22 * The Contents of this file are made available subject to the terms of
23 * the GNU Lesser General Public License Version 2.1
24 *
25 * Copyright: 200? by Sun Microsystems, Inc.
26 *
27 * Contributor(s): Joerg Budischewski
28 *
29 * All parts contributed on or after August 2011:
30 *
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/.
34 *
35 ************************************************************************/
36
37#pragma once
38
40#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
41
42#include "pq_connection.hxx"
43#include "pq_statics.hxx"
44
45namespace pq_sdbc_driver
46{
48 public ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData >
49 {
51 sal_Int32 m_colCount;
52
55 void checkColumnIndex( sal_Int32 columnIndex );
56
57 public:
60 int colCount );
61
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;
85 };
86
87}
88
89/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString SAL_CALL getColumnTypeName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isWritable(sal_Int32 column) override
virtual sal_Int32 SAL_CALL isNullable(sal_Int32 column) override
virtual OUString SAL_CALL getColumnServiceName(sal_Int32 column) override
virtual OUString SAL_CALL getColumnLabel(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getColumnCount() override
virtual sal_Int32 SAL_CALL getScale(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getPrecision(sal_Int32 column) override
virtual sal_Bool SAL_CALL isSigned(sal_Int32 column) override
virtual OUString SAL_CALL getCatalogName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column) override
virtual OUString SAL_CALL getTableName(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column) override
virtual sal_Bool SAL_CALL isCurrency(sal_Int32 column) override
virtual OUString SAL_CALL getColumnName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isCaseSensitive(sal_Int32 column) override
virtual sal_Bool SAL_CALL isAutoIncrement(sal_Int32 column) override
virtual OUString SAL_CALL getSchemaName(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getColumnType(sal_Int32 column) override
virtual sal_Bool SAL_CALL isReadOnly(sal_Int32 column) override
SequenceResultSetMetaData(ColumnMetaDataVector &&vec, int colCount)
virtual sal_Bool SAL_CALL isSearchable(sal_Int32 column) override
std::vector< ColumnMetaData > ColumnMetaDataVector
Definition: pq_statics.hxx:88
unsigned char sal_Bool