public interface LikeOption
| Modifier and Type | Interface and Description |
|---|---|
static class |
LikeOption.Escape |
static class |
LikeOption.Infix |
static class |
LikeOption.None |
static class |
LikeOption.Prefix |
static class |
LikeOption.Suffix |
static interface |
LikeOption.Visitor |
| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_ESCAPE_CHAR
The default escape character
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(LikeOption.Visitor visitor)
Accepts a visitor.
|
static LikeOption |
escape()
Indicates that the option escapes the LIKE operand with the default escape character $.
|
static LikeOption |
escape(char escapeChar)
Indicates that the option escapes the LIKE operand with
escapeChar. |
static LikeOption |
infix()
Indicates that the option escape the LIKE operand with the default escape character $ and concatenates a wildcard at the start and the end.
|
static LikeOption |
infix(char escapeChar)
Indicates that the option escape the LIKE operand with
escapeChar and concatenates a
wildcard at the start and the end. |
static LikeOption |
none()
Indicates that the option does nothing.
|
static LikeOption |
prefix()
Indicates that the option escape the LIKE operand with the default escape character $ and concatenates a wildcard at the end.
|
static LikeOption |
prefix(char escapeChar)
Indicates that the option escape the LIKE operand with
escapeChar and concatenates a
wildcard at the end. |
static LikeOption |
suffix()
Indicates that the option escape the LIKE operand with the default escape character $ and concatenates a wildcard at the start.
|
static LikeOption |
suffix(char escapeChar)
Indicates that the option escape the LIKE operand with
escapeChar and concatenates a
wildcard at the start. |
static final char DEFAULT_ESCAPE_CHAR
static LikeOption none()
static LikeOption escape()
static LikeOption escape(char escapeChar)
escapeChar.escapeChar - the escape characterstatic LikeOption prefix()
For example, a%b_ will be converted to the a a$%b$_.
static LikeOption prefix(char escapeChar)
escapeChar and concatenates a
wildcard at the end.
For example, a%b_ is converted to the a a$%b$_.
escapeChar - the escape characterstatic LikeOption infix()
For example, a%b_ is converted to the a %a$%b$_%.
static LikeOption infix(char escapeChar)
escapeChar and concatenates a
wildcard at the start and the end.
For example, a%b_ is converted to the a %a$%b$_%.
escapeChar - the escape characterstatic LikeOption suffix()
For example, a%b_ is converted to the a %a$%b$_.
static LikeOption suffix(char escapeChar)
escapeChar and concatenates a
wildcard at the start.
For example, a%b_ is converted to the a %a$%b$_.
escapeChar - the escape charactervoid accept(LikeOption.Visitor visitor)
visitor - a visitor