public interface IdentifierProcessing
SqlIdentifier
to SQL snippets or column
names.Modifier and Type | Interface and Description |
---|---|
static class |
IdentifierProcessing.LetterCasing
Encapsulates the three kinds of letter casing supported.
|
static class |
IdentifierProcessing.Quoting
A conversion from unquoted identifiers to quoted identifiers.
|
Modifier and Type | Field and Description |
---|---|
static IdentifierProcessing |
ANSI
An
IdentifierProcessing that can be used for databases adhering to the SQL standard which uses double
quotes (") for quoting and makes unquoted literals equivalent to upper case. |
static IdentifierProcessing |
NONE
An
IdentifierProcessing without applying transformations. |
Modifier and Type | Method and Description |
---|---|
static org.springframework.data.relational.core.sql.DefaultIdentifierProcessing |
create(IdentifierProcessing.Quoting quoting,
IdentifierProcessing.LetterCasing letterCasing)
Create a
IdentifierProcessing rule given IdentifierProcessing.Quoting and IdentifierProcessing.LetterCasing rules. |
String |
quote(String identifier)
|
String |
standardizeLetterCase(String identifier)
Standardizes the use of upper and lower case letters in an identifier in such a way that semantically the same
identifier results from the quoted and the unquoted version.
|
static final IdentifierProcessing ANSI
IdentifierProcessing
that can be used for databases adhering to the SQL standard which uses double
quotes (") for quoting and makes unquoted literals equivalent to upper case.static final IdentifierProcessing NONE
IdentifierProcessing
without applying transformations.static org.springframework.data.relational.core.sql.DefaultIdentifierProcessing create(IdentifierProcessing.Quoting quoting, IdentifierProcessing.LetterCasing letterCasing)
IdentifierProcessing
rule given IdentifierProcessing.Quoting
and IdentifierProcessing.LetterCasing
rules.quoting
- quoting rules.letterCasing
- IdentifierProcessing.LetterCasing
rules for identifier normalization.IdentifierProcessing
object.String quote(String identifier)
String
representing a bare name of an identifier to a String
with proper quoting
applied.identifier
- the name of an identifier. Must not be null.String standardizeLetterCase(String identifier)
IdentifierProcessing.LetterCasing.AS_IS
is recommended.identifier
- an identifier with arbitrary upper and lower cases. must not be null.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.