public static interface FluentQuery.FetchableFluentQuery<T> extends FluentQuery<T>
FluentQuery
。FluentQuery.FetchableFluentQuery<T>, FluentQuery.ReactiveFluentQuery<T>
修飾子と型 | メソッドと説明 |
---|---|
ListSE<T> | all() 一致するすべての要素を取得します。 |
<R> FluentQuery.FetchableFluentQuery<R> | as(ClassSE<R> resultType) 結果をマップするターゲット型を定義します。 |
long | count() 一致する要素の数を取得します。 |
boolean | exists() 一致する要素の存在を確認します。 |
default OptionalSE<T> | first() 最初の結果を取得するか、結果を取得しない。 |
T | firstValue() 最初の結果を取得するか、結果を取得しない。 |
default OptionalSE<T> | one() 正確にゼロまたは 1 つの結果を取得します。 |
T | oneValue() 正確にゼロまたは 1 つの結果を取得します。 |
Page<T> | page(Pageable pageable) Pageable に一致する要素のページを取得します。 |
FluentQuery.FetchableFluentQuery<T> | project(CollectionSE<StringSE> properties) クエリに含めるプロパティまたはプロパティパスを定義します。 |
default FluentQuery.FetchableFluentQuery<T> | project(StringSE... properties) クエリに含めるプロパティまたはプロパティパスを定義します。 |
FluentQuery.FetchableFluentQuery<T> | sortBy(Sort sort) ソート順を定義します。 |
StreamSE<T> | stream() 一致するすべての要素をストリーミングします。 |
FluentQuery.FetchableFluentQuery<T> sortBy(Sort sort)
FluentQuery
FluentQuery<T>
の sortBy
sort
- null
であってはなりません。FluentQuery
の新しいインスタンス。<R> FluentQuery.FetchableFluentQuery<R> as(ClassSE<R> resultType)
FluentQuery
FluentQuery<T>
の as
R
- 結果タイプ。resultType
- null
であってはなりません。FluentQuery
の新しいインスタンス。default FluentQuery.FetchableFluentQuery<T> project(StringSE... properties)
FluentQuery
FluentQuery<T>
の project
properties
- null
であってはなりません。FluentQuery
の新しいインスタンス。FluentQuery.FetchableFluentQuery<T> project(CollectionSE<StringSE> properties)
FluentQuery
FluentQuery<T>
の project
properties
- null
であってはなりません。FluentQuery
の新しいインスタンス。default OptionalSE<T> one()
Optional.empty()
SE。IncorrectResultSizeDataAccessException
- 複数の一致が見つかった場合。@Nullable T oneValue()
IncorrectResultSizeDataAccessException
- 複数の一致が見つかった場合。default OptionalSE<T> first()
Optional.empty()
SE。Page<T> page(Pageable pageable)
Pageable
に一致する要素のページを取得します。pageable
- null
であってはなりません。指定された Pageable
は、Sort
オブジェクトが Sort.isUnsorted()
でない場合、以前に指定された sort
をオーバーライドします。long count()
boolean exists()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.