Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » criterion » [javadoc | source]
org.hibernate.criterion
abstract public class: MatchMode [javadoc | source]
java.lang.Object
   org.hibernate.criterion.MatchMode

All Implemented Interfaces:
    Serializable

Represents an strategy for matching strings using "like".
Field Summary
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 
public static final  MatchMode END    Match the end of the string to the pattern 
public static final  MatchMode ANYWHERE    Match the pattern anywhere in the string 
Constructor:
 protected MatchMode(String name) 
Method from org.hibernate.criterion.MatchMode Summary:
toMatchString,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.criterion.MatchMode Detail:
 abstract public String toMatchString(String pattern)
    convert the pattern, by appending/prepending "%"
 public String toString()