bump product version to 6.3.0.0.beta1
[LibreOffice.git] / connectivity / source / drivers / mork / MDatabaseMetaData.hxx
blobf3a16a566ec151f5fb6c114b0e5fb0240a4e451e
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/.
8 */
10 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATA_HXX
11 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATA_HXX
13 #include <memory>
14 #include <TDatabaseMetaDataBase.hxx>
16 namespace connectivity
18 namespace mork
20 class MDatabaseMetaDataHelper;
22 //************ Class: ODatabaseMetaData
25 class ODatabaseMetaData : public ODatabaseMetaDataBase
27 OConnection* m_pConnection;
28 std::unique_ptr<MDatabaseMetaDataHelper>
29 m_pMetaDataHelper;
31 /// @throws css::sdbc::SQLException
32 ODatabaseMetaDataResultSet::ORows getColumnRows( const OUString& tableNamePattern, const OUString& columnNamePattern );
34 protected:
35 virtual ~ODatabaseMetaData() override;
37 public:
38 explicit ODatabaseMetaData(OConnection* _pCon);
40 private:
41 virtual css::uno::Reference< css::sdbc::XResultSet > impl_getTypeInfo_throw() override;
42 // cached database information
43 virtual OUString impl_getIdentifierQuoteString_throw( ) override;
44 virtual bool impl_isCatalogAtStart_throw( ) override;
45 virtual OUString impl_getCatalogSeparator_throw( ) override;
46 virtual bool impl_supportsCatalogsInTableDefinitions_throw( ) override;
47 virtual bool impl_supportsSchemasInTableDefinitions_throw( ) override ;
48 virtual bool impl_supportsCatalogsInDataManipulation_throw( ) override;
49 virtual bool impl_supportsSchemasInDataManipulation_throw( ) override ;
50 virtual bool impl_supportsMixedCaseQuotedIdentifiers_throw( ) override ;
51 virtual bool impl_supportsAlterTableWithAddColumn_throw( ) override;
52 virtual bool impl_supportsAlterTableWithDropColumn_throw( ) override;
53 virtual sal_Int32 impl_getMaxStatements_throw( ) override;
54 virtual sal_Int32 impl_getMaxTablesInSelect_throw( ) override;
55 virtual bool impl_storesMixedCaseQuotedIdentifiers_throw( ) override;
57 // as I mentioned before this interface is really BIG
58 // XDatabaseMetaData
59 virtual sal_Bool SAL_CALL allProceduresAreCallable( ) override;
60 virtual sal_Bool SAL_CALL allTablesAreSelectable( ) override;
61 virtual OUString SAL_CALL getURL( ) override;
62 virtual OUString SAL_CALL getUserName( ) override;
63 virtual sal_Bool SAL_CALL isReadOnly( ) override;
64 virtual sal_Bool SAL_CALL nullsAreSortedHigh( ) override;
65 virtual sal_Bool SAL_CALL nullsAreSortedLow( ) override;
66 virtual sal_Bool SAL_CALL nullsAreSortedAtStart( ) override;
67 virtual sal_Bool SAL_CALL nullsAreSortedAtEnd( ) override;
68 virtual OUString SAL_CALL getDatabaseProductName( ) override;
69 virtual OUString SAL_CALL getDatabaseProductVersion( ) override;
70 virtual OUString SAL_CALL getDriverName( ) override;
71 virtual OUString SAL_CALL getDriverVersion( ) override;
72 virtual sal_Int32 SAL_CALL getDriverMajorVersion( ) override;
73 virtual sal_Int32 SAL_CALL getDriverMinorVersion( ) override;
74 virtual sal_Bool SAL_CALL usesLocalFiles( ) override;
75 virtual sal_Bool SAL_CALL usesLocalFilePerTable( ) override;
76 virtual sal_Bool SAL_CALL supportsMixedCaseIdentifiers( ) override;
77 virtual sal_Bool SAL_CALL storesUpperCaseIdentifiers( ) override;
78 virtual sal_Bool SAL_CALL storesLowerCaseIdentifiers( ) override;
79 virtual sal_Bool SAL_CALL storesMixedCaseIdentifiers( ) override;
80 virtual sal_Bool SAL_CALL storesUpperCaseQuotedIdentifiers( ) override;
81 virtual sal_Bool SAL_CALL storesLowerCaseQuotedIdentifiers( ) override;
82 virtual OUString SAL_CALL getSQLKeywords( ) override;
83 virtual OUString SAL_CALL getNumericFunctions( ) override;
84 virtual OUString SAL_CALL getStringFunctions( ) override;
85 virtual OUString SAL_CALL getSystemFunctions( ) override;
86 virtual OUString SAL_CALL getTimeDateFunctions( ) override;
87 virtual OUString SAL_CALL getSearchStringEscape( ) override;
88 virtual OUString SAL_CALL getExtraNameCharacters( ) override;
89 virtual sal_Bool SAL_CALL supportsColumnAliasing( ) override;
90 virtual sal_Bool SAL_CALL nullPlusNonNullIsNull( ) override;
91 virtual sal_Bool SAL_CALL supportsTypeConversion( ) override;
92 virtual sal_Bool SAL_CALL supportsConvert( sal_Int32 fromType, sal_Int32 toType ) override;
93 virtual sal_Bool SAL_CALL supportsTableCorrelationNames( ) override;
94 virtual sal_Bool SAL_CALL supportsDifferentTableCorrelationNames( ) override;
95 virtual sal_Bool SAL_CALL supportsExpressionsInOrderBy( ) override;
96 virtual sal_Bool SAL_CALL supportsOrderByUnrelated( ) override;
97 virtual sal_Bool SAL_CALL supportsGroupBy( ) override;
98 virtual sal_Bool SAL_CALL supportsGroupByUnrelated( ) override;
99 virtual sal_Bool SAL_CALL supportsGroupByBeyondSelect( ) override;
100 virtual sal_Bool SAL_CALL supportsLikeEscapeClause( ) override;
101 virtual sal_Bool SAL_CALL supportsMultipleResultSets( ) override;
102 virtual sal_Bool SAL_CALL supportsMultipleTransactions( ) override;
103 virtual sal_Bool SAL_CALL supportsNonNullableColumns( ) override;
104 virtual sal_Bool SAL_CALL supportsMinimumSQLGrammar( ) override;
105 virtual sal_Bool SAL_CALL supportsCoreSQLGrammar( ) override;
106 virtual sal_Bool SAL_CALL supportsExtendedSQLGrammar( ) override;
107 virtual sal_Bool SAL_CALL supportsANSI92EntryLevelSQL( ) override;
108 virtual sal_Bool SAL_CALL supportsANSI92IntermediateSQL( ) override;
109 virtual sal_Bool SAL_CALL supportsANSI92FullSQL( ) override;
110 virtual sal_Bool SAL_CALL supportsIntegrityEnhancementFacility( ) override;
111 virtual sal_Bool SAL_CALL supportsOuterJoins( ) override;
112 virtual sal_Bool SAL_CALL supportsFullOuterJoins( ) override;
113 virtual sal_Bool SAL_CALL supportsLimitedOuterJoins( ) override;
114 virtual OUString SAL_CALL getSchemaTerm( ) override;
115 virtual OUString SAL_CALL getProcedureTerm( ) override;
116 virtual OUString SAL_CALL getCatalogTerm( ) override;
117 virtual sal_Bool SAL_CALL supportsSchemasInProcedureCalls( ) override;
118 virtual sal_Bool SAL_CALL supportsSchemasInIndexDefinitions( ) override;
119 virtual sal_Bool SAL_CALL supportsSchemasInPrivilegeDefinitions( ) override;
120 virtual sal_Bool SAL_CALL supportsCatalogsInProcedureCalls( ) override;
121 virtual sal_Bool SAL_CALL supportsCatalogsInIndexDefinitions( ) override;
122 virtual sal_Bool SAL_CALL supportsCatalogsInPrivilegeDefinitions( ) override;
123 virtual sal_Bool SAL_CALL supportsPositionedDelete( ) override;
124 virtual sal_Bool SAL_CALL supportsPositionedUpdate( ) override;
125 virtual sal_Bool SAL_CALL supportsSelectForUpdate( ) override;
126 virtual sal_Bool SAL_CALL supportsStoredProcedures( ) override;
127 virtual sal_Bool SAL_CALL supportsSubqueriesInComparisons( ) override;
128 virtual sal_Bool SAL_CALL supportsSubqueriesInExists( ) override;
129 virtual sal_Bool SAL_CALL supportsSubqueriesInIns( ) override;
130 virtual sal_Bool SAL_CALL supportsSubqueriesInQuantifieds( ) override;
131 virtual sal_Bool SAL_CALL supportsCorrelatedSubqueries( ) override;
132 virtual sal_Bool SAL_CALL supportsUnion( ) override;
133 virtual sal_Bool SAL_CALL supportsUnionAll( ) override;
134 virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossCommit( ) override;
135 virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossRollback( ) override;
136 virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossCommit( ) override;
137 virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossRollback( ) override;
138 virtual sal_Int32 SAL_CALL getMaxBinaryLiteralLength( ) override;
139 virtual sal_Int32 SAL_CALL getMaxCharLiteralLength( ) override;
140 virtual sal_Int32 SAL_CALL getMaxColumnNameLength( ) override;
141 virtual sal_Int32 SAL_CALL getMaxColumnsInGroupBy( ) override;
142 virtual sal_Int32 SAL_CALL getMaxColumnsInIndex( ) override;
143 virtual sal_Int32 SAL_CALL getMaxColumnsInOrderBy( ) override;
144 virtual sal_Int32 SAL_CALL getMaxColumnsInSelect( ) override;
145 virtual sal_Int32 SAL_CALL getMaxColumnsInTable( ) override;
146 virtual sal_Int32 SAL_CALL getMaxConnections( ) override;
147 virtual sal_Int32 SAL_CALL getMaxCursorNameLength( ) override;
148 virtual sal_Int32 SAL_CALL getMaxIndexLength( ) override;
149 virtual sal_Int32 SAL_CALL getMaxSchemaNameLength( ) override;
150 virtual sal_Int32 SAL_CALL getMaxProcedureNameLength( ) override;
151 virtual sal_Int32 SAL_CALL getMaxCatalogNameLength( ) override;
152 virtual sal_Int32 SAL_CALL getMaxRowSize( ) override;
153 virtual sal_Bool SAL_CALL doesMaxRowSizeIncludeBlobs( ) override;
154 virtual sal_Int32 SAL_CALL getMaxStatementLength( ) override;
155 virtual sal_Int32 SAL_CALL getMaxTableNameLength( ) override;
156 virtual sal_Int32 SAL_CALL getMaxUserNameLength( ) override;
157 virtual sal_Int32 SAL_CALL getDefaultTransactionIsolation( ) override;
158 virtual sal_Bool SAL_CALL supportsTransactions( ) override;
159 virtual sal_Bool SAL_CALL supportsTransactionIsolationLevel( sal_Int32 level ) override;
160 virtual sal_Bool SAL_CALL supportsDataDefinitionAndDataManipulationTransactions( ) override;
161 virtual sal_Bool SAL_CALL supportsDataManipulationTransactionsOnly( ) override;
162 virtual sal_Bool SAL_CALL dataDefinitionCausesTransactionCommit( ) override;
163 virtual sal_Bool SAL_CALL dataDefinitionIgnoredInTransactions( ) override;
165 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTables( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const css::uno::Sequence< OUString >& types ) override;
166 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTableTypes( ) override;
167 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTablePrivileges( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern ) override;
168 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumns( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const OUString& columnNamePattern ) override;
170 virtual sal_Bool SAL_CALL supportsResultSetType( sal_Int32 setType ) override;
171 virtual sal_Bool SAL_CALL supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) override;
172 virtual sal_Bool SAL_CALL ownUpdatesAreVisible( sal_Int32 setType ) override;
173 virtual sal_Bool SAL_CALL ownDeletesAreVisible( sal_Int32 setType ) override;
174 virtual sal_Bool SAL_CALL ownInsertsAreVisible( sal_Int32 setType ) override;
175 virtual sal_Bool SAL_CALL othersUpdatesAreVisible( sal_Int32 setType ) override;
176 virtual sal_Bool SAL_CALL othersDeletesAreVisible( sal_Int32 setType ) override;
177 virtual sal_Bool SAL_CALL othersInsertsAreVisible( sal_Int32 setType ) override;
178 virtual sal_Bool SAL_CALL updatesAreDetected( sal_Int32 setType ) override;
179 virtual sal_Bool SAL_CALL deletesAreDetected( sal_Int32 setType ) override;
180 virtual sal_Bool SAL_CALL insertsAreDetected( sal_Int32 setType ) override;
181 virtual sal_Bool SAL_CALL supportsBatchUpdates( ) override;
183 virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getUDTs( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern, const css::uno::Sequence< sal_Int32 >& types ) override;
188 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDATABASEMETADATA_HXX
190 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */