public abstract class MultipleDatabaseMetaData<C extends AbstractConnectionAdapter> extends AdaptedDatabaseMetaData
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| 构造器和说明 |
|---|
MultipleDatabaseMetaData(C connection,
Collection<String> datasourceNames,
CachedDatabaseMetaData cachedDatabaseMetaData,
org.apache.shardingsphere.underlying.common.metadata.ShardingSphereMetaData shardingSphereMetaData) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract ResultSet |
createDatabaseMetaDataResultSet(ResultSet resultSet) |
protected abstract String |
getActualTable(String table) |
protected abstract String |
getActualTableNamePattern(String tableNamePattern) |
ResultSet |
getAttributes(String catalog,
String schemaPattern,
String typeNamePattern,
String attributeNamePattern) |
ResultSet |
getBestRowIdentifier(String catalog,
String schema,
String table,
int scope,
boolean nullable) |
ResultSet |
getCatalogs() |
ResultSet |
getClientInfoProperties() |
ResultSet |
getColumnPrivileges(String catalog,
String schema,
String table,
String columnNamePattern) |
ResultSet |
getColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern) |
Connection |
getConnection() |
ResultSet |
getCrossReference(String parentCatalog,
String parentSchema,
String parentTable,
String foreignCatalog,
String foreignSchema,
String foreignTable) |
ResultSet |
getExportedKeys(String catalog,
String schema,
String table) |
ResultSet |
getFunctionColumns(String catalog,
String schemaPattern,
String functionNamePattern,
String columnNamePattern) |
ResultSet |
getFunctions(String catalog,
String schemaPattern,
String functionNamePattern) |
ResultSet |
getImportedKeys(String catalog,
String schema,
String table) |
ResultSet |
getIndexInfo(String catalog,
String schema,
String table,
boolean unique,
boolean approximate) |
ResultSet |
getPrimaryKeys(String catalog,
String schema,
String table) |
ResultSet |
getProcedureColumns(String catalog,
String schemaPattern,
String procedureNamePattern,
String columnNamePattern) |
ResultSet |
getProcedures(String catalog,
String schemaPattern,
String procedureNamePattern) |
ResultSet |
getPseudoColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern) |
ResultSet |
getSchemas() |
ResultSet |
getSchemas(String catalog,
String schemaPattern) |
ResultSet |
getSuperTables(String catalog,
String schemaPattern,
String tableNamePattern) |
ResultSet |
getSuperTypes(String catalog,
String schemaPattern,
String typeNamePattern) |
ResultSet |
getTablePrivileges(String catalog,
String schemaPattern,
String tableNamePattern) |
ResultSet |
getTables(String catalog,
String schemaPattern,
String tableNamePattern,
String[] types) |
ResultSet |
getTableTypes() |
ResultSet |
getTypeInfo() |
ResultSet |
getUDTs(String catalog,
String schemaPattern,
String typeNamePattern,
int[] types) |
ResultSet |
getVersionColumns(String catalog,
String schema,
String table) |
allProceduresAreCallable, allTablesAreSelectable, autoCommitFailureClosesAllResultSets, dataDefinitionCausesTransactionCommit, dataDefinitionIgnoredInTransactions, deletesAreDetected, doesMaxRowSizeIncludeBlobs, generatedKeyAlwaysReturned, getCatalogSeparator, getCatalogTerm, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDefaultTransactionIsolation, getDriverMajorVersion, getDriverMinorVersion, getDriverName, getDriverVersion, getExtraNameCharacters, getIdentifierQuoteString, getJDBCMajorVersion, getJDBCMinorVersion, getMaxBinaryLiteralLength, getMaxCatalogNameLength, getMaxCharLiteralLength, getMaxColumnNameLength, getMaxColumnsInGroupBy, getMaxColumnsInIndex, getMaxColumnsInOrderBy, getMaxColumnsInSelect, getMaxColumnsInTable, getMaxConnections, getMaxCursorNameLength, getMaxIndexLength, getMaxProcedureNameLength, getMaxRowSize, getMaxSchemaNameLength, getMaxStatementLength, getMaxStatements, getMaxTableNameLength, getMaxTablesInSelect, getMaxUserNameLength, getNumericFunctions, getProcedureTerm, getResultSetHoldability, getRowIdLifetime, getSchemaTerm, getSearchStringEscape, getSQLKeywords, getSQLStateType, getStringFunctions, getSystemFunctions, getTimeDateFunctions, getURL, getUserName, insertsAreDetected, isCatalogAtStart, isReadOnly, locatorsUpdateCopy, nullPlusNonNullIsNull, nullsAreSortedAtEnd, nullsAreSortedAtStart, nullsAreSortedHigh, nullsAreSortedLow, othersDeletesAreVisible, othersInsertsAreVisible, othersUpdatesAreVisible, ownDeletesAreVisible, ownInsertsAreVisible, ownUpdatesAreVisible, storesLowerCaseIdentifiers, storesLowerCaseQuotedIdentifiers, storesMixedCaseIdentifiers, storesMixedCaseQuotedIdentifiers, storesUpperCaseIdentifiers, storesUpperCaseQuotedIdentifiers, supportsAlterTableWithAddColumn, supportsAlterTableWithDropColumn, supportsANSI92EntryLevelSQL, supportsANSI92FullSQL, supportsANSI92IntermediateSQL, supportsBatchUpdates, supportsCatalogsInDataManipulation, supportsCatalogsInIndexDefinitions, supportsCatalogsInPrivilegeDefinitions, supportsCatalogsInProcedureCalls, supportsCatalogsInTableDefinitions, supportsColumnAliasing, supportsConvert, supportsConvert, supportsCoreSQLGrammar, supportsCorrelatedSubqueries, supportsDataDefinitionAndDataManipulationTransactions, supportsDataManipulationTransactionsOnly, supportsDifferentTableCorrelationNames, supportsExpressionsInOrderBy, supportsExtendedSQLGrammar, supportsFullOuterJoins, supportsGetGeneratedKeys, supportsGroupBy, supportsGroupByBeyondSelect, supportsGroupByUnrelated, supportsIntegrityEnhancementFacility, supportsLikeEscapeClause, supportsLimitedOuterJoins, supportsMinimumSQLGrammar, supportsMixedCaseIdentifiers, supportsMixedCaseQuotedIdentifiers, supportsMultipleOpenResults, supportsMultipleResultSets, supportsMultipleTransactions, supportsNamedParameters, supportsNonNullableColumns, supportsOpenCursorsAcrossCommit, supportsOpenCursorsAcrossRollback, supportsOpenStatementsAcrossCommit, supportsOpenStatementsAcrossRollback, supportsOrderByUnrelated, supportsOuterJoins, supportsPositionedDelete, supportsPositionedUpdate, supportsResultSetConcurrency, supportsResultSetHoldability, supportsResultSetType, supportsSavepoints, supportsSchemasInDataManipulation, supportsSchemasInIndexDefinitions, supportsSchemasInPrivilegeDefinitions, supportsSchemasInProcedureCalls, supportsSchemasInTableDefinitions, supportsSelectForUpdate, supportsStatementPooling, supportsStoredFunctionsUsingCallSyntax, supportsStoredProcedures, supportsSubqueriesInComparisons, supportsSubqueriesInExists, supportsSubqueriesInIns, supportsSubqueriesInQuantifieds, supportsTableCorrelationNames, supportsTransactionIsolationLevel, supportsTransactions, supportsUnion, supportsUnionAll, updatesAreDetected, usesLocalFilePerTable, usesLocalFilesisWrapperFor, recordMethodInvocation, replayMethodsInvocation, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxLogicalLobSize, supportsRefCursorsisWrapperFor, unwrappublic MultipleDatabaseMetaData(C connection, Collection<String> datasourceNames, CachedDatabaseMetaData cachedDatabaseMetaData, org.apache.shardingsphere.underlying.common.metadata.ShardingSphereMetaData shardingSphereMetaData)
public final Connection getConnection() throws SQLException
SQLExceptionpublic final ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
SQLExceptionpublic final ResultSet getSchemas() throws SQLException
SQLExceptionpublic final ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException
SQLExceptionpublic final ResultSet getCatalogs() throws SQLException
SQLExceptionpublic final ResultSet getTableTypes() throws SQLException
SQLExceptionpublic final ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException
SQLExceptionpublic final ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException
SQLExceptionpublic final ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException
SQLExceptionpublic final ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException
SQLExceptionpublic final ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException
SQLExceptionpublic final ResultSet getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
SQLExceptionpublic final ResultSet getTypeInfo() throws SQLException
SQLExceptionpublic final ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException
SQLExceptionpublic final ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException
SQLExceptionpublic final ResultSet getClientInfoProperties() throws SQLException
SQLExceptionpublic final ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException
SQLExceptionpublic final ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
SQLExceptionprotected abstract String getActualTableNamePattern(String tableNamePattern)
protected abstract ResultSet createDatabaseMetaDataResultSet(ResultSet resultSet) throws SQLException
SQLExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.