Class CommonPanacheQueryImpl<Entity>
java.lang.Object
io.quarkus.mongodb.panache.common.runtime.CommonPanacheQueryImpl<Entity>
-
Constructor Summary
ConstructorDescriptionCommonPanacheQueryImpl
(com.mongodb.client.MongoCollection<? extends Entity> collection, com.mongodb.client.ClientSession session, org.bson.conversions.Bson mongoQuery, org.bson.conversions.Bson sort) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
<T extends Entity>
CommonPanacheQueryImpl<T><T extends Entity>
Tboolean
boolean
<T extends Entity>
CommonPanacheQueryImpl<T>lastPage()
list()
<T extends Entity>
CommonPanacheQueryImpl<T>nextPage()
page()
<T extends Entity>
CommonPanacheQueryImpl<T>page
(int pageIndex, int pageSize) <T extends Entity>
CommonPanacheQueryImpl<T>int
<T extends Entity>
CommonPanacheQueryImpl<T><T> CommonPanacheQueryImpl<T>
<T extends Entity>
CommonPanacheQueryImpl<T>range
(int startIndex, int lastIndex) <T extends Entity>
Tstream()
<T extends Entity>
CommonPanacheQueryImpl<T>withBatchSize
(int batchSize) <T extends Entity>
CommonPanacheQueryImpl<T>withCollation
(com.mongodb.client.model.Collation collation) <T extends Entity>
CommonPanacheQueryImpl<T>withReadPreference
(com.mongodb.ReadPreference readPreference)
-
Constructor Details
-
CommonPanacheQueryImpl
public CommonPanacheQueryImpl(com.mongodb.client.MongoCollection<? extends Entity> collection, com.mongodb.client.ClientSession session, org.bson.conversions.Bson mongoQuery, org.bson.conversions.Bson sort)
-
-
Method Details
-
project
-
page
-
page
-
nextPage
-
previousPage
-
firstPage
-
lastPage
-
hasNextPage
public boolean hasNextPage() -
hasPreviousPage
public boolean hasPreviousPage() -
pageCount
public int pageCount() -
page
-
range
-
withCollation
public <T extends Entity> CommonPanacheQueryImpl<T> withCollation(com.mongodb.client.model.Collation collation) -
withReadPreference
public <T extends Entity> CommonPanacheQueryImpl<T> withReadPreference(com.mongodb.ReadPreference readPreference) -
withBatchSize
-
count
public long count() -
list
-
stream
-
firstResult
-
firstResultOptional
-
singleResult
-
singleResultOptional
-