public abstract class

MatchMode

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.criterion.MatchMode

Class Overview

Represents an strategy for matching strings using "like".

Summary

Fields
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
public static final MatchMode START Match the start of the string to the pattern
Protected Constructors
MatchMode(String name)
Public Methods
abstract String toMatchString(String pattern)
convert the pattern, by appending/prepending "%"
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

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

public static final MatchMode START

Match the start of the string to the pattern

Protected Constructors

protected MatchMode (String name)

Public Methods

public abstract String toMatchString (String pattern)

convert the pattern, by appending/prepending "%"

public String toString ()