public class ChangeLetterCaseNameMapping extends java.lang.Object implements NameMapping
NameMapping
that changes the letter-case
(lower-case or upper-case) of the schema, table and column names. The
information how the database stores the identifiers are available normally
from the stores*Identifiers
function of the
DatabaseMetaData
Modifier and Type | Class and Description |
---|---|
static class |
ChangeLetterCaseNameMapping.LetterCase
The target character-case (lower or upper) that the
ChangeLetterCaseNameMapping should use to convert the identifiers
names. |
Constructor and Description |
---|
ChangeLetterCaseNameMapping(ChangeLetterCaseNameMapping.LetterCase targetCase,
java.util.Locale locale)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getColumnOverride(SchemaAndTable key,
java.lang.String column) |
java.util.Optional<SchemaAndTable> |
getOverride(SchemaAndTable key) |
public ChangeLetterCaseNameMapping(ChangeLetterCaseNameMapping.LetterCase targetCase, java.util.Locale locale)
targetCase
- The characters of all table and column names will be converted to the specified letter-case.locale
- The locale that is used for the letter-case conversion.public java.util.Optional<java.lang.String> getColumnOverride(SchemaAndTable key, java.lang.String column)
getColumnOverride
in interface NameMapping
public java.util.Optional<SchemaAndTable> getOverride(SchemaAndTable key)
getOverride
in interface NameMapping
Copyright © 2007–2021 Querydsl. All rights reserved.