Interface SchemaNameResolver


@SPI({USE,IMPLEMENT,SUPPLY}) public interface SchemaNameResolver

Resolves the current schema name for a JDBC connection.

Implement this contract only when Connection.getSchema() is unavailable or does not represent the database's schema semantics. Do not close the supplied connection. Return null when no schema can be determined, and preserve an empty string when it is the database's deliberate result.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveSchemaName(Connection connection, Dialect dialect)
    Resolve the current schema name without closing connection.