类 DatabaseMetaData
- java.lang.Object
-
- com.mysql.cj.jdbc.DatabaseMetaData
-
- 所有已实现的接口:
DatabaseMetaData,Wrapper
- 直接已知子类:
DatabaseMetaDataUsingInfoSchema
public class DatabaseMetaData extends Object implements DatabaseMetaData
JDBC Interface to Mysql functionsThis class provides information about the database as a whole.
Many of the methods here return lists of information in ResultSets. You can use the normal ResultSet methods such as getString and getInt to retrieve the data from these ResultSets. If a given form of metadata is not available, these methods show throw a SQLException.
Some of these methods take arguments that are String patterns. These methods all have names such as fooPattern. Within a pattern String "%" means match any substring of 0 or more characters and "_" means match any one character.
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected classDatabaseMetaData.ComparableWrapper<K extends Object & Comparable<? super K>,V>Helper/wrapper class to provide means of sorting objects by using a sorting key.protected classDatabaseMetaData.IndexMetaDataKeyHelper class to provide means of comparing indexes by NON_UNIQUE, TYPE, INDEX_NAME, and ORDINAL_POSITION.protected classDatabaseMetaData.IteratorWithCleanup<T>protected static classDatabaseMetaData.ProcedureTypeEnumeration for Procedure Typesprotected classDatabaseMetaData.SingleStringIteratorprotected classDatabaseMetaData.StringListIteratorprotected classDatabaseMetaData.TableMetaDataKeyHelper class to provide means of comparing tables by TABLE_TYPE, TABLE_CAT, TABLE_SCHEM and TABLE_NAME.protected static classDatabaseMetaData.TableTypeEnumeration for Table Types
-
字段概要
字段 修饰符和类型 字段 说明 protected JdbcConnectionconnThe connection to the databaseprotected StringdatabaseThe 'current' database name being usedprotected RuntimeProperty<PropertyDefinitions.DatabaseTerm>databaseTermprotected static intMAX_IDENTIFIER_LENGTHprotected static intmaxBufferSizeDefault max buffer size.protected RuntimeProperty<Boolean>nullDatabaseMeansCurrentprotected booleanpedanticprotected StringquotedIdWhat character to use when quoting identifiersprotected ResultSetFactoryresultSetFactoryprotected NativeSessionsessionprotected static byte[]SYSTEM_TABLE_AS_BYTESprotected static byte[]TABLE_AS_BYTESprotected booleantinyInt1isBitprotected booleantransformedBitIsBooleanprotected booleanuseHostsInPrivilegesprotected static byte[]VIEW_AS_BYTESprotected booleanyearIsDateType-
从接口继承的字段 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
-
-
构造器概要
构造器 限定符 构造器 说明 protectedDatabaseMetaData(JdbcConnection connToSet, String databaseToSet, ResultSetFactory resultSetFactory)Creates a new DatabaseMetaData object.
-
方法概要
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.sql.DatabaseMetaData
getMaxLogicalLobSize, supportsRefCursors, supportsSharding
-
-
-
-
字段详细资料
-
maxBufferSize
protected static int maxBufferSize
Default max buffer size. SeePropertyKey.maxAllowedPacket.
-
MAX_IDENTIFIER_LENGTH
protected static final int MAX_IDENTIFIER_LENGTH
- 另请参阅:
- 常量字段值
-
TABLE_AS_BYTES
protected static final byte[] TABLE_AS_BYTES
-
SYSTEM_TABLE_AS_BYTES
protected static final byte[] SYSTEM_TABLE_AS_BYTES
-
VIEW_AS_BYTES
protected static final byte[] VIEW_AS_BYTES
-
conn
protected JdbcConnection conn
The connection to the database
-
session
protected NativeSession session
-
database
protected String database
The 'current' database name being used
-
quotedId
protected final String quotedId
What character to use when quoting identifiers
-
pedantic
protected boolean pedantic
-
tinyInt1isBit
protected boolean tinyInt1isBit
-
transformedBitIsBoolean
protected boolean transformedBitIsBoolean
-
useHostsInPrivileges
protected boolean useHostsInPrivileges
-
yearIsDateType
protected boolean yearIsDateType
-
databaseTerm
protected RuntimeProperty<PropertyDefinitions.DatabaseTerm> databaseTerm
-
nullDatabaseMeansCurrent
protected RuntimeProperty<Boolean> nullDatabaseMeansCurrent
-
resultSetFactory
protected ResultSetFactory resultSetFactory
-
-
构造器详细资料
-
DatabaseMetaData
protected DatabaseMetaData(JdbcConnection connToSet, String databaseToSet, ResultSetFactory resultSetFactory)
Creates a new DatabaseMetaData object.- 参数:
connToSet- Connection objectdatabaseToSet- database nameresultSetFactory-ResultSetFactory
-
-
方法详细资料
-
getInstance
protected static DatabaseMetaData getInstance(JdbcConnection connToSet, String databaseToSet, boolean checkForInfoSchema, ResultSetFactory resultSetFactory) throws SQLException
- 抛出:
SQLException
-
allProceduresAreCallable
public boolean allProceduresAreCallable() throws SQLException- 指定者:
allProceduresAreCallable在接口中DatabaseMetaData- 抛出:
SQLException
-
allTablesAreSelectable
public boolean allTablesAreSelectable() throws SQLException- 指定者:
allTablesAreSelectable在接口中DatabaseMetaData- 抛出:
SQLException
-
convertToJdbcFunctionList
protected void convertToJdbcFunctionList(ResultSet proceduresRs, List<DatabaseMetaData.ComparableWrapper<String,Row>> procedureRows, Field[] fields) throws SQLException
- 抛出:
SQLException
-
convertToJdbcProcedureList
protected void convertToJdbcProcedureList(boolean fromSelect, ResultSet proceduresRs, List<DatabaseMetaData.ComparableWrapper<String,Row>> procedureRows) throws SQLException- 抛出:
SQLException
-
getColumnType
protected int getColumnType(boolean isOutParam, boolean isInParam, boolean isReturnParam, boolean forGetFunctionColumns)Determines the COLUMN_TYPE information based on parameter type (IN, OUT or INOUT) or function return parameter.- 参数:
isOutParam- Indicates whether it's an output parameter.isInParam- Indicates whether it's an input parameter.isReturnParam- Indicates whether it's a function return parameter.forGetFunctionColumns- Indicates whether the column belong to a function. This argument is required for JDBC4, in which case this method must be overridden to provide the correct functionality.- 返回:
- The corresponding COLUMN_TYPE as in java.sql.getProcedureColumns API.
-
getProcedureOrFunctionColumnType
protected static int getProcedureOrFunctionColumnType(boolean isOutParam, boolean isInParam, boolean isReturnParam, boolean forGetFunctionColumns)Determines the COLUMN_TYPE information based on parameter type (IN, OUT or INOUT) or function return parameter.- 参数:
isOutParam- Indicates whether it's an output parameter.isInParam- Indicates whether it's an input parameter.isReturnParam- Indicates whether it's a function return parameter.forGetFunctionColumns- Indicates whether the column belong to a function.- 返回:
- The corresponding COLUMN_TYPE as in java.sql.getProcedureColumns API.
-
getExceptionInterceptor
protected ExceptionInterceptor getExceptionInterceptor()
-
dataDefinitionCausesTransactionCommit
public boolean dataDefinitionCausesTransactionCommit() throws SQLException
-
dataDefinitionIgnoredInTransactions
public boolean dataDefinitionIgnoredInTransactions() throws SQLException- 指定者:
dataDefinitionIgnoredInTransactions在接口中DatabaseMetaData- 抛出:
SQLException
-
deletesAreDetected
public boolean deletesAreDetected(int type) throws SQLException- 指定者:
deletesAreDetected在接口中DatabaseMetaData- 抛出:
SQLException
-
doesMaxRowSizeIncludeBlobs
public boolean doesMaxRowSizeIncludeBlobs() throws SQLException- 指定者:
doesMaxRowSizeIncludeBlobs在接口中DatabaseMetaData- 抛出:
SQLException
-
extractForeignKeyForTable
public List<Row> extractForeignKeyForTable(ArrayList<Row> rows, ResultSet rs, String dbName) throws SQLException
Extracts foreign key info for one table.- 参数:
rows- the list of rows to add tors- the result set from 'SHOW CREATE TABLE'dbName- the database name- 返回:
- the list of rows with new rows added
- 抛出:
SQLException- if a database access error occurs
-
extractForeignKeyFromCreateTable
public ResultSet extractForeignKeyFromCreateTable(String dbName, String tableName) throws SQLException
Creates a result set similar enough to 'SHOW TABLE STATUS' to allow the same code to work on extracting the foreign key data- 参数:
dbName- the database name to extract foreign key info fortableName- the table to extract foreign key info for- 返回:
- A result set that has the structure of 'show table status'
- 抛出:
SQLException- if a database access error occurs.
-
getAttributes
public ResultSet getAttributes(String arg0, String arg1, String arg2, String arg3) throws SQLException
- 指定者:
getAttributes在接口中DatabaseMetaData- 抛出:
SQLException
-
getBestRowIdentifier
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException
- 指定者:
getBestRowIdentifier在接口中DatabaseMetaData- 抛出:
SQLException
-
getDatabaseIterator
protected DatabaseMetaData.IteratorWithCleanup<String> getDatabaseIterator(String dbSpec) throws SQLException
- 抛出:
SQLException
-
getSchemaPatternIterator
protected DatabaseMetaData.IteratorWithCleanup<String> getSchemaPatternIterator(String schemaPattern) throws SQLException
- 抛出:
SQLException
-
getDatabases
protected List<String> getDatabases() throws SQLException
Retrieves the database names available on this server. The results are ordered by database name.- 返回:
- list of database names
- 抛出:
SQLException- if an error occurs
-
getDatabases
protected List<String> getDatabases(String dbPattern) throws SQLException
Retrieves the database names matching the dbPattern available on this server. The results are ordered by database name.- 参数:
dbPattern- database name pattern- 返回:
- list of database names
- 抛出:
SQLException- if an error occurs
-
getCatalogs
public ResultSet getCatalogs() throws SQLException
- 指定者:
getCatalogs在接口中DatabaseMetaData- 抛出:
SQLException
-
getCatalogSeparator
public String getCatalogSeparator() throws SQLException
- 指定者:
getCatalogSeparator在接口中DatabaseMetaData- 抛出:
SQLException
-
getCatalogTerm
public String getCatalogTerm() throws SQLException
- 指定者:
getCatalogTerm在接口中DatabaseMetaData- 抛出:
SQLException
-
getColumnPrivilegesFields
protected Field[] getColumnPrivilegesFields()
-
getColumnPrivileges
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException
- 指定者:
getColumnPrivileges在接口中DatabaseMetaData- 抛出:
SQLException
-
getColumns
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
- 指定者:
getColumns在接口中DatabaseMetaData- 抛出:
SQLException
-
createColumnsFields
protected Field[] createColumnsFields()
-
getConnection
public Connection getConnection() throws SQLException
- 指定者:
getConnection在接口中DatabaseMetaData- 抛出:
SQLException
-
getCrossReference
public ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
- 指定者:
getCrossReference在接口中DatabaseMetaData- 抛出:
SQLException
-
createFkMetadataFields
protected Field[] createFkMetadataFields()
-
getDatabaseMajorVersion
public int getDatabaseMajorVersion() throws SQLException- 指定者:
getDatabaseMajorVersion在接口中DatabaseMetaData- 抛出:
SQLException
-
getDatabaseMinorVersion
public int getDatabaseMinorVersion() throws SQLException- 指定者:
getDatabaseMinorVersion在接口中DatabaseMetaData- 抛出:
SQLException
-
getDatabaseProductName
public String getDatabaseProductName() throws SQLException
- 指定者:
getDatabaseProductName在接口中DatabaseMetaData- 抛出:
SQLException
-
getDatabaseProductVersion
public String getDatabaseProductVersion() throws SQLException
- 指定者:
getDatabaseProductVersion在接口中DatabaseMetaData- 抛出:
SQLException
-
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation() throws SQLException- 指定者:
getDefaultTransactionIsolation在接口中DatabaseMetaData- 抛出:
SQLException
-
getDriverMajorVersion
public int getDriverMajorVersion()
- 指定者:
getDriverMajorVersion在接口中DatabaseMetaData
-
getDriverMinorVersion
public int getDriverMinorVersion()
- 指定者:
getDriverMinorVersion在接口中DatabaseMetaData
-
getDriverName
public String getDriverName() throws SQLException
- 指定者:
getDriverName在接口中DatabaseMetaData- 抛出:
SQLException
-
getDriverVersion
public String getDriverVersion() throws SQLException
- 指定者:
getDriverVersion在接口中DatabaseMetaData- 抛出:
SQLException
-
getExportedKeys
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException
- 指定者:
getExportedKeys在接口中DatabaseMetaData- 抛出:
SQLException
-
getExtraNameCharacters
public String getExtraNameCharacters() throws SQLException
- 指定者:
getExtraNameCharacters在接口中DatabaseMetaData- 抛出:
SQLException
-
getForeignKeyActions
protected int[] getForeignKeyActions(String commentString)
Returns the DELETE and UPDATE foreign key actions from the given 'SHOW TABLE STATUS' string, with the DELETE action being the first item in the array, and the UPDATE action being the second.- 参数:
commentString- the comment from 'SHOW TABLE STATUS'- 返回:
- int[] [0] = delete action, [1] = update action
-
getIdentifierQuoteString
public String getIdentifierQuoteString() throws SQLException
- 指定者:
getIdentifierQuoteString在接口中DatabaseMetaData- 抛出:
SQLException
-
getImportedKeys
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException
- 指定者:
getImportedKeys在接口中DatabaseMetaData- 抛出:
SQLException
-
getIndexInfo
public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException
- 指定者:
getIndexInfo在接口中DatabaseMetaData- 抛出:
SQLException
-
createIndexInfoFields
protected Field[] createIndexInfoFields()
-
getJDBCMajorVersion
public int getJDBCMajorVersion() throws SQLException- 指定者:
getJDBCMajorVersion在接口中DatabaseMetaData- 抛出:
SQLException
-
getJDBCMinorVersion
public int getJDBCMinorVersion() throws SQLException- 指定者:
getJDBCMinorVersion在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxBinaryLiteralLength
public int getMaxBinaryLiteralLength() throws SQLException- 指定者:
getMaxBinaryLiteralLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxCatalogNameLength
public int getMaxCatalogNameLength() throws SQLException- 指定者:
getMaxCatalogNameLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxCharLiteralLength
public int getMaxCharLiteralLength() throws SQLException- 指定者:
getMaxCharLiteralLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxColumnNameLength
public int getMaxColumnNameLength() throws SQLException- 指定者:
getMaxColumnNameLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxColumnsInGroupBy
public int getMaxColumnsInGroupBy() throws SQLException- 指定者:
getMaxColumnsInGroupBy在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxColumnsInIndex
public int getMaxColumnsInIndex() throws SQLException- 指定者:
getMaxColumnsInIndex在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxColumnsInOrderBy
public int getMaxColumnsInOrderBy() throws SQLException- 指定者:
getMaxColumnsInOrderBy在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxColumnsInSelect
public int getMaxColumnsInSelect() throws SQLException- 指定者:
getMaxColumnsInSelect在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxColumnsInTable
public int getMaxColumnsInTable() throws SQLException- 指定者:
getMaxColumnsInTable在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxConnections
public int getMaxConnections() throws SQLException- 指定者:
getMaxConnections在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxCursorNameLength
public int getMaxCursorNameLength() throws SQLException- 指定者:
getMaxCursorNameLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxIndexLength
public int getMaxIndexLength() throws SQLException- 指定者:
getMaxIndexLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxProcedureNameLength
public int getMaxProcedureNameLength() throws SQLException- 指定者:
getMaxProcedureNameLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxRowSize
public int getMaxRowSize() throws SQLException- 指定者:
getMaxRowSize在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxSchemaNameLength
public int getMaxSchemaNameLength() throws SQLException- 指定者:
getMaxSchemaNameLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxStatementLength
public int getMaxStatementLength() throws SQLException- 指定者:
getMaxStatementLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxStatements
public int getMaxStatements() throws SQLException- 指定者:
getMaxStatements在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxTableNameLength
public int getMaxTableNameLength() throws SQLException- 指定者:
getMaxTableNameLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxTablesInSelect
public int getMaxTablesInSelect() throws SQLException- 指定者:
getMaxTablesInSelect在接口中DatabaseMetaData- 抛出:
SQLException
-
getMaxUserNameLength
public int getMaxUserNameLength() throws SQLException- 指定者:
getMaxUserNameLength在接口中DatabaseMetaData- 抛出:
SQLException
-
getNumericFunctions
public String getNumericFunctions() throws SQLException
- 指定者:
getNumericFunctions在接口中DatabaseMetaData- 抛出:
SQLException
-
getPrimaryKeysFields
protected Field[] getPrimaryKeysFields()
-
getPrimaryKeys
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException
- 指定者:
getPrimaryKeys在接口中DatabaseMetaData- 抛出:
SQLException
-
getProcedureColumns
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
- 指定者:
getProcedureColumns在接口中DatabaseMetaData- 抛出:
SQLException
-
createProcedureColumnsFields
protected Field[] createProcedureColumnsFields()
-
getProcedureOrFunctionColumns
protected ResultSet getProcedureOrFunctionColumns(Field[] fields, String catalog, String schemaPattern, String procedureOrFunctionNamePattern, String columnNamePattern, boolean returnProcedures, boolean returnFunctions) throws SQLException
- 抛出:
SQLException
-
getProcedures
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException
- 指定者:
getProcedures在接口中DatabaseMetaData- 抛出:
SQLException
-
createFieldMetadataForGetProcedures
protected Field[] createFieldMetadataForGetProcedures()
-
getProceduresAndOrFunctions
protected ResultSet getProceduresAndOrFunctions(Field[] fields, String catalog, String schemaPattern, String procedureNamePattern, boolean returnProcedures, boolean returnFunctions) throws SQLException
- 参数:
fields- fieldscatalog- catalogschemaPattern- schema patternprocedureNamePattern- procedure name patternreturnProcedures- true if procedures should be included into resultreturnFunctions- true if functions should be included into result- 返回:
- result set
- 抛出:
SQLException- if a database access error occurs
-
getProcedureTerm
public String getProcedureTerm() throws SQLException
- 指定者:
getProcedureTerm在接口中DatabaseMetaData- 抛出:
SQLException
-
getResultSetHoldability
public int getResultSetHoldability() throws SQLException- 指定者:
getResultSetHoldability在接口中DatabaseMetaData- 抛出:
SQLException
-
getSchemas
public ResultSet getSchemas() throws SQLException
- 指定者:
getSchemas在接口中DatabaseMetaData- 抛出:
SQLException
-
getSchemas
public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException
- 指定者:
getSchemas在接口中DatabaseMetaData- 抛出:
SQLException
-
getSchemaTerm
public String getSchemaTerm() throws SQLException
- 指定者:
getSchemaTerm在接口中DatabaseMetaData- 抛出:
SQLException
-
getSearchStringEscape
public String getSearchStringEscape() throws SQLException
- 指定者:
getSearchStringEscape在接口中DatabaseMetaData- 抛出:
SQLException
-
getSQLKeywords
public String getSQLKeywords() throws SQLException
Get a comma separated list of all a database's SQL keywords that are NOT also SQL92/SQL2003 keywords.- 指定者:
getSQLKeywords在接口中DatabaseMetaData- 返回:
- the list
- 抛出:
SQLException- if a database access error occurs
-
getSQLStateType
public int getSQLStateType() throws SQLException- 指定者:
getSQLStateType在接口中DatabaseMetaData- 抛出:
SQLException
-
getStringFunctions
public String getStringFunctions() throws SQLException
- 指定者:
getStringFunctions在接口中DatabaseMetaData- 抛出:
SQLException
-
getSuperTables
public ResultSet getSuperTables(String arg0, String arg1, String arg2) throws SQLException
- 指定者:
getSuperTables在接口中DatabaseMetaData- 抛出:
SQLException
-
getSuperTypes
public ResultSet getSuperTypes(String arg0, String arg1, String arg2) throws SQLException
- 指定者:
getSuperTypes在接口中DatabaseMetaData- 抛出:
SQLException
-
getSystemFunctions
public String getSystemFunctions() throws SQLException
- 指定者:
getSystemFunctions在接口中DatabaseMetaData- 抛出:
SQLException
-
getTablePrivileges
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
- 指定者:
getTablePrivileges在接口中DatabaseMetaData- 抛出:
SQLException
-
getTables
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
- 指定者:
getTables在接口中DatabaseMetaData- 抛出:
SQLException
-
createTablesFields
protected ColumnDefinition createTablesFields()
-
getTableTypes
public ResultSet getTableTypes() throws SQLException
- 指定者:
getTableTypes在接口中DatabaseMetaData- 抛出:
SQLException
-
getTimeDateFunctions
public String getTimeDateFunctions() throws SQLException
- 指定者:
getTimeDateFunctions在接口中DatabaseMetaData- 抛出:
SQLException
-
getTypeInfo
public ResultSet getTypeInfo() throws SQLException
- 指定者:
getTypeInfo在接口中DatabaseMetaData- 抛出:
SQLException
-
getUDTs
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException
- 指定者:
getUDTs在接口中DatabaseMetaData- 抛出:
SQLException
-
getURL
public String getURL() throws SQLException
- 指定者:
getURL在接口中DatabaseMetaData- 抛出:
SQLException
-
getUserName
public String getUserName() throws SQLException
- 指定者:
getUserName在接口中DatabaseMetaData- 抛出:
SQLException
-
getVersionColumnsFields
protected Field[] getVersionColumnsFields()
-
getVersionColumns
public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException
- 指定者:
getVersionColumns在接口中DatabaseMetaData- 抛出:
SQLException
-
insertsAreDetected
public boolean insertsAreDetected(int type) throws SQLException- 指定者:
insertsAreDetected在接口中DatabaseMetaData- 抛出:
SQLException
-
isCatalogAtStart
public boolean isCatalogAtStart() throws SQLException- 指定者:
isCatalogAtStart在接口中DatabaseMetaData- 抛出:
SQLException
-
isReadOnly
public boolean isReadOnly() throws SQLException- 指定者:
isReadOnly在接口中DatabaseMetaData- 抛出:
SQLException
-
locatorsUpdateCopy
public boolean locatorsUpdateCopy() throws SQLException- 指定者:
locatorsUpdateCopy在接口中DatabaseMetaData- 抛出:
SQLException
-
nullPlusNonNullIsNull
public boolean nullPlusNonNullIsNull() throws SQLException- 指定者:
nullPlusNonNullIsNull在接口中DatabaseMetaData- 抛出:
SQLException
-
nullsAreSortedAtEnd
public boolean nullsAreSortedAtEnd() throws SQLException- 指定者:
nullsAreSortedAtEnd在接口中DatabaseMetaData- 抛出:
SQLException
-
nullsAreSortedAtStart
public boolean nullsAreSortedAtStart() throws SQLException- 指定者:
nullsAreSortedAtStart在接口中DatabaseMetaData- 抛出:
SQLException
-
nullsAreSortedHigh
public boolean nullsAreSortedHigh() throws SQLException- 指定者:
nullsAreSortedHigh在接口中DatabaseMetaData- 抛出:
SQLException
-
nullsAreSortedLow
public boolean nullsAreSortedLow() throws SQLException- 指定者:
nullsAreSortedLow在接口中DatabaseMetaData- 抛出:
SQLException
-
othersDeletesAreVisible
public boolean othersDeletesAreVisible(int type) throws SQLException- 指定者:
othersDeletesAreVisible在接口中DatabaseMetaData- 抛出:
SQLException
-
othersInsertsAreVisible
public boolean othersInsertsAreVisible(int type) throws SQLException- 指定者:
othersInsertsAreVisible在接口中DatabaseMetaData- 抛出:
SQLException
-
othersUpdatesAreVisible
public boolean othersUpdatesAreVisible(int type) throws SQLException- 指定者:
othersUpdatesAreVisible在接口中DatabaseMetaData- 抛出:
SQLException
-
ownDeletesAreVisible
public boolean ownDeletesAreVisible(int type) throws SQLException- 指定者:
ownDeletesAreVisible在接口中DatabaseMetaData- 抛出:
SQLException
-
ownInsertsAreVisible
public boolean ownInsertsAreVisible(int type) throws SQLException- 指定者:
ownInsertsAreVisible在接口中DatabaseMetaData- 抛出:
SQLException
-
ownUpdatesAreVisible
public boolean ownUpdatesAreVisible(int type) throws SQLException- 指定者:
ownUpdatesAreVisible在接口中DatabaseMetaData- 抛出:
SQLException
-
parseTableStatusIntoLocalAndReferencedColumns
protected com.mysql.cj.jdbc.DatabaseMetaData.LocalAndReferencedColumns parseTableStatusIntoLocalAndReferencedColumns(String keysComment) throws SQLException
- 抛出:
SQLException
-
s2b
protected byte[] s2b(String s) throws SQLException
Converts the given string to bytes, using the connection's character encoding, or if not available, the JVM default encoding.- 参数:
s- string- 返回:
- bytes
- 抛出:
SQLException- if a conversion error occurs
-
storesLowerCaseIdentifiers
public boolean storesLowerCaseIdentifiers() throws SQLException- 指定者:
storesLowerCaseIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
storesLowerCaseQuotedIdentifiers
public boolean storesLowerCaseQuotedIdentifiers() throws SQLException- 指定者:
storesLowerCaseQuotedIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
storesMixedCaseIdentifiers
public boolean storesMixedCaseIdentifiers() throws SQLException- 指定者:
storesMixedCaseIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
storesMixedCaseQuotedIdentifiers
public boolean storesMixedCaseQuotedIdentifiers() throws SQLException- 指定者:
storesMixedCaseQuotedIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
storesUpperCaseIdentifiers
public boolean storesUpperCaseIdentifiers() throws SQLException- 指定者:
storesUpperCaseIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
storesUpperCaseQuotedIdentifiers
public boolean storesUpperCaseQuotedIdentifiers() throws SQLException- 指定者:
storesUpperCaseQuotedIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsAlterTableWithAddColumn
public boolean supportsAlterTableWithAddColumn() throws SQLException- 指定者:
supportsAlterTableWithAddColumn在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsAlterTableWithDropColumn
public boolean supportsAlterTableWithDropColumn() throws SQLException- 指定者:
supportsAlterTableWithDropColumn在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsANSI92EntryLevelSQL
public boolean supportsANSI92EntryLevelSQL() throws SQLException- 指定者:
supportsANSI92EntryLevelSQL在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsANSI92FullSQL
public boolean supportsANSI92FullSQL() throws SQLException- 指定者:
supportsANSI92FullSQL在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsANSI92IntermediateSQL
public boolean supportsANSI92IntermediateSQL() throws SQLException- 指定者:
supportsANSI92IntermediateSQL在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsBatchUpdates
public boolean supportsBatchUpdates() throws SQLException- 指定者:
supportsBatchUpdates在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsCatalogsInDataManipulation
public boolean supportsCatalogsInDataManipulation() throws SQLException- 指定者:
supportsCatalogsInDataManipulation在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsCatalogsInIndexDefinitions
public boolean supportsCatalogsInIndexDefinitions() throws SQLException- 指定者:
supportsCatalogsInIndexDefinitions在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsCatalogsInPrivilegeDefinitions
public boolean supportsCatalogsInPrivilegeDefinitions() throws SQLException
-
supportsCatalogsInProcedureCalls
public boolean supportsCatalogsInProcedureCalls() throws SQLException- 指定者:
supportsCatalogsInProcedureCalls在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsCatalogsInTableDefinitions
public boolean supportsCatalogsInTableDefinitions() throws SQLException- 指定者:
supportsCatalogsInTableDefinitions在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsColumnAliasing
public boolean supportsColumnAliasing() throws SQLException- 指定者:
supportsColumnAliasing在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsConvert
public boolean supportsConvert() throws SQLException- 指定者:
supportsConvert在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsConvert
public boolean supportsConvert(int fromType, int toType) throws SQLException- 指定者:
supportsConvert在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsCoreSQLGrammar
public boolean supportsCoreSQLGrammar() throws SQLException- 指定者:
supportsCoreSQLGrammar在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsCorrelatedSubqueries
public boolean supportsCorrelatedSubqueries() throws SQLException- 指定者:
supportsCorrelatedSubqueries在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsDataDefinitionAndDataManipulationTransactions
public boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLException
-
supportsDataManipulationTransactionsOnly
public boolean supportsDataManipulationTransactionsOnly() throws SQLException
-
supportsDifferentTableCorrelationNames
public boolean supportsDifferentTableCorrelationNames() throws SQLException
-
supportsExpressionsInOrderBy
public boolean supportsExpressionsInOrderBy() throws SQLException- 指定者:
supportsExpressionsInOrderBy在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsExtendedSQLGrammar
public boolean supportsExtendedSQLGrammar() throws SQLException- 指定者:
supportsExtendedSQLGrammar在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsFullOuterJoins
public boolean supportsFullOuterJoins() throws SQLException- 指定者:
supportsFullOuterJoins在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()
- 指定者:
supportsGetGeneratedKeys在接口中DatabaseMetaData
-
supportsGroupBy
public boolean supportsGroupBy() throws SQLException- 指定者:
supportsGroupBy在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsGroupByBeyondSelect
public boolean supportsGroupByBeyondSelect() throws SQLException- 指定者:
supportsGroupByBeyondSelect在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsGroupByUnrelated
public boolean supportsGroupByUnrelated() throws SQLException- 指定者:
supportsGroupByUnrelated在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsIntegrityEnhancementFacility
public boolean supportsIntegrityEnhancementFacility() throws SQLException- 指定者:
supportsIntegrityEnhancementFacility在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsLikeEscapeClause
public boolean supportsLikeEscapeClause() throws SQLException- 指定者:
supportsLikeEscapeClause在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsLimitedOuterJoins
public boolean supportsLimitedOuterJoins() throws SQLException- 指定者:
supportsLimitedOuterJoins在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsMinimumSQLGrammar
public boolean supportsMinimumSQLGrammar() throws SQLException- 指定者:
supportsMinimumSQLGrammar在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsMixedCaseIdentifiers
public boolean supportsMixedCaseIdentifiers() throws SQLException- 指定者:
supportsMixedCaseIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsMixedCaseQuotedIdentifiers
public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException- 指定者:
supportsMixedCaseQuotedIdentifiers在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsMultipleOpenResults
public boolean supportsMultipleOpenResults() throws SQLException- 指定者:
supportsMultipleOpenResults在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsMultipleResultSets
public boolean supportsMultipleResultSets() throws SQLException- 指定者:
supportsMultipleResultSets在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsMultipleTransactions
public boolean supportsMultipleTransactions() throws SQLException- 指定者:
supportsMultipleTransactions在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsNamedParameters
public boolean supportsNamedParameters() throws SQLException- 指定者:
supportsNamedParameters在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsNonNullableColumns
public boolean supportsNonNullableColumns() throws SQLException- 指定者:
supportsNonNullableColumns在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsOpenCursorsAcrossCommit
public boolean supportsOpenCursorsAcrossCommit() throws SQLException- 指定者:
supportsOpenCursorsAcrossCommit在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsOpenCursorsAcrossRollback
public boolean supportsOpenCursorsAcrossRollback() throws SQLException- 指定者:
supportsOpenCursorsAcrossRollback在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsOpenStatementsAcrossCommit
public boolean supportsOpenStatementsAcrossCommit() throws SQLException- 指定者:
supportsOpenStatementsAcrossCommit在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsOpenStatementsAcrossRollback
public boolean supportsOpenStatementsAcrossRollback() throws SQLException- 指定者:
supportsOpenStatementsAcrossRollback在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsOrderByUnrelated
public boolean supportsOrderByUnrelated() throws SQLException- 指定者:
supportsOrderByUnrelated在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsOuterJoins
public boolean supportsOuterJoins() throws SQLException- 指定者:
supportsOuterJoins在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsPositionedDelete
public boolean supportsPositionedDelete() throws SQLException- 指定者:
supportsPositionedDelete在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsPositionedUpdate
public boolean supportsPositionedUpdate() throws SQLException- 指定者:
supportsPositionedUpdate在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsResultSetConcurrency
public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException- 指定者:
supportsResultSetConcurrency在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsResultSetHoldability
public boolean supportsResultSetHoldability(int holdability) throws SQLException- 指定者:
supportsResultSetHoldability在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsResultSetType
public boolean supportsResultSetType(int type) throws SQLException- 指定者:
supportsResultSetType在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSavepoints
public boolean supportsSavepoints() throws SQLException- 指定者:
supportsSavepoints在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSchemasInDataManipulation
public boolean supportsSchemasInDataManipulation() throws SQLException- 指定者:
supportsSchemasInDataManipulation在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSchemasInIndexDefinitions
public boolean supportsSchemasInIndexDefinitions() throws SQLException- 指定者:
supportsSchemasInIndexDefinitions在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSchemasInPrivilegeDefinitions
public boolean supportsSchemasInPrivilegeDefinitions() throws SQLException
-
supportsSchemasInProcedureCalls
public boolean supportsSchemasInProcedureCalls() throws SQLException- 指定者:
supportsSchemasInProcedureCalls在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSchemasInTableDefinitions
public boolean supportsSchemasInTableDefinitions() throws SQLException- 指定者:
supportsSchemasInTableDefinitions在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSelectForUpdate
public boolean supportsSelectForUpdate() throws SQLException- 指定者:
supportsSelectForUpdate在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsStatementPooling
public boolean supportsStatementPooling() throws SQLException- 指定者:
supportsStatementPooling在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsStoredProcedures
public boolean supportsStoredProcedures() throws SQLException- 指定者:
supportsStoredProcedures在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSubqueriesInComparisons
public boolean supportsSubqueriesInComparisons() throws SQLException- 指定者:
supportsSubqueriesInComparisons在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSubqueriesInExists
public boolean supportsSubqueriesInExists() throws SQLException- 指定者:
supportsSubqueriesInExists在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSubqueriesInIns
public boolean supportsSubqueriesInIns() throws SQLException- 指定者:
supportsSubqueriesInIns在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsSubqueriesInQuantifieds
public boolean supportsSubqueriesInQuantifieds() throws SQLException- 指定者:
supportsSubqueriesInQuantifieds在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsTableCorrelationNames
public boolean supportsTableCorrelationNames() throws SQLException- 指定者:
supportsTableCorrelationNames在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsTransactionIsolationLevel
public boolean supportsTransactionIsolationLevel(int level) throws SQLException- 指定者:
supportsTransactionIsolationLevel在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsTransactions
public boolean supportsTransactions() throws SQLException- 指定者:
supportsTransactions在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsUnion
public boolean supportsUnion() throws SQLException- 指定者:
supportsUnion在接口中DatabaseMetaData- 抛出:
SQLException
-
supportsUnionAll
public boolean supportsUnionAll() throws SQLException- 指定者:
supportsUnionAll在接口中DatabaseMetaData- 抛出:
SQLException
-
updatesAreDetected
public boolean updatesAreDetected(int type) throws SQLException- 指定者:
updatesAreDetected在接口中DatabaseMetaData- 抛出:
SQLException
-
usesLocalFilePerTable
public boolean usesLocalFilePerTable() throws SQLException- 指定者:
usesLocalFilePerTable在接口中DatabaseMetaData- 抛出:
SQLException
-
usesLocalFiles
public boolean usesLocalFiles() throws SQLException- 指定者:
usesLocalFiles在接口中DatabaseMetaData- 抛出:
SQLException
-
getClientInfoProperties
public ResultSet getClientInfoProperties() throws SQLException
- 指定者:
getClientInfoProperties在接口中DatabaseMetaData- 抛出:
SQLException
-
getFunctionColumns
public ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException
- 指定者:
getFunctionColumns在接口中DatabaseMetaData- 抛出:
SQLException
-
createFunctionColumnsFields
protected Field[] createFunctionColumnsFields()
-
getFunctionsFields
protected Field[] getFunctionsFields()
-
getFunctions
public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException
- 指定者:
getFunctions在接口中DatabaseMetaData- 抛出:
SQLException
-
providesQueryObjectGenerator
public boolean providesQueryObjectGenerator() throws SQLException- 抛出:
SQLException
-
supportsStoredFunctionsUsingCallSyntax
public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException
-
prepareMetaDataSafeStatement
protected PreparedStatement prepareMetaDataSafeStatement(String sql) throws SQLException
Get a prepared statement to query information_schema tables.- 参数:
sql- query- 返回:
- PreparedStatement
- 抛出:
SQLException- if a database access error occurs
-
getPseudoColumns
public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
- 指定者:
getPseudoColumns在接口中DatabaseMetaData- 抛出:
SQLException
-
generatedKeyAlwaysReturned
public boolean generatedKeyAlwaysReturned() throws SQLException- 指定者:
generatedKeyAlwaysReturned在接口中DatabaseMetaData- 抛出:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- 指定者:
unwrap在接口中Wrapper- 抛出:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- 指定者:
isWrapperFor在接口中Wrapper- 抛出:
SQLException
-
getRowIdLifetime
public RowIdLifetime getRowIdLifetime() throws SQLException
- 指定者:
getRowIdLifetime在接口中DatabaseMetaData- 抛出:
SQLException
-
autoCommitFailureClosesAllResultSets
public boolean autoCommitFailureClosesAllResultSets() throws SQLException- 指定者:
autoCommitFailureClosesAllResultSets在接口中DatabaseMetaData- 抛出:
SQLException
-
getMetadataEncoding
public String getMetadataEncoding()
-
setMetadataEncoding
public void setMetadataEncoding(String metadataEncoding)
-
getMetadataCollationIndex
public int getMetadataCollationIndex()
-
setMetadataCollationIndex
public void setMetadataCollationIndex(int metadataCollationIndex)
-
-