クラス QueryExecutionConverters

java.lang.ObjectSE
org.springframework.data.repository.util.QueryExecutionConverters

public abstract class QueryExecutionConverters extends ObjectSE
リポジトリメソッドの実行を、クラスパスで利用できる可能性のあるさまざまなラッパー型にラップする可能性のあるコンバーター。現在サポートされているもの:
  • java.util.concurrent.Future
  • java.util.concurrent.CompletableFuture
  • org.springframework.util.concurrent.ListenableFuture<
  • javaslang.collection.Seqjavaslang.collection.Mapjavaslang.collection.Set - 1.13 現在
  • io.vavr.collection.Seqio.vavr.collection.Mapio.vavr.collection.Set - 2.0 現在
  • ReactiveWrappers でサポートされているリアクティブラッパー -2.0 以降
導入:
1.8
作成者:
Oliver Gierke, Mark Paluch, Christoph Strobl, Maciek Opa ł a, Jens Schauder
関連事項:
  • メソッドの詳細

    • supports

      public static boolean supports(ClassSE<?> type)
      指定された型がサポートされているラッパー型であるかどうかを返します。
      パラメーター:
      type - null であってはなりません。
      戻り値:
    • supportsUnwrapping

      public static boolean supportsUnwrapping(ClassSE<?> type)
      指定されたラッパー型がアンラップをサポートするかどうかを返します。
      パラメーター:
      type - null であってはなりません。
      戻り値:
    • isSingleValue

      public static boolean isSingleValue(ClassSE<?> type)
    • getAllowedPageableTypes

      public static SetSE<ClassSE<?>> getAllowedPageableTypes()
      ページ付けクエリメソッドでサポートされている型を返します。たとえば、カスタムコレクション型が含まれます。Vavr。
      戻り値:
    • registerConvertersIn

      public static void registerConvertersIn(ConfigurableConversionService conversionService)
      クラスパスで見つかったラッパー型のコンバーターを登録します。
      パラメーター:
      conversionService - null であってはなりません。
    • unwrap

      @Nullable public static ObjectSE unwrap(@Nullable ObjectSE source)
      実行時に検出された現在サポートされているラッパー型の 1 つである場合は、指定されたソース値をアンラップします。
      パラメーター:
      source - null でもかまいません。
      戻り値:
    • unwrapWrapperTypes

      public static TypeInformation<?> unwrapWrapperTypes(TypeInformation<?> type, TypeInformation<?> reference)
      指定された TypeInformation から既知のラッパー型を再帰的にアンラップしますが、指定された参照型で中止されます。
      パラメーター:
      type - null であってはなりません。
      reference - null であってはなりません。
      戻り値:
      null になることはありません。
    • unwrapWrapperTypes

      public static TypeInformation<?> unwrapWrapperTypes(TypeInformation<?> type)
      指定された TypeInformation から既知のラッパー型を再帰的にアンラップします。
      パラメーター:
      type - null であってはなりません。
      戻り値:
      null になることはありません。
    • getExecutionAdapter

      @Nullable public static QueryExecutionConverters.ExecutionAdapter getExecutionAdapter(ClassSE<?> returnType)
      指定された戻り値の型に使用される QueryExecutionConverters.ExecutionAdapter を返します。
      パラメーター:
      returnType - null であってはなりません。
      戻り値:
      null でもかまいません。