Class Escaper
java.lang.Object
org.springframework.data.relational.core.dialect.Escaper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable StringEscapes all special like characters (_,%) using the configured escape character.charReturns the escape character.static Escaperof(char escapeCharacter) Creates a new instance of this class with the given escape character.withRewriteFor(String... chars) Apply theEscaperto the givenchars.
-
Field Details
-
DEFAULT
-
-
Method Details
-
of
Creates a new instance of this class with the given escape character.- Parameters:
escapeCharacter- escape character- Returns:
- new instance of
Escaper. - Throws:
IllegalArgumentException- if the escape character is one of special characters ('_' and '%')
-
withRewriteFor
-
getEscapeCharacter
public char getEscapeCharacter()Returns the escape character.- Returns:
- the escape character to use.
-
escape
-