bump product version to 6.3.0.0.beta1
[LibreOffice.git] / connectivity / source / drivers / mysqlc / mysqlc_databasemetadata.hxx
blob6814a574c87d81cd6d4575a25152e424fbd998b5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_MYSQLC_SOURCE_MYSQLC_DATABASEMETADATA_HXX
21 #define INCLUDED_MYSQLC_SOURCE_MYSQLC_DATABASEMETADATA_HXX
23 #include "mysqlc_connection.hxx"
25 #include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
26 #include <cppuhelper/implbase1.hxx>
28 namespace connectivity
30 namespace mysqlc
32 using ::com::sun::star::uno::Any;
34 //************ Class: ODatabaseMetaData
36 typedef ::cppu::WeakImplHelper1<css::sdbc::XDatabaseMetaData> ODatabaseMetaData_BASE;
38 class ODatabaseMetaData final : public ODatabaseMetaData_BASE
40 OConnection& m_rConnection;
41 MYSQL* m_pMySql;
43 public:
44 const OConnection& getOwnConnection() const { return m_rConnection; }
46 explicit ODatabaseMetaData(OConnection& _rCon, MYSQL* pMySql);
47 virtual ~ODatabaseMetaData() override;
49 // as I mentioned before this interface is really BIG
50 // XDatabaseMetaData
51 sal_Bool SAL_CALL allProceduresAreCallable() override;
52 sal_Bool SAL_CALL allTablesAreSelectable() override;
53 OUString SAL_CALL getURL() override;
54 OUString SAL_CALL getUserName() override;
55 sal_Bool SAL_CALL isReadOnly() override;
56 sal_Bool SAL_CALL nullsAreSortedHigh() override;
57 sal_Bool SAL_CALL nullsAreSortedLow() override;
58 sal_Bool SAL_CALL nullsAreSortedAtStart() override;
59 sal_Bool SAL_CALL nullsAreSortedAtEnd() override;
60 OUString SAL_CALL getDatabaseProductName() override;
61 OUString SAL_CALL getDatabaseProductVersion() override;
62 OUString SAL_CALL getDriverName() override;
63 OUString SAL_CALL getDriverVersion() override;
64 sal_Int32 SAL_CALL getDriverMajorVersion() override;
65 sal_Int32 SAL_CALL getDriverMinorVersion() override;
66 sal_Bool SAL_CALL usesLocalFiles() override;
67 sal_Bool SAL_CALL usesLocalFilePerTable() override;
68 sal_Bool SAL_CALL supportsMixedCaseIdentifiers() override;
69 sal_Bool SAL_CALL storesUpperCaseIdentifiers() override;
70 sal_Bool SAL_CALL storesLowerCaseIdentifiers() override;
71 sal_Bool SAL_CALL storesMixedCaseIdentifiers() override;
72 sal_Bool SAL_CALL supportsMixedCaseQuotedIdentifiers() override;
73 sal_Bool SAL_CALL storesUpperCaseQuotedIdentifiers() override;
74 sal_Bool SAL_CALL storesLowerCaseQuotedIdentifiers() override;
75 sal_Bool SAL_CALL storesMixedCaseQuotedIdentifiers() override;
76 OUString SAL_CALL getIdentifierQuoteString() override;
77 OUString SAL_CALL getSQLKeywords() override;
78 OUString SAL_CALL getNumericFunctions() override;
79 OUString SAL_CALL getStringFunctions() override;
80 OUString SAL_CALL getSystemFunctions() override;
81 OUString SAL_CALL getTimeDateFunctions() override;
82 OUString SAL_CALL getSearchStringEscape() override;
83 OUString SAL_CALL getExtraNameCharacters() override;
84 sal_Bool SAL_CALL supportsAlterTableWithAddColumn() override;
85 sal_Bool SAL_CALL supportsAlterTableWithDropColumn() override;
86 sal_Bool SAL_CALL supportsColumnAliasing() override;
87 sal_Bool SAL_CALL nullPlusNonNullIsNull() override;
88 sal_Bool SAL_CALL supportsTypeConversion() override;
89 sal_Bool SAL_CALL supportsConvert(sal_Int32 fromType, sal_Int32 toType) override;
90 sal_Bool SAL_CALL supportsTableCorrelationNames() override;
91 sal_Bool SAL_CALL supportsDifferentTableCorrelationNames() override;
92 sal_Bool SAL_CALL supportsExpressionsInOrderBy() override;
93 sal_Bool SAL_CALL supportsOrderByUnrelated() override;
94 sal_Bool SAL_CALL supportsGroupBy() override;
95 sal_Bool SAL_CALL supportsGroupByUnrelated() override;
96 sal_Bool SAL_CALL supportsGroupByBeyondSelect() override;
97 sal_Bool SAL_CALL supportsLikeEscapeClause() override;
98 sal_Bool SAL_CALL supportsMultipleResultSets() override;
99 sal_Bool SAL_CALL supportsMultipleTransactions() override;
100 sal_Bool SAL_CALL supportsNonNullableColumns() override;
101 sal_Bool SAL_CALL supportsMinimumSQLGrammar() override;
102 sal_Bool SAL_CALL supportsCoreSQLGrammar() override;
103 sal_Bool SAL_CALL supportsExtendedSQLGrammar() override;
104 sal_Bool SAL_CALL supportsANSI92EntryLevelSQL() override;
105 sal_Bool SAL_CALL supportsANSI92IntermediateSQL() override;
106 sal_Bool SAL_CALL supportsANSI92FullSQL() override;
107 sal_Bool SAL_CALL supportsIntegrityEnhancementFacility() override;
108 sal_Bool SAL_CALL supportsOuterJoins() override;
109 sal_Bool SAL_CALL supportsFullOuterJoins() override;
110 sal_Bool SAL_CALL supportsLimitedOuterJoins() override;
111 OUString SAL_CALL getSchemaTerm() override;
112 OUString SAL_CALL getProcedureTerm() override;
113 OUString SAL_CALL getCatalogTerm() override;
114 sal_Bool SAL_CALL isCatalogAtStart() override;
115 OUString SAL_CALL getCatalogSeparator() override;
116 sal_Bool SAL_CALL supportsSchemasInDataManipulation() override;
117 sal_Bool SAL_CALL supportsSchemasInProcedureCalls() override;
118 sal_Bool SAL_CALL supportsSchemasInTableDefinitions() override;
119 sal_Bool SAL_CALL supportsSchemasInIndexDefinitions() override;
120 sal_Bool SAL_CALL supportsSchemasInPrivilegeDefinitions() override;
121 sal_Bool SAL_CALL supportsCatalogsInDataManipulation() override;
122 sal_Bool SAL_CALL supportsCatalogsInProcedureCalls() override;
123 sal_Bool SAL_CALL supportsCatalogsInTableDefinitions() override;
124 sal_Bool SAL_CALL supportsCatalogsInIndexDefinitions() override;
125 sal_Bool SAL_CALL supportsCatalogsInPrivilegeDefinitions() override;
126 sal_Bool SAL_CALL supportsPositionedDelete() override;
127 sal_Bool SAL_CALL supportsPositionedUpdate() override;
128 sal_Bool SAL_CALL supportsSelectForUpdate() override;
129 sal_Bool SAL_CALL supportsStoredProcedures() override;
130 sal_Bool SAL_CALL supportsSubqueriesInComparisons() override;
131 sal_Bool SAL_CALL supportsSubqueriesInExists() override;
132 sal_Bool SAL_CALL supportsSubqueriesInIns() override;
133 sal_Bool SAL_CALL supportsSubqueriesInQuantifieds() override;
134 sal_Bool SAL_CALL supportsCorrelatedSubqueries() override;
135 sal_Bool SAL_CALL supportsUnion() override;
136 sal_Bool SAL_CALL supportsUnionAll() override;
137 sal_Bool SAL_CALL supportsOpenCursorsAcrossCommit() override;
138 sal_Bool SAL_CALL supportsOpenCursorsAcrossRollback() override;
139 sal_Bool SAL_CALL supportsOpenStatementsAcrossCommit() override;
140 sal_Bool SAL_CALL supportsOpenStatementsAcrossRollback() override;
141 sal_Int32 SAL_CALL getMaxBinaryLiteralLength() override;
142 sal_Int32 SAL_CALL getMaxCharLiteralLength() override;
143 sal_Int32 SAL_CALL getMaxColumnNameLength() override;
144 sal_Int32 SAL_CALL getMaxColumnsInGroupBy() override;
145 sal_Int32 SAL_CALL getMaxColumnsInIndex() override;
146 sal_Int32 SAL_CALL getMaxColumnsInOrderBy() override;
147 sal_Int32 SAL_CALL getMaxColumnsInSelect() override;
148 sal_Int32 SAL_CALL getMaxColumnsInTable() override;
149 sal_Int32 SAL_CALL getMaxConnections() override;
150 sal_Int32 SAL_CALL getMaxCursorNameLength() override;
151 sal_Int32 SAL_CALL getMaxIndexLength() override;
152 sal_Int32 SAL_CALL getMaxSchemaNameLength() override;
153 sal_Int32 SAL_CALL getMaxProcedureNameLength() override;
154 sal_Int32 SAL_CALL getMaxCatalogNameLength() override;
155 sal_Int32 SAL_CALL getMaxRowSize() override;
156 sal_Bool SAL_CALL doesMaxRowSizeIncludeBlobs() override;
157 sal_Int32 SAL_CALL getMaxStatementLength() override;
158 sal_Int32 SAL_CALL getMaxStatements() override;
159 sal_Int32 SAL_CALL getMaxTableNameLength() override;
160 sal_Int32 SAL_CALL getMaxTablesInSelect() override;
161 sal_Int32 SAL_CALL getMaxUserNameLength() override;
162 sal_Int32 SAL_CALL getDefaultTransactionIsolation() override;
163 sal_Bool SAL_CALL supportsTransactions() override;
164 sal_Bool SAL_CALL supportsTransactionIsolationLevel(sal_Int32 level) override;
165 sal_Bool SAL_CALL supportsDataDefinitionAndDataManipulationTransactions() override;
166 sal_Bool SAL_CALL supportsDataManipulationTransactionsOnly() override;
167 sal_Bool SAL_CALL dataDefinitionCausesTransactionCommit() override;
168 sal_Bool SAL_CALL dataDefinitionIgnoredInTransactions() override;
169 css::uno::Reference<css::sdbc::XResultSet>
170 SAL_CALL getProcedures(const Any& catalog, const OUString& schemaPattern,
171 const OUString& procedureNamePattern) override;
172 css::uno::Reference<css::sdbc::XResultSet>
173 SAL_CALL getProcedureColumns(const Any& catalog, const OUString& schemaPattern,
174 const OUString& procedureNamePattern,
175 const OUString& columnNamePattern) override;
176 css::uno::Reference<css::sdbc::XResultSet>
177 SAL_CALL getTables(const Any& catalog, const OUString& schemaPattern,
178 const OUString& tableNamePattern,
179 const css::uno::Sequence<OUString>& types) override;
180 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL getSchemas() override;
181 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL getCatalogs() override;
182 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL getTableTypes() override;
183 css::uno::Reference<css::sdbc::XResultSet>
184 SAL_CALL getColumns(const Any& catalog, const OUString& schemaPattern,
185 const OUString& tableNamePattern,
186 const OUString& columnNamePattern) override;
187 css::uno::Reference<css::sdbc::XResultSet>
188 SAL_CALL getColumnPrivileges(const Any& catalog, const OUString& schema,
189 const OUString& table,
190 const OUString& columnNamePattern) override;
191 css::uno::Reference<css::sdbc::XResultSet>
192 SAL_CALL getTablePrivileges(const Any& catalog, const OUString& schemaPattern,
193 const OUString& tableNamePattern) override;
194 css::uno::Reference<css::sdbc::XResultSet>
195 SAL_CALL getBestRowIdentifier(const Any& catalog, const OUString& schema,
196 const OUString& table, sal_Int32 scope,
197 sal_Bool nullable) override;
198 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL
199 getVersionColumns(const Any& catalog, const OUString& schema, const OUString& table) override;
200 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL
201 getPrimaryKeys(const Any& catalog, const OUString& schema, const OUString& table) override;
202 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL
203 getImportedKeys(const Any& catalog, const OUString& schema, const OUString& table) override;
204 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL
205 getExportedKeys(const Any& catalog, const OUString& schema, const OUString& table) override;
206 css::uno::Reference<css::sdbc::XResultSet>
207 SAL_CALL getCrossReference(const Any& primaryCatalog, const OUString& primarySchema,
208 const OUString& primaryTable, const Any& foreignCatalog,
209 const OUString& foreignSchema,
210 const OUString& foreignTable) override;
211 css::uno::Reference<css::sdbc::XResultSet> SAL_CALL getTypeInfo() override;
212 css::uno::Reference<css::sdbc::XResultSet>
213 SAL_CALL getIndexInfo(const Any& catalog, const OUString& schema, const OUString& table,
214 sal_Bool unique, sal_Bool approximate) override;
215 sal_Bool SAL_CALL supportsResultSetType(sal_Int32 setType) override;
216 sal_Bool SAL_CALL supportsResultSetConcurrency(sal_Int32 setType,
217 sal_Int32 concurrency) override;
218 sal_Bool SAL_CALL ownUpdatesAreVisible(sal_Int32 setType) override;
219 sal_Bool SAL_CALL ownDeletesAreVisible(sal_Int32 setType) override;
220 sal_Bool SAL_CALL ownInsertsAreVisible(sal_Int32 setType) override;
221 sal_Bool SAL_CALL othersUpdatesAreVisible(sal_Int32 setType) override;
222 sal_Bool SAL_CALL othersDeletesAreVisible(sal_Int32 setType) override;
223 sal_Bool SAL_CALL othersInsertsAreVisible(sal_Int32 setType) override;
224 sal_Bool SAL_CALL updatesAreDetected(sal_Int32 setType) override;
225 sal_Bool SAL_CALL deletesAreDetected(sal_Int32 setType) override;
226 sal_Bool SAL_CALL insertsAreDetected(sal_Int32 setType) override;
227 sal_Bool SAL_CALL supportsBatchUpdates() override;
228 css::uno::Reference<css::sdbc::XResultSet>
229 SAL_CALL getUDTs(const Any& catalog, const OUString& schemaPattern,
230 const OUString& typeNamePattern,
231 const css::uno::Sequence<sal_Int32>& types) override;
232 css::uno::Reference<css::sdbc::XConnection> SAL_CALL getConnection() override;
237 #endif // INCLUDED_MYSQLC_SOURCE_MYSQLC_DATABASEMETADATA_HXX
239 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */