org.hibernate.criterion
Class MatchMode
java.lang.Object
org.hibernate.criterion.MatchMode
- Serializable
public abstract class MatchMode
extends java.lang.Object
implements Serializable
Represents an strategy for matching strings using "like".
abstract String | toMatchString(String pattern) - convert the pattern, by appending/prepending "%"
|
String | toString()
|
ANYWHERE
public static final MatchMode ANYWHERE
Match the pattern anywhere in the string
END
public static final MatchMode END
Match the end of the string to the pattern
EXACT
public static final MatchMode EXACT
Match the entire string to the pattern
START
public static final MatchMode START
Match the start of the string to the pattern
MatchMode
protected MatchMode(String name)
toMatchString
public abstract String toMatchString(String pattern)
convert the pattern, by appending/prepending "%"
toString
public String toString()