Class AbstractManagedJpaOperations<PanacheQueryType>
java.lang.Object
io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQueryType,org.hibernate.Session>
io.quarkus.hibernate.orm.panache.common.runtime.AbstractManagedJpaOperations<PanacheQueryType>
public abstract class AbstractManagedJpaOperations<PanacheQueryType>
extends AbstractJpaOperations<PanacheQueryType,org.hibernate.Session>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleandeleteById(Class<?> entityClass, Object id) Optional<?> findByIdOptional(Class<?> entityClass, Object id) Optional<?> findByIdOptional(Class<?> entityClass, Object id, jakarta.persistence.LockModeType lockModeType) <T> List<T> voidflush()voidvoidjakarta.persistence.EntityManagergetEntityManager(Class<?> clazz) Returns theEntityManagerfor the givenentityorg.hibernate.SessiongetSession(Class<?> clazz) Returns theSessionfor the givenentitybooleanisPersistent(Object entity) voidvoidvoidvoidvoidMethods inherited from class io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations
addEntityTypesToPersistenceUnit, bindParameters, bindParameters, count, count, count, count, createPanacheQuery, delete, delete, delete, deleteAll, executeUpdate, executeUpdate, executeUpdate, executeUpdate, exists, exists, exists, exists, find, find, find, find, find, find, findAll, findAll, getRepositoryEntityClass, getSession, getSession, getTransactionManager, implementationInjectionMissing, list, list, list, list, list, list, list, listAll, listAll, paramCount, paramCount, setRepositoryClassesToEntityClasses, setRollbackOnly, stream, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update
-
Constructor Details
-
AbstractManagedJpaOperations
protected AbstractManagedJpaOperations()
-
-
Method Details
-
getEntityManager
Returns theEntityManagerfor the givenentity- Returns:
EntityManager
-
getSession
Description copied from class:AbstractJpaOperationsReturns theSessionfor the givenentity- Overrides:
getSessionin classAbstractJpaOperations<PanacheQueryType,org.hibernate.Session> - Returns:
Session
-
persist
-
persist
-
persist
-
persist
-
persist
-
delete
-
isPersistent
-
flush
public void flush() -
flush
-
flush
-
findByIds
-
findById
-
findById
-
findByIdOptional
-
findByIdOptional
-
deleteById
-