LibreOffice Module connectivity (master) 1
inc/java/sql/ResultSetMetaData.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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#pragma once
20
21#include <java/lang/Object.hxx>
22#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
24
25namespace connectivity
26{
27
28 //************ Class: java.sql.ResultSetMetaData
29
30 class java_sql_Connection;
31 class java_sql_ResultSetMetaData final : public ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData>,
32 public java_lang_Object
33 {
35 sal_Int32 m_nColumnCount;
36
37 // Static data for the class
38 static jclass theClass;
39 virtual ~java_sql_ResultSetMetaData() override;
40 public:
41 virtual jclass getMyClass() const override;
42
43 // A ctor that is needed for returning the object
44 java_sql_ResultSetMetaData( JNIEnv * pEnv, jobject myObj, java_sql_Connection& _rCon );
45
46 virtual sal_Int32 SAL_CALL getColumnCount( ) override;
47 virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) override;
48 virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) override;
49 virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) override;
50 virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) override;
51 virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) override;
52 virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) override;
53 virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) override;
54 virtual OUString SAL_CALL getColumnLabel( sal_Int32 column ) override;
55 virtual OUString SAL_CALL getColumnName( sal_Int32 column ) override;
56 virtual OUString SAL_CALL getSchemaName( sal_Int32 column ) override;
57 virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) override;
58 virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) override;
59 virtual OUString SAL_CALL getTableName( sal_Int32 column ) override;
60 virtual OUString SAL_CALL getCatalogName( sal_Int32 column ) override;
61 virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) override;
62 virtual OUString SAL_CALL getColumnTypeName( sal_Int32 column ) override;
63 virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) override;
64 virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) override;
65 virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) override;
66 virtual OUString SAL_CALL getColumnServiceName( sal_Int32 column ) override;
67 };
68}
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL isAutoIncrement(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getPrecision(sal_Int32 column) override
virtual sal_Bool SAL_CALL isCaseSensitive(sal_Int32 column) override
virtual OUString SAL_CALL getColumnTypeName(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getScale(sal_Int32 column) override
virtual OUString SAL_CALL getSchemaName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isCurrency(sal_Int32 column) override
virtual jclass getMyClass() const override
virtual sal_Int32 SAL_CALL getColumnType(sal_Int32 column) override
virtual sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column) override
virtual OUString SAL_CALL getColumnName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isSearchable(sal_Int32 column) override
virtual OUString SAL_CALL getColumnServiceName(sal_Int32 column) override
virtual OUString SAL_CALL getTableName(sal_Int32 column) override
virtual sal_Bool SAL_CALL isSigned(sal_Int32 column) override
virtual OUString SAL_CALL getColumnLabel(sal_Int32 column) override
virtual sal_Bool SAL_CALL isReadOnly(sal_Int32 column) override
virtual sal_Int32 SAL_CALL isNullable(sal_Int32 column) override
virtual sal_Bool SAL_CALL isWritable(sal_Int32 column) override
java_sql_ResultSetMetaData(JNIEnv *pEnv, jobject myObj, java_sql_Connection &_rCon)
virtual sal_Int32 SAL_CALL getColumnCount() override
virtual sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column) override
virtual OUString SAL_CALL getCatalogName(sal_Int32 column) override
unsigned char sal_Bool