Debian Codegraph @

src/main/org/h2/jdbc/meta/DatabaseMeta.java

raw
1 /*
2 * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,
3 * and the EPL 1.0 (https://h2database.com/html/license.html).
4 * Initial Developer: H2 Group
5 */
6 package org.h2.jdbc.meta;
7
8 import org.h2.mode.DefaultNullOrdering;
9 import org.h2.result.ResultInterface;
10
11 /**
12 * Database meta information.
13 */
14 public abstract class DatabaseMeta {
15
16 /**
17 * INTERNAL
18 *
19 * @see java.sql.DatabaseMetaData#nullsAreSortedHigh()
20 * @see java.sql.DatabaseMetaData#nullsAreSortedLow()
21 * @see java.sql.DatabaseMetaData#nullsAreSortedAtStart()
22 * @see java.sql.DatabaseMetaData#nullsAreSortedAtEnd()
23 * @return DefaultNullOrdering
24 */
25 public abstract DefaultNullOrdering defaultNullOrdering();
26
27 /**
28 * INTERNAL
29 *
30 * @see java.sql.DatabaseMetaData#getDatabaseProductVersion()
31 * @return product version as String
32 */
33 public abstract String getDatabaseProductVersion();
34
35 /**
36 * INTERNAL
37 *
38 * @see java.sql.DatabaseMetaData#getSQLKeywords()
39 * @return list of supported SQL keywords
40 */
41 public abstract String getSQLKeywords();
42
43 /**
44 * INTERNAL
45 *
46 * @see java.sql.DatabaseMetaData#getNumericFunctions()
47 * @return list of supported numeric functions
48 */
49 public abstract String getNumericFunctions();
50
51 /**
52 * INTERNAL
53 *
54 * @see java.sql.DatabaseMetaData#getStringFunctions()
55 * @return list of supported string functions
56 */
57 public abstract String getStringFunctions();
58
59 /**
60 * INTERNAL
61 *
62 * @see java.sql.DatabaseMetaData#getSystemFunctions()
63 * @return list of supported system functions
64 */
65 public abstract String getSystemFunctions();
66
67 /**
68 * INTERNAL
69 *
70 * @see java.sql.DatabaseMetaData#getTimeDateFunctions()
71 * @return list of supported time/date functions
72 */
73 public abstract String getTimeDateFunctions();
74
75 /**
76 * INTERNAL
77 *
78 * @see java.sql.DatabaseMetaData#getSearchStringEscape()
79 * @return search string escape sequence
80 */
81 public abstract String getSearchStringEscape();
82
83 /**
84 * INTERNAL
85 * @param catalog to inspect
86 * @param schemaPattern "LIKE" style pattern to filter result
87 * @param procedureNamePattern "LIKE" style pattern to filter result
88 * @return ResultInterface
89 *
90 * @see java.sql.DatabaseMetaData#getProcedures(String, String, String)
91 */
92 public abstract ResultInterface getProcedures(String catalog, String schemaPattern, String procedureNamePattern);
93
94 /**
95 * INTERNAL
96 * @param catalog to inspect
97 * @param schemaPattern "LIKE" style pattern to filter result
98 * @param procedureNamePattern "LIKE" style pattern to filter result
99 * @param columnNamePattern "LIKE" style pattern to filter result
100 * @return ResultInterface
101 *
102 * @see java.sql.DatabaseMetaData#getProcedureColumns(String, String,
103 * String, String)
104 */
105 public abstract ResultInterface getProcedureColumns(String catalog, String schemaPattern,
106 String procedureNamePattern, String columnNamePattern);
107
108 /**
109 * INTERNAL
110 * @param catalog to inspect
111 * @param schemaPattern "LIKE" style pattern to filter result
112 * @param tableNamePattern "LIKE" style pattern to filter result
113 * @param types String[]
114 * @return ResultInterface
115 *
116 * @see java.sql.DatabaseMetaData#getTables(String, String, String,
117 * String[])
118 */
119 public abstract ResultInterface getTables(String catalog, String schemaPattern, String tableNamePattern,
120 String[] types);
121
122 /**
123 * INTERNAL
124 * @return ResultInterface
125 *
126 * @see java.sql.DatabaseMetaData#getSchemas()
127 */
128 public abstract ResultInterface getSchemas();
129
130 /**
131 * INTERNAL
132 * @return ResultInterface
133 *
134 * @see java.sql.DatabaseMetaData#getCatalogs()
135 */
136 public abstract ResultInterface getCatalogs();
137
138 /**
139 * INTERNAL
140 * @return ResultInterface
141 *
142 * @see java.sql.DatabaseMetaData#getTableTypes()
143 */
144 public abstract ResultInterface getTableTypes();
145
146 /**
147 * INTERNAL
148 * @param catalog to inspect
149 * @param schemaPattern "LIKE" style pattern to filter result
150 * @param tableNamePattern "LIKE" style pattern to filter result
151 * @param columnNamePattern "LIKE" style pattern to filter result
152 * @return ResultInterface
153 *
154 * @see java.sql.DatabaseMetaData#getColumns(String, String, String, String)
155 */
156 public abstract ResultInterface getColumns(String catalog, String schemaPattern, String tableNamePattern,
157 String columnNamePattern);
158
159 /**
160 * INTERNAL
161 * @param catalog to inspect
162 * @param schema to inspect
163 * @param table to inspect
164 * @param columnNamePattern "LIKE" style pattern to filter result
165 * @return ResultInterface
166 *
167 * @see java.sql.DatabaseMetaData#getColumnPrivileges(String, String,
168 * String, String)
169 */
170 public abstract ResultInterface getColumnPrivileges(String catalog, String schema, String table,
171 String columnNamePattern);
172
173 /**
174 * INTERNAL
175 * @param catalog to inspect
176 * @param schemaPattern "LIKE" style pattern to filter result
177 * @param tableNamePattern "LIKE" style pattern to filter result
178 * @return ResultInterface
179 *
180 * @see java.sql.DatabaseMetaData#getTablePrivileges(String, String, String)
181 */
182 public abstract ResultInterface getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern);
183
184 /**
185 * INTERNAL
186 * @param catalogPattern "LIKE" style pattern to filter result
187 * @param schemaPattern "LIKE" style pattern to filter result
188 * @param tableName table of interest
189 * @param scope of interest
190 * @param nullable include nullable columns
191 * @return ResultInterface
192 *
193 * @see java.sql.DatabaseMetaData#getBestRowIdentifier(String, String,
194 * String, int, boolean)
195 */
196 public abstract ResultInterface getBestRowIdentifier(String catalogPattern, String schemaPattern, String tableName,
197 int scope, boolean nullable);
198
199 /**
200 * INTERNAL
201 * @param catalog to inspect
202 * @param schema to inspect
203 * @param table to inspect
204 * @return ResultInterface
205 *
206 * @see java.sql.DatabaseMetaData#getVersionColumns(String, String, String)
207 */
208 public abstract ResultInterface getVersionColumns(String catalog, String schema, String table);
209
210 /**
211 * INTERNAL
212 * @param catalog to inspect
213 * @param schema to inspect
214 * @param table to inspect
215 * @return ResultInterface
216 *
217 * @see java.sql.DatabaseMetaData#getPrimaryKeys(String, String, String)
218 */
219 public abstract ResultInterface getPrimaryKeys(String catalog, String schema, String table);
220
221 /**
222 * INTERNAL
223 * @param catalog to inspect
224 * @param schema to inspect
225 * @param table to inspect
226 * @return ResultInterface
227 *
228 * @see java.sql.DatabaseMetaData#getImportedKeys(String, String, String)
229 */
230 public abstract ResultInterface getImportedKeys(String catalog, String schema, String table);
231
232 /**
233 * INTERNAL
234 * @param catalog to inspect
235 * @param schema to inspect
236 * @param table to inspect
237 * @return ResultInterface
238 *
239 * @see java.sql.DatabaseMetaData#getExportedKeys(String, String, String)
240 */
241 public abstract ResultInterface getExportedKeys(String catalog, String schema, String table);
242
243 /**
244 * INTERNAL
245 * @param primaryCatalog to inspect
246 * @param primarySchema to inspect
247 * @param primaryTable to inspect
248 * @param foreignCatalog to inspect
249 * @param foreignSchema to inspect
250 * @param foreignTable to inspect
251 * @return ResultInterface
252 *
253 * @see java.sql.DatabaseMetaData#getCrossReference(String, String, String,
254 * String, String, String)
255 */
256 public abstract ResultInterface getCrossReference(String primaryCatalog, String primarySchema, String primaryTable,
257 String foreignCatalog, String foreignSchema, String foreignTable);
258
259 /**
260 * INTERNAL
261 * @return ResultInterface
262 *
263 * @see java.sql.DatabaseMetaData#getTypeInfo()
264 */
265 public abstract ResultInterface getTypeInfo();
266
267 /**
268 * INTERNAL
269 * @param catalog to inspect
270 * @param schema to inspect
271 * @param table to inspect
272 * @param unique only
273 * @param approximate allowed
274 * @return ResultInterface
275 *
276 * @see java.sql.DatabaseMetaData#getIndexInfo(String, String, String,
277 * boolean, boolean)
278 */
279 public abstract ResultInterface getIndexInfo(String catalog, String schema, String table, boolean unique,
280 boolean approximate);
281
282 /**
283 * INTERNAL
284 * @param catalog to inspect
285 * @param schemaPattern "LIKE" style pattern to filter result
286 * @param typeNamePattern "LIKE" style pattern to filter result
287 * @param types int[]
288 * @return ResultInterface
289 *
290 * @see java.sql.DatabaseMetaData#getUDTs(String, String, String, int[])
291 */
292 public abstract ResultInterface getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types);
293
294 /**
295 * INTERNAL
296 * @param catalog to inspect
297 * @param schemaPattern "LIKE" style pattern to filter result
298 * @param typeNamePattern "LIKE" style pattern to filter result
299 * @return ResultInterface
300 *
301 * @see java.sql.DatabaseMetaData#getSuperTypes(String, String, String)
302 */
303 public abstract ResultInterface getSuperTypes(String catalog, String schemaPattern, String typeNamePattern);
304
305 /**
306 * INTERNAL
307 * @param catalog to inspect
308 * @param schemaPattern "LIKE" style pattern to filter result
309 * @param tableNamePattern "LIKE" style pattern to filter result
310 * @return ResultInterface
311 *
312 * @see java.sql.DatabaseMetaData#getSuperTables(String, String, String)
313 */
314 public abstract ResultInterface getSuperTables(String catalog, String schemaPattern, String tableNamePattern);
315
316 /**
317 * INTERNAL
318 * @param catalog to inspect
319 * @param schemaPattern "LIKE" style pattern to filter result
320 * @param typeNamePattern "LIKE" style pattern to filter result
321 * @param attributeNamePattern "LIKE" style pattern to filter result
322 * @return ResultInterface
323 *
324 * @see java.sql.DatabaseMetaData#getAttributes(String, String, String,
325 * String)
326 */
327 public abstract ResultInterface getAttributes(String catalog, String schemaPattern, String typeNamePattern,
328 String attributeNamePattern);
329
330 /**
331 * INTERNAL
332 * @return ResultInterface
333 *
334 * @see java.sql.DatabaseMetaData#getDatabaseMajorVersion()
335 */
336 public abstract int getDatabaseMajorVersion();
337
338 /**
339 * INTERNAL
340 * @return ResultInterface
341 *
342 * @see java.sql.DatabaseMetaData#getDatabaseMinorVersion()
343 */
344 public abstract int getDatabaseMinorVersion();
345
346 /**
347 * INTERNAL
348 * @param catalog to inspect
349 * @param schemaPattern "LIKE" style pattern to filter result
350 * @return ResultInterface
351 *
352 * @see java.sql.DatabaseMetaData#getSchemas(String, String)
353 */
354 public abstract ResultInterface getSchemas(String catalog, String schemaPattern);
355
356 /**
357 * INTERNAL
358 * @param catalog to inspect
359 * @param schemaPattern "LIKE" style pattern to filter result
360 * @param functionNamePattern "LIKE" style pattern to filter result
361 * @return ResultInterface
362 *
363 * @see java.sql.DatabaseMetaData#getFunctions(String, String, String)
364 */
365 public abstract ResultInterface getFunctions(String catalog, String schemaPattern, String functionNamePattern);
366
367 /**
368 * INTERNAL
369 * @param catalog to inspect
370 * @param schemaPattern "LIKE" style pattern to filter result
371 * @param functionNamePattern "LIKE" style pattern to filter result
372 * @param columnNamePattern "LIKE" style pattern to filter result
373 * @return ResultInterface
374 *
375 * @see java.sql.DatabaseMetaData#getFunctionColumns(String, String, String,
376 * String)
377 */
378 public abstract ResultInterface getFunctionColumns(String catalog, String schemaPattern, //
379 String functionNamePattern, String columnNamePattern);
380
381 /**
382 * INTERNAL
383 * @param catalog to inspect
384 * @param schemaPattern "LIKE" style pattern to filter result
385 * @param tableNamePattern "LIKE" style pattern to filter result
386 * @param columnNamePattern "LIKE" style pattern to filter result
387 * @return ResultInterface
388 *
389 * @see java.sql.DatabaseMetaData#getPseudoColumns(String, String, String,
390 * String)
391 */
392 public abstract ResultInterface getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern,
393 String columnNamePattern);
394
395 }