Top Description Fields Constructors Methods
org.hibernate.criterion

public abstract Class MatchMode

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.HashMap, .Map

Represents an strategy for matching strings using "like".
Author
Gavin King
See Also
Example#enableLike(MatchMode)

Field Summary

Modifier and TypeField and Description
public static final MatchMode
ANYWHERE

Match the pattern anywhere in the string

public static final MatchMode
END

Match the end of the string to the pattern

public static final MatchMode
EXACT

Match the entire string to the pattern

private static final Map<K, V>
private final String
public static final MatchMode
START

Match the start of the string to the pattern

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private Object
public abstract String
toMatchString(String pattern)

convert the pattern, by appending/prepending "%"

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ANYWHEREback to summary
public static final MatchMode ANYWHERE

Match the pattern anywhere in the string

ENDback to summary
public static final MatchMode END

Match the end of the string to the pattern

EXACTback to summary
public static final MatchMode EXACT

Match the entire string to the pattern

INSTANCESback to summary
private static final Map<K, V> INSTANCES
nameback to summary
private final String name
STARTback to summary
public static final MatchMode START

Match the start of the string to the pattern

Constructor Detail

MatchModeback to summary
protected MatchMode(String name)

Method Detail

readResolveback to summary
private Object readResolve()
toMatchStringback to summary
public abstract String toMatchString(String pattern)

convert the pattern, by appending/prepending "%"

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.