Uses of Interface
st.orm.Match
Packages that use Match
Package
Description
Foundation of the data model: the mapping annotations and the record interfaces.
Java client API: templates, query builders and transactions.
-
Uses of Match in st.orm
Modifier and TypeClassDescriptionstatic final recordMatch.Anywhere<T extends Data>A word matches anywhere in the value:LOWER(column) LIKE LOWER('%word%').static final recordMatch.Exact<T extends Data>A word matches the whole value.static final recordMatch.Prefix<T extends Data>A word matches at the start of the value.static final recordMatch.WordStart<T extends Data>A word matches at the start of any word in the value: the value's start, or the text after a space or one of the punctuation characters that join or separate the words of a name, a hyphen, an apostrophe, an opening parenthesis, a slash, a colon, a period or a comma, somariematches "Anne-Marie" andbrien"O'Brien".Modifier and TypeMethodDescriptionReturns a match of a word anywhere in the value, the default ofsearch.Returns aanywherematch that takes the words in its form once one reaches the given length, and the whole input as the start of the value, ignoring case, before: a longer length keeps a column whose matches rank low, such as one of a related table, in its fallback until a word is long enough to match few rows, and0takes every word in its form.Returns a match of a word as the whole value, with the column bare and the word lowered, which an ordinary index over a column that compares case-insensitively serves.Returns aexactmatch that takes words of at least the given length.Match.exactIgnoreCase(Navigable<T, String> path) Returns a match of a word as the whole value, ignoring case: the column lowered as well as the word, on any column, which an index overLOWER(column)serves, the index of a match anywhere or at a word start included.Match.exactIgnoreCase(Navigable<T, String> path, int minLength) Returns aexactIgnoreCasematch that takes words of at least the given length.Match.Anywhere.fallback()Returns the value of thefallbackrecord component.Match.Exact.fallback()Returns the value of thefallbackrecord component.Match.fallback()Returns how the column matches the whole input, its words joined by one space, while no word reaches the match'sminLength(), ornullwhere the column then takes no part.Match.Prefix.fallback()Returns the value of thefallbackrecord component.Match.WordStart.fallback()Returns the value of thefallbackrecord component.Returns a match of a word as a prefix of the value, with the column bare and the word lowered, which an ordinary index over a column that compares case-insensitively serves.Returns aprefixmatch that takes words of at least the given length.Match.prefixIgnoreCase(Navigable<T, String> path) Returns a match of a word as a prefix of the value, ignoring case: the column lowered as well as the word, on any column, which an index overLOWER(column)serves, the index of a match anywhere or at a word start included.Match.prefixIgnoreCase(Navigable<T, String> path, int minLength) Returns aprefixIgnoreCasematch that takes words of at least the given length.Match.withFallback(BiFunction<? super Navigable<T, String>, Integer, ? extends Match<T>> form) Returns this match with a fallback in another form on the same column, such aswordStart(Owner_.lastName).withFallback(Match::wordStart), which matches a short input at every word start.Match.withFallback(Match<T> fallback) Returns this match with a fallback on any column of the row, such as aprefixmatch on a stored lowered column.Match.withoutFallback()Returns this match without a fallback: the column takes no part in the statement until a word reaches itsminLength(), its related table and a semi-join declared for it included, so a column of a related table whose matches rank low is not read for a short input.Returns a match of a word at the start of any word in the value, the default ofsuggest: the value's start, or the text after a space or a punctuation character that joins or separates words.Returns awordStartmatch that takes the words in its form once one reaches the given length, and the whole input as the start of the value, ignoring case, before: a longer length keeps a column whose matches rank low, such as one of a related table, in its fallback until a word is long enough to match few rows, and0takes every word in its form.Modifier and TypeMethodDescriptionMatch.withFallback(Match<T> fallback) Returns this match with a fallback on any column of the row, such as aprefixmatch on a stored lowered column.Modifier and TypeMethodDescriptionMatch.withFallback(BiFunction<? super Navigable<T, String>, Integer, ? extends Match<T>> form) Returns this match with a fallback in another form on the same column, such aswordStart(Owner_.lastName).withFallback(Match::wordStart), which matches a short input at every word start.ModifierConstructorDescriptionCreates an instance of aAnywhererecord class.Creates an instance of aExactrecord class.Creates an instance of aPrefixrecord class.Creates an instance of aWordStartrecord class. -
Uses of Match in st.orm.template
Methods in st.orm.template with parameters of type MatchModifier and TypeMethodDescriptionfinal PredicateBuilder<T, R, ID> WhereBuilder.search(String input, Set<String> ignore, Match<? extends T> field, Match<? extends T>... more) Matches the words of a search input against text columns, each in its stated match form, asWhereBuilder.search(String, Match, Match[])does, ignoring the given words as well, asWhereBuilder.search(String, Set, Navigable, Navigable[])ignores them.final PredicateBuilder<T, R, ID> Matches the words of a search input against text columns, each in its stated match form, asWhereBuilder.search(String, Navigable, Navigable[])matches them anywhere in the value.final PredicateBuilder<T, R, ID> WhereBuilder.suggest(String input, Set<String> ignore, Match<? extends T> field, Match<? extends T>... more) Matches the words of a search box that queries as the user types against text columns, each in its stated match form, asWhereBuilder.suggest(String, Match, Match[])does, ignoring the given words as well, asWhereBuilder.suggest(String, Set, Navigable, Navigable[])ignores them.final PredicateBuilder<T, R, ID> Matches the words of a search box that queries as the user types against text columns, each in its stated match form, asWhereBuilder.suggest(String, Navigable, Navigable[])matches them at the start of a word.