C - the contextpublic class EqualsIgnoreCasePredicate<C> extends AbstractPredicate<C>
WARNING: This functionality depends on your database engine. When using this, check that it behaves correctly
and verify that the generated SQL isn't suboptimal in regards to performance. See also the constructors in
PredicateSqlGenerator.
In MySQL, columns are case-insensitive by default, so the value in
PredicateSqlGenerator.useNoCaseCollationForCaseInsensitiveEquals
should be set to false for optimal performance.
In SQLite, columns are by default case-sensitive. Here, the above value should be set to true so that
the predicate SQL generator performs case-insensitive checks with COLLATE NOCASE. Note that by default this
will only work with ASCII characters, cf. SQLite's FAQ,
Case-insensitive matching of Unicode characters does not work.
H2 is by default case-sensitive but does not support the COLLATE NOCASE syntax. When connecting, you
can specify ignorecase=true in the connection URL.
| Constructor and Description |
|---|
EqualsIgnoreCasePredicate(Column<String,C> column,
String value,
boolean isNegated) |
| Modifier and Type | Method and Description |
|---|---|
Column<String,C> |
getColumn() |
String |
getValue() |
boolean |
isNegated() |
and, orCopyright © 2017–2024. All rights reserved.