Interface PanacheManagedReactiveEntity

All Superinterfaces:
PanacheEntityMarker, PanacheManagedEntityOperations<io.smallrye.mutiny.Uni<Void>,io.smallrye.mutiny.Uni<Boolean>>
All Known Subinterfaces:
PanacheEntity.Reactive
All Known Implementing Classes:
PanacheEntityMarker.PanacheManagedReactiveEntityOperationsImpl

public interface PanacheManagedReactiveEntity extends PanacheManagedEntityOperations<io.smallrye.mutiny.Uni<Void>,io.smallrye.mutiny.Uni<Boolean>>
  • Method Details

    • persist

      default io.smallrye.mutiny.Uni<Void> persist()
      Persist this entity in the database, if not already persisted. This will set your ID field if it is not already set.
      Specified by:
      persist in interface PanacheManagedEntityOperations<io.smallrye.mutiny.Uni<Void>,io.smallrye.mutiny.Uni<Boolean>>
      See Also:
      • isPersistent()
      • invalid reference
        #persist(Iterable)
      • invalid reference
        #persist(Stream)
      • invalid reference
        #persist(Object, Object...)
    • persistAndFlush

      default io.smallrye.mutiny.Uni<Void> 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.
      Specified by:
      persistAndFlush in interface PanacheManagedEntityOperations<io.smallrye.mutiny.Uni<Void>,io.smallrye.mutiny.Uni<Boolean>>
      See Also:
      • isPersistent()
      • invalid reference
        #persist(Iterable)
      • invalid reference
        #persist(Stream)
      • invalid reference
        #persist(Object, Object...)
    • delete

      default io.smallrye.mutiny.Uni<Void> delete()
      Delete this entity from the database, if it is already persisted.
      Specified by:
      delete in interface PanacheManagedEntityOperations<io.smallrye.mutiny.Uni<Void>,io.smallrye.mutiny.Uni<Boolean>>
      See Also:
      • isPersistent()
      • invalid reference
        #delete(String, Object...)
      • invalid reference
        #delete(String, Map)
      • invalid reference
        #delete(String, Parameters)
      • invalid reference
        #deleteAll()
    • isPersistent

      default io.smallrye.mutiny.Uni<Boolean> 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.
      Specified by:
      isPersistent in interface PanacheManagedEntityOperations<io.smallrye.mutiny.Uni<Void>,io.smallrye.mutiny.Uni<Boolean>>
      Returns:
      true if this entity is persistent in the database.