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
  • 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:
      • isPersistent()
      • invalid reference
        #persist(Iterable)
      • invalid reference
        #persist(Stream)
      • invalid reference
        #persist(Object, Object...)
    • 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:
      • isPersistent()
      • invalid reference
        #persist(Iterable)
      • invalid reference
        #persist(Stream)
      • invalid reference
        #persist(Object, Object...)
    • delete

      Completion delete()
      Delete this entity from the database, if it is already persisted.
      See Also:
      • isPersistent()
      • invalid reference
        #delete(String, Object...)
      • invalid reference
        #delete(String, Map)
      • invalid reference
        #delete(String, Parameters)
      • invalid reference
        #deleteAll()
    • 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.