Class IdentifierHelperBuilder
java.lang.Object
org.hibernate.engine.jdbc.env.spi.IdentifierHelperBuilder
Builder for IdentifierHelper instances. Mainly here to allow progressive
building of the immutable (after instantiation) IdentifierHelper.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyIdentifierCasing
(DatabaseMetaData metaData) void
applyReservedWords
(String... words) void
applyReservedWords
(DatabaseMetaData metaData) Applies any reserved words reported viaDatabaseMetaData.getSQLKeywords()
void
applyReservedWords
(Collection<String> words) void
applyReservedWords
(Set<String> words) build()
void
static IdentifierHelperBuilder
from
(JdbcEnvironment jdbcEnvironment) boolean
boolean
void
setAutoQuoteInitialUnderscore
(boolean autoQuoteInitialUnderscore) void
setAutoQuoteKeywords
(boolean autoQuoteKeywords) void
setGloballyQuoteIdentifiers
(boolean globallyQuoteIdentifiers) void
setNameQualifierSupport
(NameQualifierSupport nameQualifierSupport) void
setQuotedCaseStrategy
(IdentifierCaseStrategy quotedCaseStrategy) void
setReservedWords
(Set<String> words) void
setSkipGlobalQuotingForColumnDefinitions
(boolean skipGlobalQuotingForColumnDefinitions) void
setUnquotedCaseStrategy
(IdentifierCaseStrategy unquotedCaseStrategy)
-
Method Details
-
from
-
applyReservedWords
Applies any reserved words reported viaDatabaseMetaData.getSQLKeywords()
- Parameters:
metaData
- The metadata to get reserved words from- Throws:
SQLException
- Any access to DatabaseMetaData can case SQLException; just re-throw.
-
applyIdentifierCasing
- Throws:
SQLException
-
isGloballyQuoteIdentifiers
public boolean isGloballyQuoteIdentifiers() -
setGloballyQuoteIdentifiers
public void setGloballyQuoteIdentifiers(boolean globallyQuoteIdentifiers) -
isSkipGlobalQuotingForColumnDefinitions
public boolean isSkipGlobalQuotingForColumnDefinitions() -
setSkipGlobalQuotingForColumnDefinitions
public void setSkipGlobalQuotingForColumnDefinitions(boolean skipGlobalQuotingForColumnDefinitions) -
setAutoQuoteKeywords
public void setAutoQuoteKeywords(boolean autoQuoteKeywords) -
setAutoQuoteInitialUnderscore
public void setAutoQuoteInitialUnderscore(boolean autoQuoteInitialUnderscore) -
getNameQualifierSupport
-
setNameQualifierSupport
-
getUnquotedCaseStrategy
-
setUnquotedCaseStrategy
-
getQuotedCaseStrategy
-
setQuotedCaseStrategy
-
clearReservedWords
public void clearReservedWords() -
applyReservedWords
-
applyReservedWords
-
applyReservedWords
-
setReservedWords
-
build
-