LibreOffice Module connectivity (master) 1
drivers/firebird/ResultSetMetaData.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include "Connection.hxx"
23
24#include <ibase.h>
25
27#include <rtl/ref.hxx>
28
29#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
30
32 {
33 typedef ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData>
35
37 {
38 protected:
40 XSQLDA* m_pSqlda;
41
42 virtual ~OResultSetMetaData() override;
43
45 void verifyValidColumn(sal_Int32 column);
46 OUString getCharacterSet(sal_Int32 nIndex);
47 public:
48 // a constructor, which is required for returning objects:
50 XSQLDA* pSqlda)
51 : m_pConnection(pConnection)
52 , m_pSqlda(pSqlda)
53 {}
54
55 virtual sal_Int32 SAL_CALL getColumnCount() override;
56 virtual sal_Bool SAL_CALL isAutoIncrement(sal_Int32 column) override;
57 virtual sal_Bool SAL_CALL isCaseSensitive(sal_Int32 column) override;
58 virtual sal_Bool SAL_CALL isSearchable(sal_Int32 column) override;
59 virtual sal_Bool SAL_CALL isCurrency(sal_Int32 column) override;
60 virtual sal_Int32 SAL_CALL isNullable(sal_Int32 column) override;
61 virtual sal_Bool SAL_CALL isSigned(sal_Int32 column) override;
62 virtual sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column) override;
63 virtual OUString SAL_CALL getColumnLabel(sal_Int32 column) override;
64 virtual OUString SAL_CALL getColumnName(sal_Int32 column) override;
65 virtual OUString SAL_CALL getSchemaName(sal_Int32 column) override;
66 virtual sal_Int32 SAL_CALL getPrecision(sal_Int32 column) override;
67 virtual sal_Int32 SAL_CALL getScale(sal_Int32 column) override;
68 virtual OUString SAL_CALL getTableName(sal_Int32 column) override;
69 virtual OUString SAL_CALL getCatalogName(sal_Int32 column) override;
70 virtual sal_Int32 SAL_CALL getColumnType(sal_Int32 column) override;
71 virtual OUString SAL_CALL getColumnTypeName(sal_Int32 column) override;
72 virtual sal_Bool SAL_CALL isReadOnly(sal_Int32 column) override;
73 virtual sal_Bool SAL_CALL isWritable(sal_Int32 column) override;
74 virtual sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column) override;
75 virtual OUString SAL_CALL getColumnServiceName(sal_Int32 column) override;
76 };
77
78}
79
80/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
virtual sal_Bool SAL_CALL isSearchable(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getPrecision(sal_Int32 column) override
virtual OUString SAL_CALL getSchemaName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isCaseSensitive(sal_Int32 column) override
virtual sal_Bool SAL_CALL isCurrency(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getColumnType(sal_Int32 column) override
virtual OUString SAL_CALL getColumnTypeName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isReadOnly(sal_Int32 column) override
virtual OUString SAL_CALL getColumnLabel(sal_Int32 column) override
virtual sal_Bool SAL_CALL isWritable(sal_Int32 column) override
virtual sal_Bool SAL_CALL isAutoIncrement(sal_Int32 column) override
virtual OUString SAL_CALL getCatalogName(sal_Int32 column) override
virtual sal_Int32 SAL_CALL isNullable(sal_Int32 column) override
virtual OUString SAL_CALL getColumnServiceName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isSigned(sal_Int32 column) override
virtual OUString SAL_CALL getTableName(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getColumnCount() override
virtual OUString SAL_CALL getColumnName(sal_Int32 column) override
OResultSetMetaData(Connection *pConnection, XSQLDA *pSqlda)
virtual sal_Int32 SAL_CALL getScale(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column) override
virtual sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column) override
::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData > OResultSetMetaData_BASE
unsigned char sal_Bool