StoredAt
- public class StoredAt implements EntityFilterInterface
Fields
PATTERN
likeLocation
location
pattern_matching
- boolean pattern_matching
Constructors
StoredAt
Methods
apply
- public void apply(QueryInterface query)
convertLikeLocation
- static String convertLikeLocation(String location)
Does some special character escaping for LIKE query.
The following rules should take place in the future (for now, only a subset is implemented correctly):
* -> * (No special meaning in SQL, even numbers of are ignored.)
-> %% (Wildcard, to be converted to a more complicated regex without / later. Exception: at the beginning of a search expression, convert to %.)
** -> % (Wildcard, also *, **, … -> %)
_ -> _ (Prevent special meaning in SQL)
% -> % (Prevent special meaning in SQL)
Heading / is removed
- Parameters:
String – location The String to be converted.
- Returns:
The converted String.
getCacheKey
requiresPatternMatching
toElement
- public Element toElement()