Interface PanacheManagedBlockingRepositoryOperations<Entity,Id>
- All Superinterfaces:
PanacheManagedRepositoryOperations<Entity,org.hibernate.Session, Void, Boolean, Id>
- All Known Subinterfaces:
PanacheManagedBlockingRepository<Entity>,PanacheManagedBlockingRepositoryBase<Entity,,Id> PanacheRepository<Entity>,PanacheRepository.Managed<Entity,Id>
public interface PanacheManagedBlockingRepositoryOperations<Entity,Id>
extends PanacheManagedRepositoryOperations<Entity,org.hibernate.Session,Void,Boolean,Id>
-
Method Summary
Modifier and TypeMethodDescriptiondefault VoidDelete the given entity from the database, if it is already persisted.default Voidflush()Flushes all pending changes to the database using the Session for theentity class. default org.hibernate.SessionReturns theSessionfor theentity class for extra operations (eg. default BooleanisPersistent(Entity entity) Returns true if the given entity is persistent in the database.default VoidPersist the given entity in the database, if not already persisted.default VoidPersist all given entities.default VoidPersist all given entities.default VoidPersist all given entities.default VoidpersistAndFlush(Entity entity) Persist the given entity in the database, if not already persisted.
-
Method Details
-
getSession
default org.hibernate.Session getSession()Returns theSessionfor theentity class for extra operations (eg. CriteriaQueries) - Specified by:
getSessionin interfacePanacheManagedRepositoryOperations<Entity,org.hibernate.Session, Void, Boolean, Id> - Returns:
- the
Sessionfor theentity class
-
persist
Persist the given entity in the database, if not already persisted. -
persistAndFlush
Persist the given entity in the database, if not already persisted. Then flushes all pending changes to the database.- Specified by:
persistAndFlushin interfacePanacheManagedRepositoryOperations<Entity,org.hibernate.Session, Void, Boolean, Id> - Parameters:
entity- the entity to persist.- See Also:
-
delete
Delete the given entity from the database, if it is already persisted. -
isPersistent
Returns true if the given entity is persistent in the database. If yes, all modifications to its persistent fields will be automatically committed to the database at transaction commit time.- Specified by:
isPersistentin interfacePanacheManagedRepositoryOperations<Entity,org.hibernate.Session, Void, Boolean, Id> - Parameters:
entity- the entity to check- Returns:
- true if the entity is persistent in the database.
-
flush
Flushes all pending changes to the database using the Session for theentity class. -
persist
Persist all given entities. -
persist
Persist all given entities. -
persist
Persist all given entities.
-