Class AbstractJpaOperations<PanacheQueryType>
java.lang.Object
io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQueryType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends org.hibernate.query.CommonQueryContract>
TbindParameters(T query, Object[] params) static <T extends org.hibernate.query.CommonQueryContract>
TbindParameters(T query, Map<String, Object> params) longlonglonglongprotected abstract PanacheQueryTypecreatePanacheQuery(org.hibernate.Session session, String query, String originalQuery, String orderBy, Object paramsArrayOrMap) longlonglongvoidlongbooleandeleteById(Class<?> entityClass, Object id) intexecuteUpdate(Class<?> entityClass, String panacheQuery, Object... params) intintexecuteUpdate(String query, Object... params) Execute update on default persistence unitintexecuteUpdate(String query, Map<String, Object> params) Execute update on default persistence unitbooleanbooleanbooleanbooleanfind(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters params) find(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, Object... params) find(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, Map<String, Object> params) Optional<?> findByIdOptional(Class<?> entityClass, Object id) Optional<?> findByIdOptional(Class<?> entityClass, Object id, jakarta.persistence.LockModeType lockModeType) List<?> voidflush()voidvoidjakarta.persistence.EntityManagergetEntityManager(Class<?> clazz) Returns theEntityManagerfor the givenentityorg.hibernate.Sessionorg.hibernate.SessiongetSession(Class<?> clazz) Returns theSessionfor the givenentityorg.hibernate.SessiongetSession(String persistentUnitName) static jakarta.transaction.TransactionManagerstatic IllegalStateExceptionbooleanisPersistent(Object entity) List<?> List<?> list(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters params) List<?> list(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, Object... params) List<?> list(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, Map<String, Object> params) List<?> List<?> abstract List<?> list(PanacheQueryType query) List<?> List<?> intparamCount(Object[] params) intparamCount(Map<String, Object> params) voidvoidvoidvoidvoidstatic voidsetEntityToPersistenceUnit(Map<String, String> map, boolean incomplete) static voidStream<?> Stream<?> stream(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters params) Stream<?> stream(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, Object... params) Stream<?> stream(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, Map<String, Object> params) Stream<?> Stream<?> abstract Stream<?> stream(PanacheQueryType query) Stream<?> Stream<?> intintint
-
Constructor Details
-
AbstractJpaOperations
public AbstractJpaOperations()
-
-
Method Details
-
setEntityToPersistenceUnit
-
createPanacheQuery
protected abstract PanacheQueryType createPanacheQuery(org.hibernate.Session session, String query, String originalQuery, String orderBy, Object paramsArrayOrMap) -
list
-
stream
-
getEntityManager
Returns theEntityManagerfor the givenentity- Returns:
EntityManager
-
getSession
Returns theSessionfor the givenentity- Returns:
Session
-
getSession
-
getSession
public org.hibernate.Session getSession() -
persist
-
persist
-
persist
-
persist
-
persist
-
delete
-
isPersistent
-
flush
public void flush() -
flush
-
flush
-
getTransactionManager
public static jakarta.transaction.TransactionManager getTransactionManager() -
bindParameters
public static <T extends org.hibernate.query.CommonQueryContract> T bindParameters(T query, Object[] params) -
bindParameters
-
paramCount
-
paramCount
-
findById
-
findById
-
findByIdOptional
-
findByIdOptional
-
findByIds
-
find
-
find
public PanacheQueryType find(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, Object... params) -
find
-
find
-
find
public PanacheQueryType find(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Parameters params) -
find
public PanacheQueryType find(Class<?> entityClass, String panacheQuery, io.quarkus.panache.common.Sort sort, io.quarkus.panache.common.Parameters params) -
list
-
list
-
list
-
list
-
list
-
list
-
stream
-
stream
-
stream
-
stream
-
stream
-
stream
-
findAll
-
findAll
-
listAll
-
listAll
-
streamAll
-
streamAll
-
count
-
count
-
count
-
count
-
exists
-
exists
-
exists
-
exists
-
deleteAll
-
deleteById
-
delete
-
delete
-
delete
-
implementationInjectionMissing
-
executeUpdate
Execute update on default persistence unit -
executeUpdate
Execute update on default persistence unit -
executeUpdate
-
executeUpdate
-
update
-
update
-
update
-
setRollbackOnly
public static void setRollbackOnly()
-