Class QualifiedObjectNameFormatterStandardImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.env.internal.QualifiedObjectNameFormatterStandardImpl
-
- All Implemented Interfaces:
QualifiedObjectNameFormatter
public class QualifiedObjectNameFormatterStandardImpl extends Object implements QualifiedObjectNameFormatter
Standard implementation of QualifiedObjectNameFormatter which uses information reported byDatabaseMetaData
to render qualified names.
-
-
Constructor Summary
Constructors Constructor Description QualifiedObjectNameFormatterStandardImpl(NameQualifierSupport nameQualifierSupport)
QualifiedObjectNameFormatterStandardImpl(NameQualifierSupport nameQualifierSupport, String catalogSeparator, boolean catalogAtEnd)
QualifiedObjectNameFormatterStandardImpl(NameQualifierSupport nameQualifierSupport, DatabaseMetaData databaseMetaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(QualifiedName qualifiedName, Dialect dialect)
Render a formatted non-table and non-sequence qualified nameString
format(QualifiedSequenceName qualifiedSequenceName, Dialect dialect)
Render a formatted sequence nameString
format(QualifiedTableName qualifiedTableName, Dialect dialect)
Render a formatted a table name
-
-
-
Constructor Detail
-
QualifiedObjectNameFormatterStandardImpl
public QualifiedObjectNameFormatterStandardImpl(NameQualifierSupport nameQualifierSupport, String catalogSeparator, boolean catalogAtEnd)
-
QualifiedObjectNameFormatterStandardImpl
public QualifiedObjectNameFormatterStandardImpl(NameQualifierSupport nameQualifierSupport)
-
QualifiedObjectNameFormatterStandardImpl
public QualifiedObjectNameFormatterStandardImpl(NameQualifierSupport nameQualifierSupport, DatabaseMetaData databaseMetaData) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
format
public String format(QualifiedTableName qualifiedTableName, Dialect dialect)
Description copied from interface:QualifiedObjectNameFormatter
Render a formatted a table name- Specified by:
format
in interfaceQualifiedObjectNameFormatter
- Parameters:
qualifiedTableName
- The table namedialect
- The dialect- Returns:
- The formatted name,
-
format
public String format(QualifiedSequenceName qualifiedSequenceName, Dialect dialect)
Description copied from interface:QualifiedObjectNameFormatter
Render a formatted sequence name- Specified by:
format
in interfaceQualifiedObjectNameFormatter
- Parameters:
qualifiedSequenceName
- The sequence namedialect
- The dialect- Returns:
- The formatted name
-
format
public String format(QualifiedName qualifiedName, Dialect dialect)
Description copied from interface:QualifiedObjectNameFormatter
Render a formatted non-table and non-sequence qualified name- Specified by:
format
in interfaceQualifiedObjectNameFormatter
- Parameters:
qualifiedName
- The namedialect
- The dialect- Returns:
- The formatted name
-
-