Interface SchemaNameResolver

All Known Implementing Classes:
DefaultSchemaNameResolver, DefaultSchemaNameResolver.SchemaNameResolverFallbackDelegate, DefaultSchemaNameResolver.SchemaNameResolverJava17Delegate

public interface SchemaNameResolver
Contract for resolving the schema of a Connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveSchemaName(Connection connection, Dialect dialect)
    Given a JDBC Connection, resolve the name of the schema (if one) to which it connects.
  • Method Details

    • resolveSchemaName

      String resolveSchemaName(Connection connection, Dialect dialect) throws SQLException
      Given a JDBC Connection, resolve the name of the schema (if one) to which it connects.
      Parameters:
      connection - The JDBC connection
      dialect - The Dialect
      Returns:
      The name of the schema (may be null).
      Throws:
      SQLException