Package com.mysql.cj.jdbc
Class DatabaseMetaData
java.lang.Object
com.mysql.cj.jdbc.DatabaseMetaData
- All Implemented Interfaces:
java.sql.DatabaseMetaData,java.sql.Wrapper
- Direct Known Subclasses:
DatabaseMetaDataUsingInfoSchema
public class DatabaseMetaData
extends java.lang.Object
implements java.sql.DatabaseMetaData
JDBC Interface to Mysql functions
This 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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDatabaseMetaData.ComparableWrapper<K extends java.lang.Object & java.lang.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 -
Field Summary
Fields Modifier and Type Field Description protected JdbcConnectionconnThe connection to the databaseprotected java.lang.StringdatabaseThe 'current' database name being usedprotected RuntimeProperty<PropertyDefinitions.DatabaseTerm>databaseTermprotected static intMAX_IDENTIFIER_LENGTHprotected static intmaxBufferSizeDefault max buffer size.protected RuntimeProperty<java.lang.Boolean>nullDatabaseMeansCurrentprotected booleanpedanticprotected java.lang.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_BYTESFields inherited from interface 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 -
Constructor Summary
Constructors Modifier Constructor Description protectedDatabaseMetaData(JdbcConnection connToSet, java.lang.String databaseToSet, ResultSetFactory resultSetFactory)Creates a new DatabaseMetaData object. -
Method Summary
Modifier and Type Method Description booleanallProceduresAreCallable()booleanallTablesAreSelectable()booleanautoCommitFailureClosesAllResultSets()protected voidconvertToJdbcFunctionList(java.sql.ResultSet proceduresRs, java.util.List<DatabaseMetaData.ComparableWrapper<java.lang.String,Row>> procedureRows, Field[] fields)protected voidconvertToJdbcProcedureList(boolean fromSelect, java.sql.ResultSet proceduresRs, java.util.List<DatabaseMetaData.ComparableWrapper<java.lang.String,Row>> procedureRows)protected Field[]createColumnsFields()protected Field[]createFieldMetadataForGetProcedures()protected Field[]createFkMetadataFields()protected Field[]createFunctionColumnsFields()protected Field[]createIndexInfoFields()protected Field[]createProcedureColumnsFields()protected ColumnDefinitioncreateTablesFields()booleandataDefinitionCausesTransactionCommit()booleandataDefinitionIgnoredInTransactions()booleandeletesAreDetected(int type)booleandoesMaxRowSizeIncludeBlobs()java.util.List<Row>extractForeignKeyForTable(java.util.ArrayList<Row> rows, java.sql.ResultSet rs, java.lang.String dbName)Extracts foreign key info for one table.java.sql.ResultSetextractForeignKeyFromCreateTable(java.lang.String dbName, java.lang.String tableName)Creates a result set similar enough to 'SHOW TABLE STATUS' to allow the same code to work on extracting the foreign key databooleangeneratedKeyAlwaysReturned()java.sql.ResultSetgetAttributes(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3)java.sql.ResultSetgetBestRowIdentifier(java.lang.String catalog, java.lang.String schema, java.lang.String table, int scope, boolean nullable)java.sql.ResultSetgetCatalogs()java.lang.StringgetCatalogSeparator()java.lang.StringgetCatalogTerm()java.sql.ResultSetgetClientInfoProperties()java.sql.ResultSetgetColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.String columnNamePattern)protected Field[]getColumnPrivilegesFields()java.sql.ResultSetgetColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)protected intgetColumnType(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.java.sql.ConnectiongetConnection()java.sql.ResultSetgetCrossReference(java.lang.String primaryCatalog, java.lang.String primarySchema, java.lang.String primaryTable, java.lang.String foreignCatalog, java.lang.String foreignSchema, java.lang.String foreignTable)protected java.lang.StringgetDatabase(java.lang.String catalog, java.lang.String schema)protected DatabaseMetaData.IteratorWithCleanup<java.lang.String>getDatabaseIterator(java.lang.String dbSpec)intgetDatabaseMajorVersion()intgetDatabaseMinorVersion()java.lang.StringgetDatabaseProductName()java.lang.StringgetDatabaseProductVersion()protected java.util.List<java.lang.String>getDatabases()Retrieves the database names available on this server.protected java.util.List<java.lang.String>getDatabases(java.lang.String dbPattern)Retrieves the database names matching the dbPattern available on this server.intgetDefaultTransactionIsolation()intgetDriverMajorVersion()intgetDriverMinorVersion()java.lang.StringgetDriverName()java.lang.StringgetDriverVersion()protected ExceptionInterceptorgetExceptionInterceptor()java.sql.ResultSetgetExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)java.lang.StringgetExtraNameCharacters()protected int[]getForeignKeyActions(java.lang.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.java.sql.ResultSetgetFunctionColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern, java.lang.String columnNamePattern)java.sql.ResultSetgetFunctions(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern)protected Field[]getFunctionsFields()java.lang.StringgetIdentifierQuoteString()java.sql.ResultSetgetImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)java.sql.ResultSetgetIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate)protected static DatabaseMetaDatagetInstance(JdbcConnection connToSet, java.lang.String databaseToSet, boolean checkForInfoSchema, ResultSetFactory resultSetFactory)intgetJDBCMajorVersion()intgetJDBCMinorVersion()intgetMaxBinaryLiteralLength()intgetMaxCatalogNameLength()intgetMaxCharLiteralLength()intgetMaxColumnNameLength()intgetMaxColumnsInGroupBy()intgetMaxColumnsInIndex()intgetMaxColumnsInOrderBy()intgetMaxColumnsInSelect()intgetMaxColumnsInTable()intgetMaxConnections()intgetMaxCursorNameLength()intgetMaxIndexLength()intgetMaxProcedureNameLength()intgetMaxRowSize()intgetMaxSchemaNameLength()intgetMaxStatementLength()intgetMaxStatements()intgetMaxTableNameLength()intgetMaxTablesInSelect()intgetMaxUserNameLength()intgetMetadataCollationIndex()java.lang.StringgetMetadataEncoding()java.lang.StringgetNumericFunctions()java.sql.ResultSetgetPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)protected Field[]getPrimaryKeysFields()java.sql.ResultSetgetProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.String columnNamePattern)protected java.sql.ResultSetgetProcedureOrFunctionColumns(Field[] fields, java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureOrFunctionNamePattern, java.lang.String columnNamePattern, boolean returnProcedures, boolean returnFunctions)protected static intgetProcedureOrFunctionColumnType(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.java.sql.ResultSetgetProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern)protected java.sql.ResultSetgetProceduresAndOrFunctions(Field[] fields, java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, boolean returnProcedures, boolean returnFunctions)java.lang.StringgetProcedureTerm()java.sql.ResultSetgetPseudoColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)intgetResultSetHoldability()java.sql.RowIdLifetimegetRowIdLifetime()protected DatabaseMetaData.IteratorWithCleanup<java.lang.String>getSchemaPatternIterator(java.lang.String schemaPattern)java.sql.ResultSetgetSchemas()java.sql.ResultSetgetSchemas(java.lang.String catalog, java.lang.String schemaPattern)java.lang.StringgetSchemaTerm()java.lang.StringgetSearchStringEscape()java.lang.StringgetSQLKeywords()Get a comma separated list of all a database's SQL keywords that are NOT also SQL92/SQL2003 keywords.intgetSQLStateType()java.lang.StringgetStringFunctions()java.sql.ResultSetgetSuperTables(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)java.sql.ResultSetgetSuperTypes(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)java.lang.StringgetSystemFunctions()protected java.lang.StringgetTableNameWithCase(java.lang.String table)java.sql.ResultSetgetTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)java.sql.ResultSetgetTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types)java.sql.ResultSetgetTableTypes()java.lang.StringgetTimeDateFunctions()java.sql.ResultSetgetTypeInfo()java.sql.ResultSetgetUDTs(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, int[] types)java.lang.StringgetURL()java.lang.StringgetUserName()java.sql.ResultSetgetVersionColumns(java.lang.String catalog, java.lang.String schema, java.lang.String table)protected Field[]getVersionColumnsFields()booleaninsertsAreDetected(int type)booleanisCatalogAtStart()booleanisReadOnly()booleanisWrapperFor(java.lang.Class<?> iface)booleanlocatorsUpdateCopy()booleannullPlusNonNullIsNull()booleannullsAreSortedAtEnd()booleannullsAreSortedAtStart()booleannullsAreSortedHigh()booleannullsAreSortedLow()booleanothersDeletesAreVisible(int type)booleanothersInsertsAreVisible(int type)booleanothersUpdatesAreVisible(int type)booleanownDeletesAreVisible(int type)booleanownInsertsAreVisible(int type)booleanownUpdatesAreVisible(int type)protected com.mysql.cj.jdbc.DatabaseMetaData.LocalAndReferencedColumnsparseTableStatusIntoLocalAndReferencedColumns(java.lang.String keysComment)protected java.sql.PreparedStatementprepareMetaDataSafeStatement(java.lang.String sql)Get a prepared statement to query information_schema tables.booleanprovidesQueryObjectGenerator()protected byte[]s2b(java.lang.String s)Converts the given string to bytes, using the connection's character encoding, or if not available, the JVM default encoding.voidsetMetadataCollationIndex(int metadataCollationIndex)voidsetMetadataEncoding(java.lang.String metadataEncoding)booleanstoresLowerCaseIdentifiers()booleanstoresLowerCaseQuotedIdentifiers()booleanstoresMixedCaseIdentifiers()booleanstoresMixedCaseQuotedIdentifiers()booleanstoresUpperCaseIdentifiers()booleanstoresUpperCaseQuotedIdentifiers()booleansupportsAlterTableWithAddColumn()booleansupportsAlterTableWithDropColumn()booleansupportsANSI92EntryLevelSQL()booleansupportsANSI92FullSQL()booleansupportsANSI92IntermediateSQL()booleansupportsBatchUpdates()booleansupportsCatalogsInDataManipulation()booleansupportsCatalogsInIndexDefinitions()booleansupportsCatalogsInPrivilegeDefinitions()booleansupportsCatalogsInProcedureCalls()booleansupportsCatalogsInTableDefinitions()booleansupportsColumnAliasing()booleansupportsConvert()booleansupportsConvert(int fromType, int toType)booleansupportsCoreSQLGrammar()booleansupportsCorrelatedSubqueries()booleansupportsDataDefinitionAndDataManipulationTransactions()booleansupportsDataManipulationTransactionsOnly()booleansupportsDifferentTableCorrelationNames()booleansupportsExpressionsInOrderBy()booleansupportsExtendedSQLGrammar()booleansupportsFullOuterJoins()booleansupportsGetGeneratedKeys()booleansupportsGroupBy()booleansupportsGroupByBeyondSelect()booleansupportsGroupByUnrelated()booleansupportsIntegrityEnhancementFacility()booleansupportsLikeEscapeClause()booleansupportsLimitedOuterJoins()booleansupportsMinimumSQLGrammar()booleansupportsMixedCaseIdentifiers()booleansupportsMixedCaseQuotedIdentifiers()booleansupportsMultipleOpenResults()booleansupportsMultipleResultSets()booleansupportsMultipleTransactions()booleansupportsNamedParameters()booleansupportsNonNullableColumns()booleansupportsOpenCursorsAcrossCommit()booleansupportsOpenCursorsAcrossRollback()booleansupportsOpenStatementsAcrossCommit()booleansupportsOpenStatementsAcrossRollback()booleansupportsOrderByUnrelated()booleansupportsOuterJoins()booleansupportsPositionedDelete()booleansupportsPositionedUpdate()booleansupportsResultSetConcurrency(int type, int concurrency)booleansupportsResultSetHoldability(int holdability)booleansupportsResultSetType(int type)booleansupportsSavepoints()booleansupportsSchemasInDataManipulation()booleansupportsSchemasInIndexDefinitions()booleansupportsSchemasInPrivilegeDefinitions()booleansupportsSchemasInProcedureCalls()booleansupportsSchemasInTableDefinitions()booleansupportsSelectForUpdate()booleansupportsStatementPooling()booleansupportsStoredFunctionsUsingCallSyntax()booleansupportsStoredProcedures()booleansupportsSubqueriesInComparisons()booleansupportsSubqueriesInExists()booleansupportsSubqueriesInIns()booleansupportsSubqueriesInQuantifieds()booleansupportsTableCorrelationNames()booleansupportsTransactionIsolationLevel(int level)booleansupportsTransactions()booleansupportsUnion()booleansupportsUnionAll()<T> Tunwrap(java.lang.Class<T> iface)booleanupdatesAreDetected(int type)booleanusesLocalFilePerTable()booleanusesLocalFiles()
-
Field Details
-
maxBufferSize
protected static int maxBufferSizeDefault max buffer size. SeePropertyKey.maxAllowedPacket. -
MAX_IDENTIFIER_LENGTH
protected static final int MAX_IDENTIFIER_LENGTH- See Also:
- Constant Field Values
-
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
The connection to the database -
session
-
database
protected java.lang.String databaseThe 'current' database name being used -
quotedId
protected final java.lang.String quotedIdWhat character to use when quoting identifiers -
pedantic
protected boolean pedantic -
tinyInt1isBit
protected boolean tinyInt1isBit -
transformedBitIsBoolean
protected boolean transformedBitIsBoolean -
useHostsInPrivileges
protected boolean useHostsInPrivileges -
databaseTerm
-
nullDatabaseMeansCurrent
-
resultSetFactory
-
-
Constructor Details
-
DatabaseMetaData
protected DatabaseMetaData(JdbcConnection connToSet, java.lang.String databaseToSet, ResultSetFactory resultSetFactory)Creates a new DatabaseMetaData object.- Parameters:
connToSet- Connection objectdatabaseToSet- database nameresultSetFactory-ResultSetFactory
-
-
Method Details
-
getInstance
protected static DatabaseMetaData getInstance(JdbcConnection connToSet, java.lang.String databaseToSet, boolean checkForInfoSchema, ResultSetFactory resultSetFactory) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
allProceduresAreCallable
public boolean allProceduresAreCallable() throws java.sql.SQLException- Specified by:
allProceduresAreCallablein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
allTablesAreSelectable
public boolean allTablesAreSelectable() throws java.sql.SQLException- Specified by:
allTablesAreSelectablein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
convertToJdbcFunctionList
protected void convertToJdbcFunctionList(java.sql.ResultSet proceduresRs, java.util.List<DatabaseMetaData.ComparableWrapper<java.lang.String,Row>> procedureRows, Field[] fields) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
convertToJdbcProcedureList
protected void convertToJdbcProcedureList(boolean fromSelect, java.sql.ResultSet proceduresRs, java.util.List<DatabaseMetaData.ComparableWrapper<java.lang.String,Row>> procedureRows) throws java.sql.SQLException- Throws:
java.sql.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.- Parameters:
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.- Returns:
- 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.- Parameters:
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.- Returns:
- The corresponding COLUMN_TYPE as in java.sql.getProcedureColumns API.
-
getExceptionInterceptor
-
dataDefinitionCausesTransactionCommit
public boolean dataDefinitionCausesTransactionCommit() throws java.sql.SQLException- Specified by:
dataDefinitionCausesTransactionCommitin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
dataDefinitionIgnoredInTransactions
public boolean dataDefinitionIgnoredInTransactions() throws java.sql.SQLException- Specified by:
dataDefinitionIgnoredInTransactionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
deletesAreDetected
public boolean deletesAreDetected(int type) throws java.sql.SQLException- Specified by:
deletesAreDetectedin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
doesMaxRowSizeIncludeBlobs
public boolean doesMaxRowSizeIncludeBlobs() throws java.sql.SQLException- Specified by:
doesMaxRowSizeIncludeBlobsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
extractForeignKeyForTable
public java.util.List<Row> extractForeignKeyForTable(java.util.ArrayList<Row> rows, java.sql.ResultSet rs, java.lang.String dbName) throws java.sql.SQLExceptionExtracts foreign key info for one table.- Parameters:
rows- the list of rows to add tors- the result set from 'SHOW CREATE TABLE'dbName- the database name- Returns:
- the list of rows with new rows added
- Throws:
java.sql.SQLException- if a database access error occurs
-
extractForeignKeyFromCreateTable
public java.sql.ResultSet extractForeignKeyFromCreateTable(java.lang.String dbName, java.lang.String tableName) throws java.sql.SQLExceptionCreates a result set similar enough to 'SHOW TABLE STATUS' to allow the same code to work on extracting the foreign key data- Parameters:
dbName- the database name to extract foreign key info fortableName- the table to extract foreign key info for- Returns:
- A result set that has the structure of 'show table status'
- Throws:
java.sql.SQLException- if a database access error occurs.
-
getAttributes
public java.sql.ResultSet getAttributes(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3) throws java.sql.SQLException- Specified by:
getAttributesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getBestRowIdentifier
public java.sql.ResultSet getBestRowIdentifier(java.lang.String catalog, java.lang.String schema, java.lang.String table, int scope, boolean nullable) throws java.sql.SQLException- Specified by:
getBestRowIdentifierin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDatabaseIterator
protected DatabaseMetaData.IteratorWithCleanup<java.lang.String> getDatabaseIterator(java.lang.String dbSpec) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getSchemaPatternIterator
protected DatabaseMetaData.IteratorWithCleanup<java.lang.String> getSchemaPatternIterator(java.lang.String schemaPattern) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDatabases
protected java.util.List<java.lang.String> getDatabases() throws java.sql.SQLExceptionRetrieves the database names available on this server. The results are ordered by database name.- Returns:
- list of database names
- Throws:
java.sql.SQLException- if an error occurs
-
getDatabases
protected java.util.List<java.lang.String> getDatabases(java.lang.String dbPattern) throws java.sql.SQLExceptionRetrieves the database names matching the dbPattern available on this server. The results are ordered by database name.- Parameters:
dbPattern- database name pattern- Returns:
- list of database names
- Throws:
java.sql.SQLException- if an error occurs
-
getCatalogs
public java.sql.ResultSet getCatalogs() throws java.sql.SQLException- Specified by:
getCatalogsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getCatalogSeparator
public java.lang.String getCatalogSeparator() throws java.sql.SQLException- Specified by:
getCatalogSeparatorin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getCatalogTerm
public java.lang.String getCatalogTerm() throws java.sql.SQLException- Specified by:
getCatalogTermin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDatabase
protected java.lang.String getDatabase(java.lang.String catalog, java.lang.String schema) -
getColumnPrivilegesFields
-
getColumnPrivileges
public java.sql.ResultSet getColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.String columnNamePattern) throws java.sql.SQLException- Specified by:
getColumnPrivilegesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getColumns
public java.sql.ResultSet getColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern) throws java.sql.SQLException- Specified by:
getColumnsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
createColumnsFields
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
getConnectionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getCrossReference
public java.sql.ResultSet 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) throws java.sql.SQLException- Specified by:
getCrossReferencein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
createFkMetadataFields
-
getDatabaseMajorVersion
public int getDatabaseMajorVersion() throws java.sql.SQLException- Specified by:
getDatabaseMajorVersionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDatabaseMinorVersion
public int getDatabaseMinorVersion() throws java.sql.SQLException- Specified by:
getDatabaseMinorVersionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDatabaseProductName
public java.lang.String getDatabaseProductName() throws java.sql.SQLException- Specified by:
getDatabaseProductNamein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDatabaseProductVersion
public java.lang.String getDatabaseProductVersion() throws java.sql.SQLException- Specified by:
getDatabaseProductVersionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation() throws java.sql.SQLException- Specified by:
getDefaultTransactionIsolationin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDriverMajorVersion
public int getDriverMajorVersion()- Specified by:
getDriverMajorVersionin interfacejava.sql.DatabaseMetaData
-
getDriverMinorVersion
public int getDriverMinorVersion()- Specified by:
getDriverMinorVersionin interfacejava.sql.DatabaseMetaData
-
getDriverName
public java.lang.String getDriverName() throws java.sql.SQLException- Specified by:
getDriverNamein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getDriverVersion
public java.lang.String getDriverVersion() throws java.sql.SQLException- Specified by:
getDriverVersionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getExportedKeys
public java.sql.ResultSet getExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table) throws java.sql.SQLException- Specified by:
getExportedKeysin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getExtraNameCharacters
public java.lang.String getExtraNameCharacters() throws java.sql.SQLException- Specified by:
getExtraNameCharactersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getForeignKeyActions
protected int[] getForeignKeyActions(java.lang.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.- Parameters:
commentString- the comment from 'SHOW TABLE STATUS'- Returns:
- int[] [0] = delete action, [1] = update action
-
getIdentifierQuoteString
public java.lang.String getIdentifierQuoteString() throws java.sql.SQLException- Specified by:
getIdentifierQuoteStringin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getImportedKeys
public java.sql.ResultSet getImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table) throws java.sql.SQLException- Specified by:
getImportedKeysin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getIndexInfo
public java.sql.ResultSet getIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate) throws java.sql.SQLException- Specified by:
getIndexInfoin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
createIndexInfoFields
-
getJDBCMajorVersion
public int getJDBCMajorVersion() throws java.sql.SQLException- Specified by:
getJDBCMajorVersionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getJDBCMinorVersion
public int getJDBCMinorVersion() throws java.sql.SQLException- Specified by:
getJDBCMinorVersionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxBinaryLiteralLength
public int getMaxBinaryLiteralLength() throws java.sql.SQLException- Specified by:
getMaxBinaryLiteralLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxCatalogNameLength
public int getMaxCatalogNameLength() throws java.sql.SQLException- Specified by:
getMaxCatalogNameLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxCharLiteralLength
public int getMaxCharLiteralLength() throws java.sql.SQLException- Specified by:
getMaxCharLiteralLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxColumnNameLength
public int getMaxColumnNameLength() throws java.sql.SQLException- Specified by:
getMaxColumnNameLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxColumnsInGroupBy
public int getMaxColumnsInGroupBy() throws java.sql.SQLException- Specified by:
getMaxColumnsInGroupByin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxColumnsInIndex
public int getMaxColumnsInIndex() throws java.sql.SQLException- Specified by:
getMaxColumnsInIndexin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxColumnsInOrderBy
public int getMaxColumnsInOrderBy() throws java.sql.SQLException- Specified by:
getMaxColumnsInOrderByin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxColumnsInSelect
public int getMaxColumnsInSelect() throws java.sql.SQLException- Specified by:
getMaxColumnsInSelectin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxColumnsInTable
public int getMaxColumnsInTable() throws java.sql.SQLException- Specified by:
getMaxColumnsInTablein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxConnections
public int getMaxConnections() throws java.sql.SQLException- Specified by:
getMaxConnectionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxCursorNameLength
public int getMaxCursorNameLength() throws java.sql.SQLException- Specified by:
getMaxCursorNameLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxIndexLength
public int getMaxIndexLength() throws java.sql.SQLException- Specified by:
getMaxIndexLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxProcedureNameLength
public int getMaxProcedureNameLength() throws java.sql.SQLException- Specified by:
getMaxProcedureNameLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxRowSize
public int getMaxRowSize() throws java.sql.SQLException- Specified by:
getMaxRowSizein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxSchemaNameLength
public int getMaxSchemaNameLength() throws java.sql.SQLException- Specified by:
getMaxSchemaNameLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxStatementLength
public int getMaxStatementLength() throws java.sql.SQLException- Specified by:
getMaxStatementLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxStatements
public int getMaxStatements() throws java.sql.SQLException- Specified by:
getMaxStatementsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxTableNameLength
public int getMaxTableNameLength() throws java.sql.SQLException- Specified by:
getMaxTableNameLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxTablesInSelect
public int getMaxTablesInSelect() throws java.sql.SQLException- Specified by:
getMaxTablesInSelectin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMaxUserNameLength
public int getMaxUserNameLength() throws java.sql.SQLException- Specified by:
getMaxUserNameLengthin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getNumericFunctions
public java.lang.String getNumericFunctions() throws java.sql.SQLException- Specified by:
getNumericFunctionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getPrimaryKeysFields
-
getPrimaryKeys
public java.sql.ResultSet getPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table) throws java.sql.SQLException- Specified by:
getPrimaryKeysin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getProcedureColumns
public java.sql.ResultSet getProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.String columnNamePattern) throws java.sql.SQLException- Specified by:
getProcedureColumnsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
createProcedureColumnsFields
-
getProcedureOrFunctionColumns
protected java.sql.ResultSet getProcedureOrFunctionColumns(Field[] fields, java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureOrFunctionNamePattern, java.lang.String columnNamePattern, boolean returnProcedures, boolean returnFunctions) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getProcedures
public java.sql.ResultSet getProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern) throws java.sql.SQLException- Specified by:
getProceduresin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
createFieldMetadataForGetProcedures
-
getProceduresAndOrFunctions
protected java.sql.ResultSet getProceduresAndOrFunctions(Field[] fields, java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, boolean returnProcedures, boolean returnFunctions) throws java.sql.SQLException- Parameters:
fields- fieldscatalog- catalogschemaPattern- schema patternprocedureNamePattern- procedure name patternreturnProcedures- true if procedures should be included into resultreturnFunctions- true if functions should be included into result- Returns:
- result set
- Throws:
java.sql.SQLException- if a database access error occurs
-
getProcedureTerm
public java.lang.String getProcedureTerm() throws java.sql.SQLException- Specified by:
getProcedureTermin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getResultSetHoldability
public int getResultSetHoldability() throws java.sql.SQLException- Specified by:
getResultSetHoldabilityin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSchemas
public java.sql.ResultSet getSchemas() throws java.sql.SQLException- Specified by:
getSchemasin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSchemas
public java.sql.ResultSet getSchemas(java.lang.String catalog, java.lang.String schemaPattern) throws java.sql.SQLException- Specified by:
getSchemasin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSchemaTerm
public java.lang.String getSchemaTerm() throws java.sql.SQLException- Specified by:
getSchemaTermin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSearchStringEscape
public java.lang.String getSearchStringEscape() throws java.sql.SQLException- Specified by:
getSearchStringEscapein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSQLKeywords
public java.lang.String getSQLKeywords() throws java.sql.SQLExceptionGet a comma separated list of all a database's SQL keywords that are NOT also SQL92/SQL2003 keywords.- Specified by:
getSQLKeywordsin interfacejava.sql.DatabaseMetaData- Returns:
- the list
- Throws:
java.sql.SQLException- if a database access error occurs
-
getSQLStateType
public int getSQLStateType() throws java.sql.SQLException- Specified by:
getSQLStateTypein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getStringFunctions
public java.lang.String getStringFunctions() throws java.sql.SQLException- Specified by:
getStringFunctionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSuperTables
public java.sql.ResultSet getSuperTables(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.sql.SQLException- Specified by:
getSuperTablesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSuperTypes
public java.sql.ResultSet getSuperTypes(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.sql.SQLException- Specified by:
getSuperTypesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getSystemFunctions
public java.lang.String getSystemFunctions() throws java.sql.SQLException- Specified by:
getSystemFunctionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getTableNameWithCase
protected java.lang.String getTableNameWithCase(java.lang.String table) -
getTablePrivileges
public java.sql.ResultSet getTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern) throws java.sql.SQLException- Specified by:
getTablePrivilegesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getTables
public java.sql.ResultSet getTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types) throws java.sql.SQLException- Specified by:
getTablesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
createTablesFields
-
getTableTypes
public java.sql.ResultSet getTableTypes() throws java.sql.SQLException- Specified by:
getTableTypesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getTimeDateFunctions
public java.lang.String getTimeDateFunctions() throws java.sql.SQLException- Specified by:
getTimeDateFunctionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getTypeInfo
public java.sql.ResultSet getTypeInfo() throws java.sql.SQLException- Specified by:
getTypeInfoin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getUDTs
public java.sql.ResultSet getUDTs(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, int[] types) throws java.sql.SQLException- Specified by:
getUDTsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getURL
public java.lang.String getURL() throws java.sql.SQLException- Specified by:
getURLin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getUserName
public java.lang.String getUserName() throws java.sql.SQLException- Specified by:
getUserNamein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getVersionColumnsFields
-
getVersionColumns
public java.sql.ResultSet getVersionColumns(java.lang.String catalog, java.lang.String schema, java.lang.String table) throws java.sql.SQLException- Specified by:
getVersionColumnsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
insertsAreDetected
public boolean insertsAreDetected(int type) throws java.sql.SQLException- Specified by:
insertsAreDetectedin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
isCatalogAtStart
public boolean isCatalogAtStart() throws java.sql.SQLException- Specified by:
isCatalogAtStartin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
isReadOnly
public boolean isReadOnly() throws java.sql.SQLException- Specified by:
isReadOnlyin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
locatorsUpdateCopy
public boolean locatorsUpdateCopy() throws java.sql.SQLException- Specified by:
locatorsUpdateCopyin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
nullPlusNonNullIsNull
public boolean nullPlusNonNullIsNull() throws java.sql.SQLException- Specified by:
nullPlusNonNullIsNullin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
nullsAreSortedAtEnd
public boolean nullsAreSortedAtEnd() throws java.sql.SQLException- Specified by:
nullsAreSortedAtEndin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
nullsAreSortedAtStart
public boolean nullsAreSortedAtStart() throws java.sql.SQLException- Specified by:
nullsAreSortedAtStartin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
nullsAreSortedHigh
public boolean nullsAreSortedHigh() throws java.sql.SQLException- Specified by:
nullsAreSortedHighin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
nullsAreSortedLow
public boolean nullsAreSortedLow() throws java.sql.SQLException- Specified by:
nullsAreSortedLowin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
othersDeletesAreVisible
public boolean othersDeletesAreVisible(int type) throws java.sql.SQLException- Specified by:
othersDeletesAreVisiblein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
othersInsertsAreVisible
public boolean othersInsertsAreVisible(int type) throws java.sql.SQLException- Specified by:
othersInsertsAreVisiblein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
othersUpdatesAreVisible
public boolean othersUpdatesAreVisible(int type) throws java.sql.SQLException- Specified by:
othersUpdatesAreVisiblein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
ownDeletesAreVisible
public boolean ownDeletesAreVisible(int type) throws java.sql.SQLException- Specified by:
ownDeletesAreVisiblein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
ownInsertsAreVisible
public boolean ownInsertsAreVisible(int type) throws java.sql.SQLException- Specified by:
ownInsertsAreVisiblein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
ownUpdatesAreVisible
public boolean ownUpdatesAreVisible(int type) throws java.sql.SQLException- Specified by:
ownUpdatesAreVisiblein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
parseTableStatusIntoLocalAndReferencedColumns
protected com.mysql.cj.jdbc.DatabaseMetaData.LocalAndReferencedColumns parseTableStatusIntoLocalAndReferencedColumns(java.lang.String keysComment) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
s2b
protected byte[] s2b(java.lang.String s) throws java.sql.SQLExceptionConverts the given string to bytes, using the connection's character encoding, or if not available, the JVM default encoding.- Parameters:
s- string- Returns:
- bytes
- Throws:
java.sql.SQLException- if a conversion error occurs
-
storesLowerCaseIdentifiers
public boolean storesLowerCaseIdentifiers() throws java.sql.SQLException- Specified by:
storesLowerCaseIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
storesLowerCaseQuotedIdentifiers
public boolean storesLowerCaseQuotedIdentifiers() throws java.sql.SQLException- Specified by:
storesLowerCaseQuotedIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
storesMixedCaseIdentifiers
public boolean storesMixedCaseIdentifiers() throws java.sql.SQLException- Specified by:
storesMixedCaseIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
storesMixedCaseQuotedIdentifiers
public boolean storesMixedCaseQuotedIdentifiers() throws java.sql.SQLException- Specified by:
storesMixedCaseQuotedIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
storesUpperCaseIdentifiers
public boolean storesUpperCaseIdentifiers() throws java.sql.SQLException- Specified by:
storesUpperCaseIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
storesUpperCaseQuotedIdentifiers
public boolean storesUpperCaseQuotedIdentifiers() throws java.sql.SQLException- Specified by:
storesUpperCaseQuotedIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsAlterTableWithAddColumn
public boolean supportsAlterTableWithAddColumn() throws java.sql.SQLException- Specified by:
supportsAlterTableWithAddColumnin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsAlterTableWithDropColumn
public boolean supportsAlterTableWithDropColumn() throws java.sql.SQLException- Specified by:
supportsAlterTableWithDropColumnin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsANSI92EntryLevelSQL
public boolean supportsANSI92EntryLevelSQL() throws java.sql.SQLException- Specified by:
supportsANSI92EntryLevelSQLin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsANSI92FullSQL
public boolean supportsANSI92FullSQL() throws java.sql.SQLException- Specified by:
supportsANSI92FullSQLin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsANSI92IntermediateSQL
public boolean supportsANSI92IntermediateSQL() throws java.sql.SQLException- Specified by:
supportsANSI92IntermediateSQLin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsBatchUpdates
public boolean supportsBatchUpdates() throws java.sql.SQLException- Specified by:
supportsBatchUpdatesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsCatalogsInDataManipulation
public boolean supportsCatalogsInDataManipulation() throws java.sql.SQLException- Specified by:
supportsCatalogsInDataManipulationin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsCatalogsInIndexDefinitions
public boolean supportsCatalogsInIndexDefinitions() throws java.sql.SQLException- Specified by:
supportsCatalogsInIndexDefinitionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsCatalogsInPrivilegeDefinitions
public boolean supportsCatalogsInPrivilegeDefinitions() throws java.sql.SQLException- Specified by:
supportsCatalogsInPrivilegeDefinitionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsCatalogsInProcedureCalls
public boolean supportsCatalogsInProcedureCalls() throws java.sql.SQLException- Specified by:
supportsCatalogsInProcedureCallsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsCatalogsInTableDefinitions
public boolean supportsCatalogsInTableDefinitions() throws java.sql.SQLException- Specified by:
supportsCatalogsInTableDefinitionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsColumnAliasing
public boolean supportsColumnAliasing() throws java.sql.SQLException- Specified by:
supportsColumnAliasingin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsConvert
public boolean supportsConvert() throws java.sql.SQLException- Specified by:
supportsConvertin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsConvert
public boolean supportsConvert(int fromType, int toType) throws java.sql.SQLException- Specified by:
supportsConvertin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsCoreSQLGrammar
public boolean supportsCoreSQLGrammar() throws java.sql.SQLException- Specified by:
supportsCoreSQLGrammarin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsCorrelatedSubqueries
public boolean supportsCorrelatedSubqueries() throws java.sql.SQLException- Specified by:
supportsCorrelatedSubqueriesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsDataDefinitionAndDataManipulationTransactions
public boolean supportsDataDefinitionAndDataManipulationTransactions() throws java.sql.SQLException- Specified by:
supportsDataDefinitionAndDataManipulationTransactionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsDataManipulationTransactionsOnly
public boolean supportsDataManipulationTransactionsOnly() throws java.sql.SQLException- Specified by:
supportsDataManipulationTransactionsOnlyin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsDifferentTableCorrelationNames
public boolean supportsDifferentTableCorrelationNames() throws java.sql.SQLException- Specified by:
supportsDifferentTableCorrelationNamesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsExpressionsInOrderBy
public boolean supportsExpressionsInOrderBy() throws java.sql.SQLException- Specified by:
supportsExpressionsInOrderByin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsExtendedSQLGrammar
public boolean supportsExtendedSQLGrammar() throws java.sql.SQLException- Specified by:
supportsExtendedSQLGrammarin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsFullOuterJoins
public boolean supportsFullOuterJoins() throws java.sql.SQLException- Specified by:
supportsFullOuterJoinsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()- Specified by:
supportsGetGeneratedKeysin interfacejava.sql.DatabaseMetaData
-
supportsGroupBy
public boolean supportsGroupBy() throws java.sql.SQLException- Specified by:
supportsGroupByin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsGroupByBeyondSelect
public boolean supportsGroupByBeyondSelect() throws java.sql.SQLException- Specified by:
supportsGroupByBeyondSelectin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsGroupByUnrelated
public boolean supportsGroupByUnrelated() throws java.sql.SQLException- Specified by:
supportsGroupByUnrelatedin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsIntegrityEnhancementFacility
public boolean supportsIntegrityEnhancementFacility() throws java.sql.SQLException- Specified by:
supportsIntegrityEnhancementFacilityin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsLikeEscapeClause
public boolean supportsLikeEscapeClause() throws java.sql.SQLException- Specified by:
supportsLikeEscapeClausein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsLimitedOuterJoins
public boolean supportsLimitedOuterJoins() throws java.sql.SQLException- Specified by:
supportsLimitedOuterJoinsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsMinimumSQLGrammar
public boolean supportsMinimumSQLGrammar() throws java.sql.SQLException- Specified by:
supportsMinimumSQLGrammarin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsMixedCaseIdentifiers
public boolean supportsMixedCaseIdentifiers() throws java.sql.SQLException- Specified by:
supportsMixedCaseIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsMixedCaseQuotedIdentifiers
public boolean supportsMixedCaseQuotedIdentifiers() throws java.sql.SQLException- Specified by:
supportsMixedCaseQuotedIdentifiersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsMultipleOpenResults
public boolean supportsMultipleOpenResults() throws java.sql.SQLException- Specified by:
supportsMultipleOpenResultsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsMultipleResultSets
public boolean supportsMultipleResultSets() throws java.sql.SQLException- Specified by:
supportsMultipleResultSetsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsMultipleTransactions
public boolean supportsMultipleTransactions() throws java.sql.SQLException- Specified by:
supportsMultipleTransactionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsNamedParameters
public boolean supportsNamedParameters() throws java.sql.SQLException- Specified by:
supportsNamedParametersin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsNonNullableColumns
public boolean supportsNonNullableColumns() throws java.sql.SQLException- Specified by:
supportsNonNullableColumnsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsOpenCursorsAcrossCommit
public boolean supportsOpenCursorsAcrossCommit() throws java.sql.SQLException- Specified by:
supportsOpenCursorsAcrossCommitin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsOpenCursorsAcrossRollback
public boolean supportsOpenCursorsAcrossRollback() throws java.sql.SQLException- Specified by:
supportsOpenCursorsAcrossRollbackin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsOpenStatementsAcrossCommit
public boolean supportsOpenStatementsAcrossCommit() throws java.sql.SQLException- Specified by:
supportsOpenStatementsAcrossCommitin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsOpenStatementsAcrossRollback
public boolean supportsOpenStatementsAcrossRollback() throws java.sql.SQLException- Specified by:
supportsOpenStatementsAcrossRollbackin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsOrderByUnrelated
public boolean supportsOrderByUnrelated() throws java.sql.SQLException- Specified by:
supportsOrderByUnrelatedin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsOuterJoins
public boolean supportsOuterJoins() throws java.sql.SQLException- Specified by:
supportsOuterJoinsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsPositionedDelete
public boolean supportsPositionedDelete() throws java.sql.SQLException- Specified by:
supportsPositionedDeletein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsPositionedUpdate
public boolean supportsPositionedUpdate() throws java.sql.SQLException- Specified by:
supportsPositionedUpdatein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsResultSetConcurrency
public boolean supportsResultSetConcurrency(int type, int concurrency) throws java.sql.SQLException- Specified by:
supportsResultSetConcurrencyin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsResultSetHoldability
public boolean supportsResultSetHoldability(int holdability) throws java.sql.SQLException- Specified by:
supportsResultSetHoldabilityin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsResultSetType
public boolean supportsResultSetType(int type) throws java.sql.SQLException- Specified by:
supportsResultSetTypein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSavepoints
public boolean supportsSavepoints() throws java.sql.SQLException- Specified by:
supportsSavepointsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSchemasInDataManipulation
public boolean supportsSchemasInDataManipulation() throws java.sql.SQLException- Specified by:
supportsSchemasInDataManipulationin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSchemasInIndexDefinitions
public boolean supportsSchemasInIndexDefinitions() throws java.sql.SQLException- Specified by:
supportsSchemasInIndexDefinitionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSchemasInPrivilegeDefinitions
public boolean supportsSchemasInPrivilegeDefinitions() throws java.sql.SQLException- Specified by:
supportsSchemasInPrivilegeDefinitionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSchemasInProcedureCalls
public boolean supportsSchemasInProcedureCalls() throws java.sql.SQLException- Specified by:
supportsSchemasInProcedureCallsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSchemasInTableDefinitions
public boolean supportsSchemasInTableDefinitions() throws java.sql.SQLException- Specified by:
supportsSchemasInTableDefinitionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSelectForUpdate
public boolean supportsSelectForUpdate() throws java.sql.SQLException- Specified by:
supportsSelectForUpdatein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsStatementPooling
public boolean supportsStatementPooling() throws java.sql.SQLException- Specified by:
supportsStatementPoolingin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsStoredProcedures
public boolean supportsStoredProcedures() throws java.sql.SQLException- Specified by:
supportsStoredProceduresin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSubqueriesInComparisons
public boolean supportsSubqueriesInComparisons() throws java.sql.SQLException- Specified by:
supportsSubqueriesInComparisonsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSubqueriesInExists
public boolean supportsSubqueriesInExists() throws java.sql.SQLException- Specified by:
supportsSubqueriesInExistsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSubqueriesInIns
public boolean supportsSubqueriesInIns() throws java.sql.SQLException- Specified by:
supportsSubqueriesInInsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsSubqueriesInQuantifieds
public boolean supportsSubqueriesInQuantifieds() throws java.sql.SQLException- Specified by:
supportsSubqueriesInQuantifiedsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsTableCorrelationNames
public boolean supportsTableCorrelationNames() throws java.sql.SQLException- Specified by:
supportsTableCorrelationNamesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsTransactionIsolationLevel
public boolean supportsTransactionIsolationLevel(int level) throws java.sql.SQLException- Specified by:
supportsTransactionIsolationLevelin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsTransactions
public boolean supportsTransactions() throws java.sql.SQLException- Specified by:
supportsTransactionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsUnion
public boolean supportsUnion() throws java.sql.SQLException- Specified by:
supportsUnionin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
supportsUnionAll
public boolean supportsUnionAll() throws java.sql.SQLException- Specified by:
supportsUnionAllin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
updatesAreDetected
public boolean updatesAreDetected(int type) throws java.sql.SQLException- Specified by:
updatesAreDetectedin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
usesLocalFilePerTable
public boolean usesLocalFilePerTable() throws java.sql.SQLException- Specified by:
usesLocalFilePerTablein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
usesLocalFiles
public boolean usesLocalFiles() throws java.sql.SQLException- Specified by:
usesLocalFilesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getClientInfoProperties
public java.sql.ResultSet getClientInfoProperties() throws java.sql.SQLException- Specified by:
getClientInfoPropertiesin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getFunctionColumns
public java.sql.ResultSet getFunctionColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern, java.lang.String columnNamePattern) throws java.sql.SQLException- Specified by:
getFunctionColumnsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
createFunctionColumnsFields
-
getFunctionsFields
-
getFunctions
public java.sql.ResultSet getFunctions(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String functionNamePattern) throws java.sql.SQLException- Specified by:
getFunctionsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
providesQueryObjectGenerator
public boolean providesQueryObjectGenerator() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
supportsStoredFunctionsUsingCallSyntax
public boolean supportsStoredFunctionsUsingCallSyntax() throws java.sql.SQLException- Specified by:
supportsStoredFunctionsUsingCallSyntaxin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
prepareMetaDataSafeStatement
protected java.sql.PreparedStatement prepareMetaDataSafeStatement(java.lang.String sql) throws java.sql.SQLExceptionGet a prepared statement to query information_schema tables.- Parameters:
sql- query- Returns:
- PreparedStatement
- Throws:
java.sql.SQLException- if a database access error occurs
-
getPseudoColumns
public java.sql.ResultSet getPseudoColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern) throws java.sql.SQLException- Specified by:
getPseudoColumnsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
generatedKeyAlwaysReturned
public boolean generatedKeyAlwaysReturned() throws java.sql.SQLException- Specified by:
generatedKeyAlwaysReturnedin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException- Specified by:
unwrapin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException- Specified by:
isWrapperForin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
getRowIdLifetime
public java.sql.RowIdLifetime getRowIdLifetime() throws java.sql.SQLException- Specified by:
getRowIdLifetimein interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
autoCommitFailureClosesAllResultSets
public boolean autoCommitFailureClosesAllResultSets() throws java.sql.SQLException- Specified by:
autoCommitFailureClosesAllResultSetsin interfacejava.sql.DatabaseMetaData- Throws:
java.sql.SQLException
-
getMetadataEncoding
public java.lang.String getMetadataEncoding() -
setMetadataEncoding
public void setMetadataEncoding(java.lang.String metadataEncoding) -
getMetadataCollationIndex
public int getMetadataCollationIndex() -
setMetadataCollationIndex
public void setMetadataCollationIndex(int metadataCollationIndex)
-