Package org.h2.jdbc.meta
Class DatabaseMetaLegacy
java.lang.Object
org.h2.jdbc.meta.DatabaseMeta
org.h2.jdbc.meta.DatabaseMetaLocalBase
org.h2.jdbc.meta.DatabaseMetaLegacy
Legacy implementation of database meta information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
final DefaultNullOrdering
INTERNALprivate ResultInterface
executeQuery
(String sql, Value... args) getBestRowIdentifier
(String catalogPattern, String schemaPattern, String tableName, int scope, boolean nullable) INTERNALprivate Value
getCatalogPattern
(String catalogPattern) INTERNALgetColumnPrivileges
(String catalog, String schema, String table, String columnNamePattern) INTERNALgetColumns
(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) INTERNALgetCrossReference
(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) INTERNALgetExportedKeys
(String catalog, String schema, String table) INTERNALprivate String
getFunctions
(String section) getImportedKeys
(String catalog, String schema, String table) INTERNALgetIndexInfo
(String catalog, String schema, String table, boolean unique, boolean approximate) INTERNALINTERNALprivate Value
getPattern
(String pattern) getPrimaryKeys
(String catalog, String schema, String table) INTERNALgetProcedureColumns
(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) INTERNALgetProcedures
(String catalog, String schemaPattern, String procedureNamePattern) INTERNALgetPseudoColumns
(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) INTERNALprivate Value
getSchemaPattern
(String pattern) INTERNALgetSchemas
(String catalog, String schemaPattern) INTERNALINTERNALINTERNALprivate Value
INTERNALINTERNALgetTablePrivileges
(String catalog, String schemaPattern, String tableNamePattern) INTERNALINTERNALINTERNALINTERNALINTERNALMethods inherited from class org.h2.jdbc.meta.DatabaseMetaLocalBase
getAttributes, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductVersion, getFunctionColumns, getFunctions, getPseudoColumnsResult, getSuperTables, getSuperTypes, getUDTs, getVersionColumns
-
Field Details
-
PERCENT
-
BACKSLASH
-
YES
-
NO
-
SCHEMA_MAIN
-
session
-
-
Constructor Details
-
DatabaseMetaLegacy
-
-
Method Details
-
defaultNullOrdering
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
defaultNullOrdering
in classDatabaseMeta
- Returns:
- DefaultNullOrdering
- See Also:
-
getSQLKeywords
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSQLKeywords
in classDatabaseMeta
- Returns:
- list of supported SQL keywords
- See Also:
-
getNumericFunctions
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getNumericFunctions
in classDatabaseMeta
- Returns:
- list of supported numeric functions
- See Also:
-
getStringFunctions
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getStringFunctions
in classDatabaseMeta
- Returns:
- list of supported string functions
- See Also:
-
getSystemFunctions
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSystemFunctions
in classDatabaseMeta
- Returns:
- list of supported system functions
- See Also:
-
getTimeDateFunctions
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTimeDateFunctions
in classDatabaseMeta
- Returns:
- list of supported time/date functions
- See Also:
-
getFunctions
-
getSearchStringEscape
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSearchStringEscape
in classDatabaseMeta
- Returns:
- search string escape sequence
- See Also:
-
getProcedures
public ResultInterface getProcedures(String catalog, String schemaPattern, String procedureNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getProcedures
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resultprocedureNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getProcedureColumns
public ResultInterface getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getProcedureColumns
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resultprocedureNamePattern
- "LIKE" style pattern to filter resultcolumnNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getTables
public ResultInterface getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTables
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resulttableNamePattern
- "LIKE" style pattern to filter resulttypes
- String[]- Returns:
- ResultInterface
- See Also:
-
getSchemas
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSchemas
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
-
getCatalogs
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getCatalogs
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
-
getTableTypes
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTableTypes
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
-
getColumns
public ResultInterface getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getColumns
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resulttableNamePattern
- "LIKE" style pattern to filter resultcolumnNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getColumnPrivileges
public ResultInterface getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getColumnPrivileges
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspectcolumnNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getTablePrivileges
public ResultInterface getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTablePrivileges
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resulttableNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getBestRowIdentifier
public ResultInterface getBestRowIdentifier(String catalogPattern, String schemaPattern, String tableName, int scope, boolean nullable) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getBestRowIdentifier
in classDatabaseMeta
- Parameters:
catalogPattern
- "LIKE" style pattern to filter resultschemaPattern
- "LIKE" style pattern to filter resulttableName
- table of interestscope
- of interestnullable
- include nullable columns- Returns:
- ResultInterface
- See Also:
-
getPrimaryKeys
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getPrimaryKeys
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspect- Returns:
- ResultInterface
- See Also:
-
getImportedKeys
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getImportedKeys
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspect- Returns:
- ResultInterface
- See Also:
-
getExportedKeys
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getExportedKeys
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspect- Returns:
- ResultInterface
- See Also:
-
getCrossReference
public ResultInterface getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getCrossReference
in classDatabaseMeta
- Parameters:
primaryCatalog
- to inspectprimarySchema
- to inspectprimaryTable
- to inspectforeignCatalog
- to inspectforeignSchema
- to inspectforeignTable
- to inspect- Returns:
- ResultInterface
- See Also:
-
getTypeInfo
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTypeInfo
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
-
getIndexInfo
public ResultInterface getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getIndexInfo
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspectunique
- onlyapproximate
- allowed- Returns:
- ResultInterface
- See Also:
-
getSchemas
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSchemas
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getPseudoColumns
public ResultInterface getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getPseudoColumns
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resulttableNamePattern
- "LIKE" style pattern to filter resultcolumnNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
executeQuery
-
checkClosed
void checkClosed()- Specified by:
checkClosed
in classDatabaseMetaLocalBase
-
getString
-
getPattern
-
getSchemaPattern
-
getCatalogPattern
-