Class DefaultSchemaNameResolver
- java.lang.Object
-
- org.hibernate.engine.jdbc.env.internal.DefaultSchemaNameResolver
-
- All Implemented Interfaces:
SchemaNameResolver
public class DefaultSchemaNameResolver extends Object implements SchemaNameResolver
Default implementation ofSchemaNameResolver
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultSchemaNameResolver.SchemaNameResolverFallbackDelegate
static class
DefaultSchemaNameResolver.SchemaNameResolverJava17Delegate
-
Field Summary
Fields Modifier and Type Field Description static DefaultSchemaNameResolver
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolveSchemaName(Connection connection, Dialect dialect)
Given a JDBCConnection
, resolve the name of the schema (if one) to which it connects.
-
-
-
Field Detail
-
INSTANCE
public static final DefaultSchemaNameResolver INSTANCE
-
-
Method Detail
-
resolveSchemaName
public String resolveSchemaName(Connection connection, Dialect dialect) throws SQLException
Description copied from interface:SchemaNameResolver
Given a JDBCConnection
, resolve the name of the schema (if one) to which it connects.- Specified by:
resolveSchemaName
in interfaceSchemaNameResolver
- Parameters:
connection
- The JDBC connectiondialect
- TheDialect
- Returns:
- The name of the schema (may be null).
- Throws:
SQLException
-
-