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 TypeMethodDescriptionvoidapplyIdentifierCasing(DatabaseMetaData metaData) voidapplyReservedWords(String... words) voidapplyReservedWords(DatabaseMetaData metaData) Applies any reserved words reported viaDatabaseMetaData.getSQLKeywords()voidapplyReservedWords(Collection<String> words) voidapplyReservedWords(Set<String> words) build()voidstatic IdentifierHelperBuilderfrom(JdbcEnvironment jdbcEnvironment) booleanbooleanvoidsetAutoQuoteDollar(boolean autoQuoteDollar) voidsetAutoQuoteInitialUnderscore(boolean autoQuoteInitialUnderscore) voidsetAutoQuoteKeywords(boolean autoQuoteKeywords) voidsetGloballyQuoteIdentifiers(boolean globallyQuoteIdentifiers) voidsetNameQualifierSupport(NameQualifierSupport nameQualifierSupport) voidsetQuotedCaseStrategy(IdentifierCaseStrategy quotedCaseStrategy) voidsetReservedWords(Set<String> words) voidsetSkipGlobalQuotingForColumnDefinitions(boolean skipGlobalQuotingForColumnDefinitions) voidsetUnquotedCaseStrategy(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) -
setAutoQuoteDollar
public void setAutoQuoteDollar(boolean autoQuoteDollar) -
getNameQualifierSupport
-
setNameQualifierSupport
-
getUnquotedCaseStrategy
-
setUnquotedCaseStrategy
-
getQuotedCaseStrategy
-
setQuotedCaseStrategy
-
clearReservedWords
public void clearReservedWords() -
applyReservedWords
-
applyReservedWords
-
applyReservedWords
-
setReservedWords
-
build
-