public class SqlServerMetadataCollector extends JdbcMetadataCollector
DatabaseMetaData.getSchemas()method instead of the actual schemas. Unfortunately, the
DatabaseMetaData.getTables(String, String, String, String)method actually returns schema names, so the default
JdbcMetadataCollectorimplementation doesn't match up correctly. This class should be used when the Microsoft JDBC driver is used for database connectivity. The jTDS driver has already corrected this bug and can use the default
|Constructor and Description|
|Modifier and Type||Method and Description|
Return the list of schema names that currently exist in the database to which
getCatalogNames, getColumns, getDatabaseMetadata, getForeignKeys, getProcedures, getTables
public List<String> getSchemaNames(Connection conn, String catalogName) throws JdbcMetadataException
connectionis connected within the named catalog. If
catalogNameis null, then all schema names should be returned regardless of the catalog with which they are associated. The schema names must be sorted in a manner that is stable between successive calls to this method.
conn- the connection to the database; must not be non-null and must be open. This connection should not be closed by this method.
catalogName- the name of the catalog to which returned schemas must belong, or null if all schemas are to be returned
JdbcMetadataException- if the schema names cannot be retrieved
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.