001package io.ebean;
002
003/**
004 * Used to specify the type of like matching used.
005 */
006public enum LikeType {
007
008  /**
009   * You need to put in your own wildcards - no escaping is performed.
010   */
011  RAW,
012
013  /**
014   * The % wildcard is added to the end of the search word and search word is escaped.
015   */
016  STARTS_WITH,
017
018  /**
019   * The % wildcard is added to the beginning of the search word and search word is escaped.
020   */
021  ENDS_WITH,
022
023  /**
024   * The % wildcard is added to the beginning and end of the search word and search word is escaped.
025   */
026  CONTAINS,
027
028  /**
029   * Uses equal to rather than a LIKE with wildcards.
030   * <p>
031   * This is mainly here to be available for use with ExampleExpression.
032   * </p>
033   */
034  EQUAL_TO
035}