列挙型クラス Part.Type

java.lang.ObjectSE
java.lang.EnumSE<Part.Type>
org.springframework.data.repository.query.parser.Part.Type
実装されたすべてのインターフェース:
SerializableSEComparableSE<Part.Type>ConstableSE
含まれているクラス:
Part

public static enum Part.Type extends EnumSE<Part.Type>
メソッド名パーツの型。さまざまな方法でクエリパーツを作成するために使用されます。
作成者:
Oliver Gierke, Thomas Darimont, Michael Cramer
  • 列挙型定数の詳細

    • BETWEEN

      public static final Part.Type BETWEEN
    • IS_NOT_NULL

      public static final Part.Type IS_NOT_NULL
    • IS_NULL

      public static final Part.Type IS_NULL
    • LESS_THAN

      public static final Part.Type LESS_THAN
    • LESS_THAN_EQUAL

      public static final Part.Type LESS_THAN_EQUAL
    • GREATER_THAN

      public static final Part.Type GREATER_THAN
    • GREATER_THAN_EQUAL

      public static final Part.Type GREATER_THAN_EQUAL
    • BEFORE

      public static final Part.Type BEFORE
    • AFTER

      public static final Part.Type AFTER
    • NOT_LIKE

      public static final Part.Type NOT_LIKE
    • LIKE

      public static final Part.Type LIKE
    • STARTING_WITH

      public static final Part.Type STARTING_WITH
    • ENDING_WITH

      public static final Part.Type ENDING_WITH
    • IS_NOT_EMPTY

      public static final Part.Type IS_NOT_EMPTY
    • IS_EMPTY

      public static final Part.Type IS_EMPTY
    • NOT_CONTAINING

      public static final Part.Type NOT_CONTAINING
    • CONTAINING

      public static final Part.Type CONTAINING
    • NOT_IN

      public static final Part.Type NOT_IN
    • IN

      public static final Part.Type IN
    • NEAR

      public static final Part.Type NEAR
    • WITHIN

      public static final Part.Type WITHIN
    • REGEX

      public static final Part.Type REGEX
    • EXISTS

      public static final Part.Type EXISTS
    • TRUE

      public static final Part.Type TRUE
    • FALSE

      public static final Part.Type FALSE
    • NEGATING_SIMPLE_PROPERTY

      public static final Part.Type NEGATING_SIMPLE_PROPERTY
    • SIMPLE_PROPERTY

      public static final Part.Type SIMPLE_PROPERTY
  • フィールドの詳細

  • メソッドの詳細

    • values

      public static Part.Type[] values()
      この列挙型クラスの定数を含む配列を、宣言されている順序で返します。
      戻り値:
      この列挙型クラスの定数を宣言された順序で含む配列
    • valueOf

      public static Part.Type valueOf(StringSE name)
      指定された名前でこのクラスの列挙型定数を返します。文字列は、このクラスで列挙型定数を宣言するために使用される識別子と正確に一致する必要があります。(余分な空白文字は許可されません。)
      パラメーター:
      name - 返される列挙定数の名前。
      戻り値:
      指定された名前の列挙定数
      例外:
      IllegalArgumentExceptionSE - この列挙型クラスに指定された名前の定数がない場合
      NullPointerExceptionSE - 引数が null の場合
    • fromProperty

      public static Part.Type fromProperty(StringSE rawProperty)
      指定された rawpropertyPath の PartPart.Type を返します。これは、たとえばを検出しようとします。特別なクエリの作成をトリガーする生の propertyPath に含まれるキーワード。デフォルトで SIMPLE_PROPERTY を返します。
      パラメーター:
      rawProperty -
      戻り値:
    • getKeywords

      public CollectionSE<StringSE> getKeywords()
      現在の Part.Type でサポートされているすべてのキーワードを返します。
      戻り値:
    • supports

      protected boolean supports(StringSE property)
      型が指定された raw プロパティをサポートするかどうかを返します。デフォルトの実装では、プロパティが登録されたキーワードで終わるかどうかがチェックされます。プロパティがそのまま有効なフィールドである場合、キーワードはサポートされません。
      パラメーター:
      property -
      戻り値:
    • getNumberOfArguments

      public int getNumberOfArguments()
      propertyPath がバインドする引数の数を返します。デフォルトでは、これはちょうど 1 つの引数です。
      戻り値:
    • extractProperty

      public StringSE extractProperty(StringSE part)
      指定されたパーツからバインドされる実際の propertyPath を抽出するためのコールバックメソッド。可能な場合は、パーツの末尾からキーワードを削除します。
      パラメーター:
      part -
      戻り値:
    • toString

      public StringSE toString()
      オーバーライド:
      クラス EnumSE<Part.Type>toString