Class CommonPanacheQueryImpl<Entity>
- java.lang.Object
-
- io.quarkus.hibernate.reactive.panache.common.runtime.CommonPanacheQueryImpl<Entity>
-
public class CommonPanacheQueryImpl<Entity> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcountQuery
-
Constructor Summary
Constructors Constructor Description CommonPanacheQueryImpl(io.smallrye.mutiny.Uni<org.hibernate.reactive.mutiny.Mutiny.Session> em, String query, String orderBy, Object paramsArrayOrMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Long>count()voidfilter(String filterName, Map<String,Object> parameters)voidfirstPage()<T extends Entity>
io.smallrye.mutiny.Uni<T>firstResult()io.smallrye.mutiny.Uni<Boolean>hasNextPage()booleanhasPreviousPage()io.smallrye.mutiny.Uni<Void>lastPage()<T extends Entity>
io.smallrye.mutiny.Uni<List<T>>list()voidnextPage()Pagepage()voidpage(int pageIndex, int pageSize)voidpage(Page page)io.smallrye.mutiny.Uni<Integer>pageCount()voidpreviousPage()<T> CommonPanacheQueryImpl<T>project(Class<T> type)voidrange(int startIndex, int lastIndex)<T extends Entity>
io.smallrye.mutiny.Uni<T>singleResult()<T extends Entity>
io.smallrye.mutiny.Multi<T>stream()voidwithHint(String hintName, Object value)voidwithLock(javax.persistence.LockModeType lockModeType)
-
-
-
Field Detail
-
countQuery
protected String countQuery
-
-
Method Detail
-
project
public <T> CommonPanacheQueryImpl<T> project(Class<T> type)
-
page
public void page(Page page)
-
page
public void page(int pageIndex, int pageSize)
-
nextPage
public void nextPage()
-
previousPage
public void previousPage()
-
firstPage
public void firstPage()
-
lastPage
public io.smallrye.mutiny.Uni<Void> lastPage()
-
hasNextPage
public io.smallrye.mutiny.Uni<Boolean> hasNextPage()
-
hasPreviousPage
public boolean hasPreviousPage()
-
pageCount
public io.smallrye.mutiny.Uni<Integer> pageCount()
-
page
public Page page()
-
range
public void range(int startIndex, int lastIndex)
-
withLock
public void withLock(javax.persistence.LockModeType lockModeType)
-
count
public io.smallrye.mutiny.Uni<Long> count()
-
stream
public <T extends Entity> io.smallrye.mutiny.Multi<T> stream()
-
firstResult
public <T extends Entity> io.smallrye.mutiny.Uni<T> firstResult()
-
singleResult
public <T extends Entity> io.smallrye.mutiny.Uni<T> singleResult()
-
-