类 DatabaseMetaDataUsingInfoSchema
- java.lang.Object
-
- com.mysql.cj.jdbc.DatabaseMetaData
-
- com.mysql.cj.jdbc.DatabaseMetaDataUsingInfoSchema
-
- 所有已实现的接口:
DatabaseMetaData,Wrapper
public class DatabaseMetaDataUsingInfoSchema extends DatabaseMetaData
DatabaseMetaData implementation that uses INFORMATION_SCHEMA
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static classDatabaseMetaDataUsingInfoSchema.FunctionConstant-
从类继承的嵌套类/接口 com.mysql.cj.jdbc.DatabaseMetaData
DatabaseMetaData.ComparableWrapper<K extends Object & Comparable<? super K>,V>, DatabaseMetaData.IndexMetaDataKey, DatabaseMetaData.IteratorWithCleanup<T>, DatabaseMetaData.ProcedureType, DatabaseMetaData.SingleStringIterator, DatabaseMetaData.StringListIterator, DatabaseMetaData.TableMetaDataKey, DatabaseMetaData.TableType
-
-
字段概要
-
从类继承的字段 com.mysql.cj.jdbc.DatabaseMetaData
conn, database, databaseTerm, MAX_IDENTIFIER_LENGTH, maxBufferSize, nullDatabaseMeansCurrent, pedantic, quotedId, resultSetFactory, session, SYSTEM_TABLE_AS_BYTES, TABLE_AS_BYTES, tinyInt1isBit, transformedBitIsBoolean, useHostsInPrivileges, VIEW_AS_BYTES, yearIsDateType
-
从接口继承的字段 java.sql.DatabaseMetaData
attributeNoNulls, attributeNullable, attributeNullableUnknown, bestRowNotPseudo, bestRowPseudo, bestRowSession, bestRowTemporary, bestRowTransaction, bestRowUnknown, columnNoNulls, columnNullable, columnNullableUnknown, functionColumnIn, functionColumnInOut, functionColumnOut, functionColumnResult, functionColumnUnknown, functionNoNulls, functionNoTable, functionNullable, functionNullableUnknown, functionResultUnknown, functionReturn, functionReturnsTable, importedKeyCascade, importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, importedKeyNoAction, importedKeyNotDeferrable, importedKeyRestrict, importedKeySetDefault, importedKeySetNull, procedureColumnIn, procedureColumnInOut, procedureColumnOut, procedureColumnResult, procedureColumnReturn, procedureColumnUnknown, procedureNoNulls, procedureNoResult, procedureNullable, procedureNullableUnknown, procedureResultUnknown, procedureReturnsResult, sqlStateSQL, sqlStateSQL99, sqlStateXOpen, tableIndexClustered, tableIndexHashed, tableIndexOther, tableIndexStatistic, typeNoNulls, typeNullable, typeNullableUnknown, typePredBasic, typePredChar, typePredNone, typeSearchable, versionColumnNotPseudo, versionColumnPseudo, versionColumnUnknown
-
-
构造器概要
构造器 限定符 构造器 说明 protectedDatabaseMetaDataUsingInfoSchema(JdbcConnection connToSet, String databaseToSet, ResultSetFactory resultSetFactory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ResultSetexecuteMetadataQuery(PreparedStatement pStmt)ResultSetgetBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)ResultSetgetCatalogs()ResultSetgetColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)ResultSetgetColumns(String catalog, String schemaPattern, String tableName, String columnNamePattern)ResultSetgetCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable)ResultSetgetExportedKeys(String catalog, String schema, String table)ResultSetgetFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern)protected intgetFunctionConstant(DatabaseMetaDataUsingInfoSchema.FunctionConstant constant)Getter to DatabaseMetaData.function* constants.ResultSetgetFunctions(String catalog, String schemaPattern, String functionNamePattern)ResultSetgetImportedKeys(String catalog, String schema, String table)ResultSetgetIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)ResultSetgetPrimaryKeys(String catalog, String schema, String table)ResultSetgetProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)ResultSetgetProcedures(String catalog, String schemaPattern, String procedureNamePattern)ResultSetgetSchemas()ResultSetgetSchemas(String catalog, String schemaPattern)StringgetSQLKeywords()Get a comma separated list of all a database's SQL keywords that are NOT also SQL92/SQL2003 keywords.ResultSetgetTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)ResultSetgetTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)ResultSetgetVersionColumns(String catalog, String schema, String table)-
从类继承的方法 com.mysql.cj.jdbc.DatabaseMetaData
allProceduresAreCallable, allTablesAreSelectable, autoCommitFailureClosesAllResultSets, convertToJdbcFunctionList, convertToJdbcProcedureList, createColumnsFields, createFieldMetadataForGetProcedures, createFkMetadataFields, createFunctionColumnsFields, createIndexInfoFields, createProcedureColumnsFields, createTablesFields, dataDefinitionCausesTransactionCommit, dataDefinitionIgnoredInTransactions, deletesAreDetected, doesMaxRowSizeIncludeBlobs, extractForeignKeyForTable, extractForeignKeyFromCreateTable, generatedKeyAlwaysReturned, getAttributes, getCatalogSeparator, getCatalogTerm, getClientInfoProperties, getColumnPrivilegesFields, getColumnType, getConnection, getDatabase, getDatabaseIterator, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDatabases, getDatabases, getDefaultTransactionIsolation, getDriverMajorVersion, getDriverMinorVersion, getDriverName, getDriverVersion, getExceptionInterceptor, getExtraNameCharacters, getForeignKeyActions, getFunctionsFields, getIdentifierQuoteString, getInstance, getJDBCMajorVersion, getJDBCMinorVersion, getMaxBinaryLiteralLength, getMaxCatalogNameLength, getMaxCharLiteralLength, getMaxColumnNameLength, getMaxColumnsInGroupBy, getMaxColumnsInIndex, getMaxColumnsInOrderBy, getMaxColumnsInSelect, getMaxColumnsInTable, getMaxConnections, getMaxCursorNameLength, getMaxIndexLength, getMaxProcedureNameLength, getMaxRowSize, getMaxSchemaNameLength, getMaxStatementLength, getMaxStatements, getMaxTableNameLength, getMaxTablesInSelect, getMaxUserNameLength, getMetadataCollationIndex, getMetadataEncoding, getNumericFunctions, getPrimaryKeysFields, getProcedureOrFunctionColumns, getProcedureOrFunctionColumnType, getProceduresAndOrFunctions, getProcedureTerm, getPseudoColumns, getResultSetHoldability, getRowIdLifetime, getSchemaPatternIterator, getSchemaTerm, getSearchStringEscape, getSQLStateType, getStringFunctions, getSuperTables, getSuperTypes, getSystemFunctions, getTableNameWithCase, getTableTypes, getTimeDateFunctions, getTypeInfo, getUDTs, getURL, getUserName, getVersionColumnsFields, insertsAreDetected, isCatalogAtStart, isReadOnly, isWrapperFor, locatorsUpdateCopy, nullPlusNonNullIsNull, nullsAreSortedAtEnd, nullsAreSortedAtStart, nullsAreSortedHigh, nullsAreSortedLow, othersDeletesAreVisible, othersInsertsAreVisible, othersUpdatesAreVisible, ownDeletesAreVisible, ownInsertsAreVisible, ownUpdatesAreVisible, parseTableStatusIntoLocalAndReferencedColumns, prepareMetaDataSafeStatement, providesQueryObjectGenerator, s2b, setMetadataCollationIndex, setMetadataEncoding, storesLowerCaseIdentifiers, storesLowerCaseQuotedIdentifiers, storesMixedCaseIdentifiers, storesMixedCaseQuotedIdentifiers, storesUpperCaseIdentifiers, storesUpperCaseQuotedIdentifiers, supportsAlterTableWithAddColumn, supportsAlterTableWithDropColumn, supportsANSI92EntryLevelSQL, supportsANSI92FullSQL, supportsANSI92IntermediateSQL, supportsBatchUpdates, supportsCatalogsInDataManipulation, supportsCatalogsInIndexDefinitions, supportsCatalogsInPrivilegeDefinitions, supportsCatalogsInProcedureCalls, supportsCatalogsInTableDefinitions, supportsColumnAliasing, supportsConvert, supportsConvert, supportsCoreSQLGrammar, supportsCorrelatedSubqueries, supportsDataDefinitionAndDataManipulationTransactions, supportsDataManipulationTransactionsOnly, supportsDifferentTableCorrelationNames, supportsExpressionsInOrderBy, supportsExtendedSQLGrammar, supportsFullOuterJoins, supportsGetGeneratedKeys, supportsGroupBy, supportsGroupByBeyondSelect, supportsGroupByUnrelated, supportsIntegrityEnhancementFacility, supportsLikeEscapeClause, supportsLimitedOuterJoins, supportsMinimumSQLGrammar, supportsMixedCaseIdentifiers, supportsMixedCaseQuotedIdentifiers, supportsMultipleOpenResults, supportsMultipleResultSets, supportsMultipleTransactions, supportsNamedParameters, supportsNonNullableColumns, supportsOpenCursorsAcrossCommit, supportsOpenCursorsAcrossRollback, supportsOpenStatementsAcrossCommit, supportsOpenStatementsAcrossRollback, supportsOrderByUnrelated, supportsOuterJoins, supportsPositionedDelete, supportsPositionedUpdate, supportsResultSetConcurrency, supportsResultSetHoldability, supportsResultSetType, supportsSavepoints, supportsSchemasInDataManipulation, supportsSchemasInIndexDefinitions, supportsSchemasInPrivilegeDefinitions, supportsSchemasInProcedureCalls, supportsSchemasInTableDefinitions, supportsSelectForUpdate, supportsStatementPooling, supportsStoredFunctionsUsingCallSyntax, supportsStoredProcedures, supportsSubqueriesInComparisons, supportsSubqueriesInExists, supportsSubqueriesInIns, supportsSubqueriesInQuantifieds, supportsTableCorrelationNames, supportsTransactionIsolationLevel, supportsTransactions, supportsUnion, supportsUnionAll, unwrap, updatesAreDetected, usesLocalFilePerTable, usesLocalFiles
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.sql.DatabaseMetaData
getMaxLogicalLobSize, supportsRefCursors, supportsSharding
-
-
-
-
构造器详细资料
-
DatabaseMetaDataUsingInfoSchema
protected DatabaseMetaDataUsingInfoSchema(JdbcConnection connToSet, String databaseToSet, ResultSetFactory resultSetFactory) throws SQLException
- 抛出:
SQLException
-
-
方法详细资料
-
executeMetadataQuery
protected ResultSet executeMetadataQuery(PreparedStatement pStmt) throws SQLException
- 抛出:
SQLException
-
getColumnPrivileges
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException
- 指定者:
getColumnPrivileges在接口中DatabaseMetaData- 覆盖:
getColumnPrivileges在类中DatabaseMetaData- 抛出:
SQLException
-
getColumns
public ResultSet getColumns(String catalog, String schemaPattern, String tableName, String columnNamePattern) throws SQLException
- 指定者:
getColumns在接口中DatabaseMetaData- 覆盖:
getColumns在类中DatabaseMetaData- 抛出:
SQLException
-
getCrossReference
public ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
- 指定者:
getCrossReference在接口中DatabaseMetaData- 覆盖:
getCrossReference在类中DatabaseMetaData- 抛出:
SQLException
-
getExportedKeys
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException
- 指定者:
getExportedKeys在接口中DatabaseMetaData- 覆盖:
getExportedKeys在类中DatabaseMetaData- 抛出:
SQLException
-
getImportedKeys
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException
- 指定者:
getImportedKeys在接口中DatabaseMetaData- 覆盖:
getImportedKeys在类中DatabaseMetaData- 抛出:
SQLException
-
getIndexInfo
public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException
- 指定者:
getIndexInfo在接口中DatabaseMetaData- 覆盖:
getIndexInfo在类中DatabaseMetaData- 抛出:
SQLException
-
getPrimaryKeys
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException
- 指定者:
getPrimaryKeys在接口中DatabaseMetaData- 覆盖:
getPrimaryKeys在类中DatabaseMetaData- 抛出:
SQLException
-
getProcedures
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException
- 指定者:
getProcedures在接口中DatabaseMetaData- 覆盖:
getProcedures在类中DatabaseMetaData- 抛出:
SQLException
-
getProcedureColumns
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
- 指定者:
getProcedureColumns在接口中DatabaseMetaData- 覆盖:
getProcedureColumns在类中DatabaseMetaData- 抛出:
SQLException
-
getTables
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
- 指定者:
getTables在接口中DatabaseMetaData- 覆盖:
getTables在类中DatabaseMetaData- 抛出:
SQLException
-
getVersionColumns
public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException
- 指定者:
getVersionColumns在接口中DatabaseMetaData- 覆盖:
getVersionColumns在类中DatabaseMetaData- 抛出:
SQLException
-
getFunctionColumns
public ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException
- 指定者:
getFunctionColumns在接口中DatabaseMetaData- 覆盖:
getFunctionColumns在类中DatabaseMetaData- 抛出:
SQLException
-
getFunctionConstant
protected int getFunctionConstant(DatabaseMetaDataUsingInfoSchema.FunctionConstant constant)
Getter to DatabaseMetaData.function* constants.- 参数:
constant- the constant id from DatabaseMetaData fields to return.- 返回:
- one of the java.sql.DatabaseMetaData#function* fields.
-
getFunctions
public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException
- 指定者:
getFunctions在接口中DatabaseMetaData- 覆盖:
getFunctions在类中DatabaseMetaData- 抛出:
SQLException
-
getSQLKeywords
public String getSQLKeywords() throws SQLException
从类复制的说明:DatabaseMetaDataGet a comma separated list of all a database's SQL keywords that are NOT also SQL92/SQL2003 keywords.- 指定者:
getSQLKeywords在接口中DatabaseMetaData- 覆盖:
getSQLKeywords在类中DatabaseMetaData- 返回:
- the list
- 抛出:
SQLException- if a database access error occurs
-
getSchemas
public ResultSet getSchemas() throws SQLException
- 指定者:
getSchemas在接口中DatabaseMetaData- 覆盖:
getSchemas在类中DatabaseMetaData- 抛出:
SQLException
-
getSchemas
public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException
- 指定者:
getSchemas在接口中DatabaseMetaData- 覆盖:
getSchemas在类中DatabaseMetaData- 抛出:
SQLException
-
getCatalogs
public ResultSet getCatalogs() throws SQLException
- 指定者:
getCatalogs在接口中DatabaseMetaData- 覆盖:
getCatalogs在类中DatabaseMetaData- 抛出:
SQLException
-
getTablePrivileges
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
- 指定者:
getTablePrivileges在接口中DatabaseMetaData- 覆盖:
getTablePrivileges在类中DatabaseMetaData- 抛出:
SQLException
-
getBestRowIdentifier
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException
- 指定者:
getBestRowIdentifier在接口中DatabaseMetaData- 覆盖:
getBestRowIdentifier在类中DatabaseMetaData- 抛出:
SQLException
-
-