| Modifier and Type | Class and Description |
|---|---|
| public static interface | ObjectNameNormalizer.NamingStrategyHelper
Helper contract for dealing with |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract NamingStrategy | |
| protected abstract boolean | Returns: True if the user requested that all database identifiers be quoted, false otherwise.Retrieve whether the user requested that all database identifiers be quoted. |
| public String | Returns: The normalized identifier.The name the user explicitly gave for the database object. explicitName, ObjectNameNormalizer.The helperNamingStrategy helper.Performs the actual contract of normalizing a database name. |
| public String | Returns: The identifier accounting for any quoting that need be applied.The identifier to be quoting-normalized. identifier)Allow normalizing of just the quoting aspect of identifiers. |
| ObjectNameNormalizer | back to summary |
|---|---|
| public ObjectNameNormalizer() | |
| getNamingStrategy | back to summary |
|---|---|
| protected abstract NamingStrategy getNamingStrategy() Get the current
| |
| isUseQuotedIdentifiersGlobally | back to summary |
|---|---|
| protected abstract boolean isUseQuotedIdentifiersGlobally() Retrieve whether the user requested that all database identifiers be quoted.
| |
| normalizeDatabaseIdentifier | back to summary |
|---|---|
| public String normalizeDatabaseIdentifier(final String explicitName, ObjectNameNormalizer. Performs the actual contract of normalizing a database name.
| |
| normalizeIdentifierQuoting | back to summary |
|---|---|
| public String normalizeIdentifierQuoting(String identifier) Allow normalizing of just the quoting aspect of identifiers. This is useful for schema and catalog in terms of initially making this public. This implements the rules set forth in JPA 2 (section "2.13 Naming of Database Objects") which states that the double-quote (") is the character which should be used to denote a quoted identifier. Here, we handle recognizing that and converting it to the more elegant bactick (`) approach used in Hibernate.. Additionally we account for applying what JPA2 terms | |
NamingStrategy in different situations.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The implicit nameThe naming strategy in effect strategy)Called when the user supplied no explicit name/identifier for the given database object. |
| public String | Returns: The strategy-handled name.The naming strategy in effect strategy, String The name)normalized explicit object name.Called when the user has supplied an explicit name for the database object. |
| determineImplicitName | back to summary |
|---|---|
| public String determineImplicitName(NamingStrategy strategy) Called when the user supplied no explicit name/identifier for the given database object.
| |
| handleExplicitName | back to summary |
|---|---|
| public String handleExplicitName(NamingStrategy strategy, String name) Called when the user has supplied an explicit name for the database object.
| |