Package org.h2.jdbc.meta
Class DatabaseMetaRemote
java.lang.Object
org.h2.jdbc.meta.DatabaseMeta
org.h2.jdbc.meta.DatabaseMetaRemote
Remote implementation of database meta information.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
private final SessionRemote
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionINTERNALprivate ResultInterface
executeQuery
(int code, Value... args) getAttributes
(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) INTERNALgetBestRowIdentifier
(String catalog, String schema, String table, int scope, boolean nullable) INTERNALINTERNALgetColumnPrivileges
(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) INTERNALint
INTERNALint
INTERNALINTERNALgetExportedKeys
(String catalog, String schema, String table) INTERNALgetFunctionColumns
(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) INTERNALgetFunctions
(String catalog, String schemaPattern, String functionNamePattern) INTERNALgetImportedKeys
(String catalog, String schema, String table) INTERNALgetIndexInfo
(String catalog, String schema, String table, boolean unique, boolean approximate) INTERNALprivate Value
getIntArray
(int[] array) INTERNALgetPrimaryKeys
(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) INTERNALINTERNALgetSchemas
(String catalog, String schemaPattern) INTERNALINTERNALINTERNALprivate Value
private Value
getStringArray
(String[] array) INTERNALgetSuperTables
(String catalog, String schemaPattern, String tableNamePattern) INTERNALgetSuperTypes
(String catalog, String schemaPattern, String typeNamePattern) INTERNALINTERNALgetTablePrivileges
(String catalog, String schemaPattern, String tableNamePattern) INTERNALINTERNALINTERNALINTERNALINTERNALINTERNALgetVersionColumns
(String catalog, String schema, String table) INTERNAL
-
Field Details
-
DEFAULT_NULL_ORDERING
static final int DEFAULT_NULL_ORDERING- See Also:
-
GET_DATABASE_PRODUCT_VERSION
static final int GET_DATABASE_PRODUCT_VERSION- See Also:
-
GET_SQL_KEYWORDS
static final int GET_SQL_KEYWORDS- See Also:
-
GET_NUMERIC_FUNCTIONS
static final int GET_NUMERIC_FUNCTIONS- See Also:
-
GET_STRING_FUNCTIONS
static final int GET_STRING_FUNCTIONS- See Also:
-
GET_SYSTEM_FUNCTIONS
static final int GET_SYSTEM_FUNCTIONS- See Also:
-
GET_TIME_DATE_FUNCTIONS
static final int GET_TIME_DATE_FUNCTIONS- See Also:
-
GET_SEARCH_STRING_ESCAPE
static final int GET_SEARCH_STRING_ESCAPE- See Also:
-
GET_PROCEDURES_3
static final int GET_PROCEDURES_3- See Also:
-
GET_PROCEDURE_COLUMNS_4
static final int GET_PROCEDURE_COLUMNS_4- See Also:
-
GET_TABLES_4
static final int GET_TABLES_4- See Also:
-
GET_SCHEMAS
static final int GET_SCHEMAS- See Also:
-
GET_CATALOGS
static final int GET_CATALOGS- See Also:
-
GET_TABLE_TYPES
static final int GET_TABLE_TYPES- See Also:
-
GET_COLUMNS_4
static final int GET_COLUMNS_4- See Also:
-
GET_COLUMN_PRIVILEGES_4
static final int GET_COLUMN_PRIVILEGES_4- See Also:
-
GET_TABLE_PRIVILEGES_3
static final int GET_TABLE_PRIVILEGES_3- See Also:
-
GET_BEST_ROW_IDENTIFIER_5
static final int GET_BEST_ROW_IDENTIFIER_5- See Also:
-
GET_VERSION_COLUMNS_3
static final int GET_VERSION_COLUMNS_3- See Also:
-
GET_PRIMARY_KEYS_3
static final int GET_PRIMARY_KEYS_3- See Also:
-
GET_IMPORTED_KEYS_3
static final int GET_IMPORTED_KEYS_3- See Also:
-
GET_EXPORTED_KEYS_3
static final int GET_EXPORTED_KEYS_3- See Also:
-
GET_CROSS_REFERENCE_6
static final int GET_CROSS_REFERENCE_6- See Also:
-
GET_TYPE_INFO
static final int GET_TYPE_INFO- See Also:
-
GET_INDEX_INFO_5
static final int GET_INDEX_INFO_5- See Also:
-
GET_UDTS_4
static final int GET_UDTS_4- See Also:
-
GET_SUPER_TYPES_3
static final int GET_SUPER_TYPES_3- See Also:
-
GET_SUPER_TABLES_3
static final int GET_SUPER_TABLES_3- See Also:
-
GET_ATTRIBUTES_4
static final int GET_ATTRIBUTES_4- See Also:
-
GET_DATABASE_MAJOR_VERSION
static final int GET_DATABASE_MAJOR_VERSION- See Also:
-
GET_DATABASE_MINOR_VERSION
static final int GET_DATABASE_MINOR_VERSION- See Also:
-
GET_SCHEMAS_2
static final int GET_SCHEMAS_2- See Also:
-
GET_FUNCTIONS_3
static final int GET_FUNCTIONS_3- See Also:
-
GET_FUNCTION_COLUMNS_4
static final int GET_FUNCTION_COLUMNS_4- See Also:
-
GET_PSEUDO_COLUMNS_4
static final int GET_PSEUDO_COLUMNS_4- See Also:
-
session
-
transferList
-
-
Constructor Details
-
DatabaseMetaRemote
-
-
Method Details
-
defaultNullOrdering
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
defaultNullOrdering
in classDatabaseMeta
- Returns:
- DefaultNullOrdering
- See Also:
-
getDatabaseProductVersion
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getDatabaseProductVersion
in classDatabaseMeta
- Returns:
- product version as String
- 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:
-
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 catalog, String schema, String table, int scope, boolean nullable) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getBestRowIdentifier
in 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:
-
getVersionColumns
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getVersionColumns
in classDatabaseMeta
- Parameters:
catalog
- to inspectschema
- to inspecttable
- to inspect- 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:
-
getUDTs
public ResultInterface getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getUDTs
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resulttypeNamePattern
- "LIKE" style pattern to filter resulttypes
- int[]- Returns:
- ResultInterface
- See Also:
-
getSuperTypes
Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSuperTypes
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resulttypeNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getSuperTables
public ResultInterface getSuperTables(String catalog, String schemaPattern, String tableNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getSuperTables
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resulttableNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getAttributes
public ResultInterface getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getAttributes
in 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:
-
getDatabaseMajorVersion
public int getDatabaseMajorVersion()Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getDatabaseMajorVersion
in classDatabaseMeta
- Returns:
- ResultInterface
- See Also:
-
getDatabaseMinorVersion
public int getDatabaseMinorVersion()Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getDatabaseMinorVersion
in classDatabaseMeta
- 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:
-
getFunctions
public ResultInterface getFunctions(String catalog, String schemaPattern, String functionNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getFunctions
in classDatabaseMeta
- Parameters:
catalog
- to inspectschemaPattern
- "LIKE" style pattern to filter resultfunctionNamePattern
- "LIKE" style pattern to filter result- Returns:
- ResultInterface
- See Also:
-
getFunctionColumns
public ResultInterface getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) Description copied from class:DatabaseMeta
INTERNAL- Specified by:
getFunctionColumns
in 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:
-
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
-
getIntArray
-
getStringArray
-
getString
-