|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cfg.ObjectNameNormalizer
public abstract class ObjectNameNormalizer
Provides centralized normalization of how database object names are handled.
Nested Class Summary | |
---|---|
static interface |
ObjectNameNormalizer.NamingStrategyHelper
Helper contract for dealing with NamingStrategy in different situations. |
Constructor Summary | |
---|---|
ObjectNameNormalizer()
|
Method Summary | |
---|---|
protected abstract NamingStrategy |
getNamingStrategy()
Get the current NamingStrategy . |
protected abstract boolean |
isUseQuotedIdentifiersGlobally()
Retrieve whether the user requested that all database identifiers be quoted. |
String |
normalizeDatabaseIdentifier(String explicitName,
ObjectNameNormalizer.NamingStrategyHelper helper)
Performs the actual contract of normalizing a database name. |
String |
normalizeIdentifierQuoting(String identifier)
Allow normalizing of just the quoting aspect of identifiers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectNameNormalizer()
Method Detail |
---|
public String normalizeDatabaseIdentifier(String explicitName, ObjectNameNormalizer.NamingStrategyHelper helper)
explicitName
- The name the user explicitly gave for the database object.helper
- The NamingStrategy
helper.
public String normalizeIdentifierQuoting(String identifier)
identifier
- The identifier to be quoting-normalized.
protected abstract boolean isUseQuotedIdentifiersGlobally()
protected abstract NamingStrategy getNamingStrategy()
NamingStrategy
.
NamingStrategy
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |