Interface PanacheManagedEntityOperations<Completion,Confirmation>
- All Superinterfaces:
PanacheEntityMarker
- All Known Subinterfaces:
PanacheEntity.Managed,PanacheEntity.Reactive,PanacheManagedBlockingEntity,PanacheManagedReactiveEntity
- All Known Implementing Classes:
PanacheEntity,PanacheEntityBase,PanacheEntityMarker.PanacheManagedBlockingEntityOperationsImpl,PanacheEntityMarker.PanacheManagedReactiveEntityOperationsImpl
public interface PanacheManagedEntityOperations<Completion,Confirmation>
extends PanacheEntityMarker
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.hibernate.panache.PanacheEntityMarker
PanacheEntityMarker.PanacheManagedBlockingEntityOperationsImpl, PanacheEntityMarker.PanacheManagedReactiveEntityOperationsImpl, PanacheEntityMarker.PanacheStatelessBlockingEntityOperationsImpl, PanacheEntityMarker.PanacheStatelessReactiveEntityOperationsImpl -
Method Summary
Modifier and TypeMethodDescriptiondelete()Delete this entity from the database, if it is already persisted.Returns true if this entity is persistent in the database.persist()Persist this entity in the database, if not already persisted.Persist this entity in the database, if not already persisted.Methods inherited from interface io.quarkus.hibernate.panache.PanacheEntityMarker
managedBlocking, managedReactive, statelessBlocking, statelessReactive
-
Method Details
-
persist
Completion persist()Persist this entity in the database, if not already persisted. This will set your ID field if it is not already set.- See Also:
-
persistAndFlush
Completion persistAndFlush()Persist this entity in the database, if not already persisted. This will set your ID field if it is not already set. Then flushes all pending changes to the database.- See Also:
-
delete
Completion delete()Delete this entity from the database, if it is already persisted.- See Also:
-
isPersistent
Confirmation isPersistent()Returns true if this 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.- Returns:
- true if this entity is persistent in the database.
-