2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / libjava / java / sql / DatabaseMetaData.h
blob0d1feb748ca34b05b067dc338be68dfd63e6b7bd
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_sql_DatabaseMetaData__
5 #define __java_sql_DatabaseMetaData__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace sql
18 class Connection;
19 class DatabaseMetaData;
20 class ResultSet;
25 class java::sql::DatabaseMetaData : public ::java::lang::Object
28 public:
29 virtual jboolean allProceduresAreCallable() = 0;
30 virtual jboolean allTablesAreSelectable() = 0;
31 virtual ::java::lang::String * getURL() = 0;
32 virtual ::java::lang::String * getUserName() = 0;
33 virtual jboolean isReadOnly() = 0;
34 virtual jboolean nullsAreSortedHigh() = 0;
35 virtual jboolean nullsAreSortedLow() = 0;
36 virtual jboolean nullsAreSortedAtStart() = 0;
37 virtual jboolean nullsAreSortedAtEnd() = 0;
38 virtual ::java::lang::String * getDatabaseProductName() = 0;
39 virtual ::java::lang::String * getDatabaseProductVersion() = 0;
40 virtual ::java::lang::String * getDriverName() = 0;
41 virtual ::java::lang::String * getDriverVersion() = 0;
42 virtual jint getDriverMajorVersion() = 0;
43 virtual jint getDriverMinorVersion() = 0;
44 virtual jboolean usesLocalFiles() = 0;
45 virtual jboolean usesLocalFilePerTable() = 0;
46 virtual jboolean supportsMixedCaseIdentifiers() = 0;
47 virtual jboolean storesUpperCaseIdentifiers() = 0;
48 virtual jboolean storesLowerCaseIdentifiers() = 0;
49 virtual jboolean storesMixedCaseIdentifiers() = 0;
50 virtual jboolean supportsMixedCaseQuotedIdentifiers() = 0;
51 virtual jboolean storesUpperCaseQuotedIdentifiers() = 0;
52 virtual jboolean storesLowerCaseQuotedIdentifiers() = 0;
53 virtual jboolean storesMixedCaseQuotedIdentifiers() = 0;
54 virtual ::java::lang::String * getIdentifierQuoteString() = 0;
55 virtual ::java::lang::String * getSQLKeywords() = 0;
56 virtual ::java::lang::String * getNumericFunctions() = 0;
57 virtual ::java::lang::String * getStringFunctions() = 0;
58 virtual ::java::lang::String * getSystemFunctions() = 0;
59 virtual ::java::lang::String * getTimeDateFunctions() = 0;
60 virtual ::java::lang::String * getSearchStringEscape() = 0;
61 virtual ::java::lang::String * getExtraNameCharacters() = 0;
62 virtual jboolean supportsAlterTableWithAddColumn() = 0;
63 virtual jboolean supportsAlterTableWithDropColumn() = 0;
64 virtual jboolean supportsColumnAliasing() = 0;
65 virtual jboolean nullPlusNonNullIsNull() = 0;
66 virtual jboolean supportsConvert() = 0;
67 virtual jboolean supportsConvert(jint, jint) = 0;
68 virtual jboolean supportsTableCorrelationNames() = 0;
69 virtual jboolean supportsDifferentTableCorrelationNames() = 0;
70 virtual jboolean supportsExpressionsInOrderBy() = 0;
71 virtual jboolean supportsOrderByUnrelated() = 0;
72 virtual jboolean supportsGroupBy() = 0;
73 virtual jboolean supportsGroupByUnrelated() = 0;
74 virtual jboolean supportsGroupByBeyondSelect() = 0;
75 virtual jboolean supportsLikeEscapeClause() = 0;
76 virtual jboolean supportsMultipleResultSets() = 0;
77 virtual jboolean supportsMultipleTransactions() = 0;
78 virtual jboolean supportsNonNullableColumns() = 0;
79 virtual jboolean supportsMinimumSQLGrammar() = 0;
80 virtual jboolean supportsCoreSQLGrammar() = 0;
81 virtual jboolean supportsExtendedSQLGrammar() = 0;
82 virtual jboolean supportsANSI92EntryLevelSQL() = 0;
83 virtual jboolean supportsANSI92IntermediateSQL() = 0;
84 virtual jboolean supportsANSI92FullSQL() = 0;
85 virtual jboolean supportsIntegrityEnhancementFacility() = 0;
86 virtual jboolean supportsOuterJoins() = 0;
87 virtual jboolean supportsFullOuterJoins() = 0;
88 virtual jboolean supportsLimitedOuterJoins() = 0;
89 virtual ::java::lang::String * getSchemaTerm() = 0;
90 virtual ::java::lang::String * getProcedureTerm() = 0;
91 virtual ::java::lang::String * getCatalogTerm() = 0;
92 virtual jboolean isCatalogAtStart() = 0;
93 virtual ::java::lang::String * getCatalogSeparator() = 0;
94 virtual jboolean supportsSchemasInDataManipulation() = 0;
95 virtual jboolean supportsSchemasInProcedureCalls() = 0;
96 virtual jboolean supportsSchemasInTableDefinitions() = 0;
97 virtual jboolean supportsSchemasInIndexDefinitions() = 0;
98 virtual jboolean supportsSchemasInPrivilegeDefinitions() = 0;
99 virtual jboolean supportsCatalogsInDataManipulation() = 0;
100 virtual jboolean supportsCatalogsInProcedureCalls() = 0;
101 virtual jboolean supportsCatalogsInTableDefinitions() = 0;
102 virtual jboolean supportsCatalogsInIndexDefinitions() = 0;
103 virtual jboolean supportsCatalogsInPrivilegeDefinitions() = 0;
104 virtual jboolean supportsPositionedDelete() = 0;
105 virtual jboolean supportsPositionedUpdate() = 0;
106 virtual jboolean supportsSelectForUpdate() = 0;
107 virtual jboolean supportsStoredProcedures() = 0;
108 virtual jboolean supportsSubqueriesInComparisons() = 0;
109 virtual jboolean supportsSubqueriesInExists() = 0;
110 virtual jboolean supportsSubqueriesInIns() = 0;
111 virtual jboolean supportsSubqueriesInQuantifieds() = 0;
112 virtual jboolean supportsCorrelatedSubqueries() = 0;
113 virtual jboolean supportsUnion() = 0;
114 virtual jboolean supportsUnionAll() = 0;
115 virtual jboolean supportsOpenCursorsAcrossCommit() = 0;
116 virtual jboolean supportsOpenCursorsAcrossRollback() = 0;
117 virtual jboolean supportsOpenStatementsAcrossCommit() = 0;
118 virtual jboolean supportsOpenStatementsAcrossRollback() = 0;
119 virtual jint getMaxBinaryLiteralLength() = 0;
120 virtual jint getMaxCharLiteralLength() = 0;
121 virtual jint getMaxColumnNameLength() = 0;
122 virtual jint getMaxColumnsInGroupBy() = 0;
123 virtual jint getMaxColumnsInIndex() = 0;
124 virtual jint getMaxColumnsInOrderBy() = 0;
125 virtual jint getMaxColumnsInSelect() = 0;
126 virtual jint getMaxColumnsInTable() = 0;
127 virtual jint getMaxConnections() = 0;
128 virtual jint getMaxCursorNameLength() = 0;
129 virtual jint getMaxIndexLength() = 0;
130 virtual jint getMaxSchemaNameLength() = 0;
131 virtual jint getMaxProcedureNameLength() = 0;
132 virtual jint getMaxCatalogNameLength() = 0;
133 virtual jint getMaxRowSize() = 0;
134 virtual jboolean doesMaxRowSizeIncludeBlobs() = 0;
135 virtual jint getMaxStatementLength() = 0;
136 virtual jint getMaxStatements() = 0;
137 virtual jint getMaxTableNameLength() = 0;
138 virtual jint getMaxTablesInSelect() = 0;
139 virtual jint getMaxUserNameLength() = 0;
140 virtual jint getDefaultTransactionIsolation() = 0;
141 virtual jboolean supportsTransactions() = 0;
142 virtual jboolean supportsTransactionIsolationLevel(jint) = 0;
143 virtual jboolean supportsDataDefinitionAndDataManipulationTransactions() = 0;
144 virtual jboolean supportsDataManipulationTransactionsOnly() = 0;
145 virtual jboolean dataDefinitionCausesTransactionCommit() = 0;
146 virtual jboolean dataDefinitionIgnoredInTransactions() = 0;
147 virtual ::java::sql::ResultSet * getProcedures(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
148 virtual ::java::sql::ResultSet * getProcedureColumns(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
149 virtual ::java::sql::ResultSet * getTables(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, JArray< ::java::lang::String * > *) = 0;
150 virtual ::java::sql::ResultSet * getSchemas() = 0;
151 virtual ::java::sql::ResultSet * getCatalogs() = 0;
152 virtual ::java::sql::ResultSet * getTableTypes() = 0;
153 virtual ::java::sql::ResultSet * getColumns(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
154 virtual ::java::sql::ResultSet * getColumnPrivileges(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
155 virtual ::java::sql::ResultSet * getTablePrivileges(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
156 virtual ::java::sql::ResultSet * getBestRowIdentifier(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, jint, jboolean) = 0;
157 virtual ::java::sql::ResultSet * getVersionColumns(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
158 virtual ::java::sql::ResultSet * getPrimaryKeys(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
159 virtual ::java::sql::ResultSet * getImportedKeys(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
160 virtual ::java::sql::ResultSet * getExportedKeys(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
161 virtual ::java::sql::ResultSet * getCrossReference(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
162 virtual ::java::sql::ResultSet * getTypeInfo() = 0;
163 virtual ::java::sql::ResultSet * getIndexInfo(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, jboolean, jboolean) = 0;
164 virtual jboolean supportsResultSetType(jint) = 0;
165 virtual jboolean supportsResultSetConcurrency(jint, jint) = 0;
166 virtual jboolean ownUpdatesAreVisible(jint) = 0;
167 virtual jboolean ownDeletesAreVisible(jint) = 0;
168 virtual jboolean ownInsertsAreVisible(jint) = 0;
169 virtual jboolean othersUpdatesAreVisible(jint) = 0;
170 virtual jboolean othersDeletesAreVisible(jint) = 0;
171 virtual jboolean othersInsertsAreVisible(jint) = 0;
172 virtual jboolean updatesAreDetected(jint) = 0;
173 virtual jboolean deletesAreDetected(jint) = 0;
174 virtual jboolean insertsAreDetected(jint) = 0;
175 virtual jboolean supportsBatchUpdates() = 0;
176 virtual ::java::sql::ResultSet * getUDTs(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, JArray< jint > *) = 0;
177 virtual ::java::sql::Connection * getConnection() = 0;
178 virtual jboolean supportsSavepoints() = 0;
179 virtual jboolean supportsNamedParameters() = 0;
180 virtual jboolean supportsMultipleOpenResults() = 0;
181 virtual jboolean supportsGetGeneratedKeys() = 0;
182 virtual ::java::sql::ResultSet * getSuperTypes(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
183 virtual ::java::sql::ResultSet * getSuperTables(::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
184 virtual ::java::sql::ResultSet * getAttributes(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *) = 0;
185 virtual jboolean supportsResultSetHoldability(jint) = 0;
186 virtual jint getResultSetHoldability() = 0;
187 virtual jint getDatabaseMajorVersion() = 0;
188 virtual jint getDatabaseMinorVersion() = 0;
189 virtual jint getJDBCMajorVersion() = 0;
190 virtual jint getJDBCMinorVersion() = 0;
191 virtual jint getSQLStateType() = 0;
192 virtual jboolean locatorsUpdateCopy() = 0;
193 virtual jboolean supportsStatementPooling() = 0;
194 static const jint procedureResultUnknown = 0;
195 static const jint procedureNoResult = 1;
196 static const jint procedureReturnsResult = 2;
197 static const jint procedureColumnUnknown = 0;
198 static const jint procedureColumnIn = 1;
199 static const jint procedureColumnInOut = 2;
200 static const jint procedureColumnOut = 4;
201 static const jint procedureColumnReturn = 5;
202 static const jint procedureColumnResult = 3;
203 static const jint procedureNoNulls = 0;
204 static const jint procedureNullable = 1;
205 static const jint procedureNullableUnknown = 2;
206 static const jint columnNoNulls = 0;
207 static const jint columnNullable = 1;
208 static const jint columnNullableUnknown = 2;
209 static const jint bestRowTemporary = 0;
210 static const jint bestRowTransaction = 1;
211 static const jint bestRowSession = 2;
212 static const jint bestRowUnknown = 0;
213 static const jint bestRowNotPseudo = 1;
214 static const jint bestRowPseudo = 2;
215 static const jint versionColumnUnknown = 0;
216 static const jint versionColumnNotPseudo = 1;
217 static const jint versionColumnPseudo = 2;
218 static const jint importedKeyCascade = 0;
219 static const jint importedKeyRestrict = 1;
220 static const jint importedKeySetNull = 2;
221 static const jint importedKeyNoAction = 3;
222 static const jint importedKeySetDefault = 4;
223 static const jint importedKeyInitiallyDeferred = 5;
224 static const jint importedKeyInitiallyImmediate = 6;
225 static const jint importedKeyNotDeferrable = 7;
226 static const jint typeNoNulls = 0;
227 static const jint typeNullable = 1;
228 static const jint typeNullableUnknown = 2;
229 static const jint typePredNone = 0;
230 static const jint typePredChar = 1;
231 static const jint typePredBasic = 2;
232 static const jint typeSearchable = 3;
233 static const jshort tableIndexStatistic = 0;
234 static const jshort tableIndexClustered = 1;
235 static const jshort tableIndexHashed = 2;
236 static const jshort tableIndexOther = 3;
237 static const jshort attributeNoNulls = 0;
238 static const jshort attributeNullable = 1;
239 static const jshort attributeNullableUnknown = 2;
240 static const jint sqlStateXOpen = 1;
241 static const jint sqlStateSQL99 = 2;
242 static ::java::lang::Class class$;
243 } __attribute__ ((java_interface));
245 #endif // __java_sql_DatabaseMetaData__