Package org.h2.jdbc.meta
Class DatabaseMetaLocal
- java.lang.Object
-
- org.h2.jdbc.meta.DatabaseMeta
-
- org.h2.jdbc.meta.DatabaseMetaLocal
-
public final class DatabaseMetaLocal extends DatabaseMeta
Local implementation of database meta information.
-
-
Constructor Summary
Constructors Constructor Description DatabaseMetaLocal(SessionLocal session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultNullOrderingdefaultNullOrdering()INTERNALResultInterfacegetAttributes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, java.lang.String attributeNamePattern)INTERNALResultInterfacegetBestRowIdentifier(java.lang.String catalog, java.lang.String schema, java.lang.String table, int scope, boolean nullable)INTERNALResultInterfacegetCatalogs()INTERNALResultInterfacegetColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.String columnNamePattern)INTERNALResultInterfacegetColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)INTERNALResultInterfacegetCrossReference(java.lang.String primaryCatalog, java.lang.String primarySchema, java.lang.String primaryTable, java.lang.String foreignCatalog, java.lang.String foreignSchema, java.lang.String foreignTable)INTERNALintgetDatabaseMajorVersion()INTERNALintgetDatabaseMinorVersion()INTERNALjava.lang.StringgetDatabaseProductVersion()INTERNALResultInterfacegetExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)INTERNALResultInterfacegetFunctionColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern, java.lang.String columnNamePattern)INTERNALResultInterfacegetFunctions(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern)INTERNALResultInterfacegetImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)INTERNALResultInterfacegetIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate)INTERNALjava.lang.StringgetNumericFunctions()INTERNALResultInterfacegetPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)INTERNALResultInterfacegetProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.String columnNamePattern)INTERNALResultInterfacegetProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern)INTERNALResultInterfacegetPseudoColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)INTERNALResultInterfacegetSchemas()INTERNALResultInterfacegetSchemas(java.lang.String catalog, java.lang.String schemaPattern)INTERNALjava.lang.StringgetSearchStringEscape()INTERNALjava.lang.StringgetSQLKeywords()INTERNALjava.lang.StringgetStringFunctions()INTERNALResultInterfacegetSuperTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)INTERNALResultInterfacegetSuperTypes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern)INTERNALjava.lang.StringgetSystemFunctions()INTERNALResultInterfacegetTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)INTERNALResultInterfacegetTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types)INTERNALResultInterfacegetTableTypes()INTERNALjava.lang.StringgetTimeDateFunctions()INTERNALResultInterfacegetTypeInfo()INTERNALResultInterfacegetUDTs(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, int[] types)INTERNALResultInterfacegetVersionColumns(java.lang.String catalog, java.lang.String schema, java.lang.String table)INTERNAL
-
-
-
Constructor Detail
-
DatabaseMetaLocal
public DatabaseMetaLocal(SessionLocal session)
-
-
Method Detail
-
defaultNullOrdering
public final DefaultNullOrdering defaultNullOrdering()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
defaultNullOrderingin classDatabaseMeta- Returns:
- DefaultNullOrdering
- See Also:
DatabaseMetaData.nullsAreSortedHigh(),DatabaseMetaData.nullsAreSortedLow(),DatabaseMetaData.nullsAreSortedAtStart(),DatabaseMetaData.nullsAreSortedAtEnd()
-
getSQLKeywords
public java.lang.String getSQLKeywords()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getSQLKeywordsin classDatabaseMeta- Returns:
- list of supported SQL keywords
- See Also:
DatabaseMetaData.getSQLKeywords()
-
getNumericFunctions
public java.lang.String getNumericFunctions()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getNumericFunctionsin classDatabaseMeta- Returns:
- list of supported numeric functions
- See Also:
DatabaseMetaData.getNumericFunctions()
-
getStringFunctions
public java.lang.String getStringFunctions()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getStringFunctionsin classDatabaseMeta- Returns:
- list of supported string functions
- See Also:
DatabaseMetaData.getStringFunctions()
-
getSystemFunctions
public java.lang.String getSystemFunctions()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getSystemFunctionsin classDatabaseMeta- Returns:
- list of supported system functions
- See Also:
DatabaseMetaData.getSystemFunctions()
-
getTimeDateFunctions
public java.lang.String getTimeDateFunctions()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getTimeDateFunctionsin classDatabaseMeta- Returns:
- list of supported time/date functions
- See Also:
DatabaseMetaData.getTimeDateFunctions()
-
getSearchStringEscape
public java.lang.String getSearchStringEscape()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getSearchStringEscapein 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:DatabaseMetaINTERNAL- Specified by:
getProceduresin 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:DatabaseMetaINTERNAL- Specified by:
getProcedureColumnsin 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:DatabaseMetaINTERNAL- Specified by:
getTablesin 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:DatabaseMetaINTERNAL- Specified by:
getSchemasin classDatabaseMeta- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getSchemas()
-
getCatalogs
public ResultInterface getCatalogs()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getCatalogsin classDatabaseMeta- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getCatalogs()
-
getTableTypes
public ResultInterface getTableTypes()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getTableTypesin 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:DatabaseMetaINTERNAL- Specified by:
getColumnsin 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:DatabaseMetaINTERNAL- Specified by:
getColumnPrivilegesin 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:DatabaseMetaINTERNAL- Specified by:
getTablePrivilegesin 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 catalog, java.lang.String schema, java.lang.String table, int scope, boolean nullable)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getBestRowIdentifierin classDatabaseMeta- Parameters:
catalog- "LIKE" style pattern to filter resultschema- "LIKE" style pattern to filter resulttable- 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:DatabaseMetaINTERNAL- Specified by:
getPrimaryKeysin 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:DatabaseMetaINTERNAL- Specified by:
getImportedKeysin 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:DatabaseMetaINTERNAL- Specified by:
getExportedKeysin 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:DatabaseMetaINTERNAL- Specified by:
getCrossReferencein 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:DatabaseMetaINTERNAL- Specified by:
getTypeInfoin 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:DatabaseMetaINTERNAL- Specified by:
getIndexInfoin 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:DatabaseMetaINTERNAL- Specified by:
getSchemasin 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:DatabaseMetaINTERNAL- Specified by:
getPseudoColumnsin 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)
-
getDatabaseProductVersion
public final java.lang.String getDatabaseProductVersion()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getDatabaseProductVersionin classDatabaseMeta- Returns:
- product version as String
- See Also:
DatabaseMetaData.getDatabaseProductVersion()
-
getVersionColumns
public final ResultInterface getVersionColumns(java.lang.String catalog, java.lang.String schema, java.lang.String table)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getVersionColumnsin classDatabaseMeta- Parameters:
catalog- to inspectschema- to inspecttable- to inspect- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getVersionColumns(String, String, String)
-
getUDTs
public final ResultInterface getUDTs(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, int[] types)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getUDTsin classDatabaseMeta- Parameters:
catalog- to inspectschemaPattern- "LIKE" style pattern to filter resulttypeNamePattern- "LIKE" style pattern to filter resulttypes- int[]- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getUDTs(String, String, String, int[])
-
getSuperTypes
public final ResultInterface getSuperTypes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getSuperTypesin classDatabaseMeta- Parameters:
catalog- to inspectschemaPattern- "LIKE" style pattern to filter resulttypeNamePattern- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getSuperTypes(String, String, String)
-
getSuperTables
public final ResultInterface getSuperTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getSuperTablesin classDatabaseMeta- Parameters:
catalog- to inspectschemaPattern- "LIKE" style pattern to filter resulttableNamePattern- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getSuperTables(String, String, String)
-
getAttributes
public final ResultInterface getAttributes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, java.lang.String attributeNamePattern)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getAttributesin classDatabaseMeta- Parameters:
catalog- to inspectschemaPattern- "LIKE" style pattern to filter resulttypeNamePattern- "LIKE" style pattern to filter resultattributeNamePattern- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getAttributes(String, String, String, String)
-
getDatabaseMajorVersion
public final int getDatabaseMajorVersion()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getDatabaseMajorVersionin classDatabaseMeta- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getDatabaseMajorVersion()
-
getDatabaseMinorVersion
public final int getDatabaseMinorVersion()
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getDatabaseMinorVersionin classDatabaseMeta- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getDatabaseMinorVersion()
-
getFunctions
public final ResultInterface getFunctions(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getFunctionsin classDatabaseMeta- Parameters:
catalog- to inspectschemaPattern- "LIKE" style pattern to filter resultfunctionNamePattern- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getFunctions(String, String, String)
-
getFunctionColumns
public final ResultInterface getFunctionColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern, java.lang.String columnNamePattern)
Description copied from class:DatabaseMetaINTERNAL- Specified by:
getFunctionColumnsin classDatabaseMeta- Parameters:
catalog- to inspectschemaPattern- "LIKE" style pattern to filter resultfunctionNamePattern- "LIKE" style pattern to filter resultcolumnNamePattern- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
DatabaseMetaData.getFunctionColumns(String, String, String, String)
-
-