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
-
public final class DatabaseMetaLegacy extends DatabaseMetaLocalBase
Legacy implementation of database meta information.
-
-
Constructor Summary
Constructors Constructor Description DatabaseMetaLegacy(Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
checkClosed()
DefaultNullOrdering
defaultNullOrdering()
INTERNALprivate ResultInterface
executeQuery(java.lang.String sql, Value... args)
ResultInterface
getBestRowIdentifier(java.lang.String catalogPattern, java.lang.String schemaPattern, java.lang.String tableName, int scope, boolean nullable)
INTERNALprivate Value
getCatalogPattern(java.lang.String catalogPattern)
ResultInterface
getCatalogs()
INTERNALResultInterface
getColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.String columnNamePattern)
INTERNALResultInterface
getColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)
INTERNALResultInterface
getCrossReference(java.lang.String primaryCatalog, java.lang.String primarySchema, java.lang.String primaryTable, java.lang.String foreignCatalog, java.lang.String foreignSchema, java.lang.String foreignTable)
INTERNALResultInterface
getExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
INTERNALprivate java.lang.String
getFunctions(java.lang.String section)
ResultInterface
getImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
INTERNALResultInterface
getIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate)
INTERNALjava.lang.String
getNumericFunctions()
INTERNALprivate Value
getPattern(java.lang.String pattern)
ResultInterface
getPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
INTERNALResultInterface
getProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.String columnNamePattern)
INTERNALResultInterface
getProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern)
INTERNALResultInterface
getPseudoColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)
INTERNALprivate Value
getSchemaPattern(java.lang.String pattern)
ResultInterface
getSchemas()
INTERNALResultInterface
getSchemas(java.lang.String catalog, java.lang.String schemaPattern)
INTERNALjava.lang.String
getSearchStringEscape()
INTERNALjava.lang.String
getSQLKeywords()
INTERNALprivate Value
getString(java.lang.String string)
java.lang.String
getStringFunctions()
INTERNALjava.lang.String
getSystemFunctions()
INTERNALResultInterface
getTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)
INTERNALResultInterface
getTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types)
INTERNALResultInterface
getTableTypes()
INTERNALjava.lang.String
getTimeDateFunctions()
INTERNALResultInterface
getTypeInfo()
INTERNAL-
Methods inherited from class org.h2.jdbc.meta.DatabaseMetaLocalBase
getAttributes, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductVersion, getFunctionColumns, getFunctions, getPseudoColumnsResult, getSuperTables, getSuperTypes, getUDTs, getVersionColumns
-
-
-
-
Constructor Detail
-
DatabaseMetaLegacy
public DatabaseMetaLegacy(Session session)
-
-
Method Detail
-
defaultNullOrdering
public final DefaultNullOrdering defaultNullOrdering()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
defaultNullOrdering
in classDatabaseMeta
- Returns:
- DefaultNullOrdering
- See Also:
DatabaseMetaData.nullsAreSortedHigh()
,DatabaseMetaData.nullsAreSortedLow()
,DatabaseMetaData.nullsAreSortedAtStart()
,DatabaseMetaData.nullsAreSortedAtEnd()
-
getSQLKeywords
public java.lang.String getSQLKeywords()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSQLKeywords
in classDatabaseMeta
- Returns:
- list of supported SQL keywords
- See Also:
DatabaseMetaData.getSQLKeywords()
-
getNumericFunctions
public java.lang.String getNumericFunctions()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getNumericFunctions
in classDatabaseMeta
- Returns:
- list of supported numeric functions
- See Also:
DatabaseMetaData.getNumericFunctions()
-
getStringFunctions
public java.lang.String getStringFunctions()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getStringFunctions
in classDatabaseMeta
- Returns:
- list of supported string functions
- See Also:
DatabaseMetaData.getStringFunctions()
-
getSystemFunctions
public java.lang.String getSystemFunctions()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSystemFunctions
in classDatabaseMeta
- Returns:
- list of supported system functions
- See Also:
DatabaseMetaData.getSystemFunctions()
-
getTimeDateFunctions
public java.lang.String getTimeDateFunctions()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTimeDateFunctions
in classDatabaseMeta
- Returns:
- list of supported time/date functions
- See Also:
DatabaseMetaData.getTimeDateFunctions()
-
getFunctions
private java.lang.String getFunctions(java.lang.String section)
-
getSearchStringEscape
public java.lang.String getSearchStringEscape()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSearchStringEscape
in classDatabaseMeta
- Returns:
- search string escape sequence
- See Also:
DatabaseMetaData.getSearchStringEscape()
-
getProcedures
public ResultInterface getProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.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:
DatabaseMetaData.getProcedures(String, String, String)
-
getProcedureColumns
public ResultInterface getProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.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:
DatabaseMetaData.getProcedureColumns(String, String, String, String)
-
getTables
public ResultInterface getTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.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:
DatabaseMetaData.getTables(String, String, String, String[])
-
getSchemas
public ResultInterface getSchemas()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSchemas
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getSchemas()
-
getCatalogs
public ResultInterface getCatalogs()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getCatalogs
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getCatalogs()
-
getTableTypes
public ResultInterface getTableTypes()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTableTypes
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getTableTypes()
-
getColumns
public ResultInterface getColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.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:
DatabaseMetaData.getColumns(String, String, String, String)
-
getColumnPrivileges
public ResultInterface getColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.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:
DatabaseMetaData.getColumnPrivileges(String, String, String, String)
-
getTablePrivileges
public ResultInterface getTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.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:
DatabaseMetaData.getTablePrivileges(String, String, String)
-
getBestRowIdentifier
public ResultInterface getBestRowIdentifier(java.lang.String catalogPattern, java.lang.String schemaPattern, java.lang.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:
DatabaseMetaData.getBestRowIdentifier(String, String, String, int, boolean)
-
getPrimaryKeys
public ResultInterface getPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getPrimaryKeys
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspect- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getPrimaryKeys(String, String, String)
-
getImportedKeys
public ResultInterface getImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getImportedKeys
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspect- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getImportedKeys(String, String, String)
-
getExportedKeys
public ResultInterface getExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getExportedKeys
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspect- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getExportedKeys(String, String, String)
-
getCrossReference
public ResultInterface getCrossReference(java.lang.String primaryCatalog, java.lang.String primarySchema, java.lang.String primaryTable, java.lang.String foreignCatalog, java.lang.String foreignSchema, java.lang.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:
DatabaseMetaData.getCrossReference(String, String, String, String, String, String)
-
getTypeInfo
public ResultInterface getTypeInfo()
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getTypeInfo
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getTypeInfo()
-
getIndexInfo
public ResultInterface getIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.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:
DatabaseMetaData.getIndexInfo(String, String, String, boolean, boolean)
-
getSchemas
public ResultInterface getSchemas(java.lang.String catalog, java.lang.String schemaPattern)
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:
DatabaseMetaData.getSchemas(String, String)
-
getPseudoColumns
public ResultInterface getPseudoColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.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:
DatabaseMetaData.getPseudoColumns(String, String, String, String)
-
executeQuery
private ResultInterface executeQuery(java.lang.String sql, Value... args)
-
checkClosed
void checkClosed()
- Specified by:
checkClosed
in classDatabaseMetaLocalBase
-
getString
private Value getString(java.lang.String string)
-
getPattern
private Value getPattern(java.lang.String pattern)
-
getSchemaPattern
private Value getSchemaPattern(java.lang.String pattern)
-
getCatalogPattern
private Value getCatalogPattern(java.lang.String catalogPattern)
-
-