|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.criterion.MatchMode
Represents an strategy for matching strings using "like".
Example.enableLike(MatchMode)
,
Serialized FormField Summary | |
static MatchMode |
ANYWHERE
Match the pattern anywhere in the string |
static MatchMode |
END
Match the end of the string to the pattern |
static MatchMode |
EXACT
Match the entire string to the pattern |
static MatchMode |
START
Match the start of the string to the pattern |
Constructor Summary | |
protected |
MatchMode(String name)
|
Method Summary | |
abstract String |
toMatchString(String pattern)
convert the pattern, by appending/prepending "%" |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final MatchMode EXACT
public static final MatchMode START
public static final MatchMode END
public static final MatchMode ANYWHERE
Constructor Detail |
protected MatchMode(String name)
Method Detail |
public String toString()
public abstract String toMatchString(String pattern)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |