Interface PanacheManagedBlockingEntity

All Superinterfaces:
PanacheEntityMarker, PanacheManagedEntityOperations<Void,Boolean>
All Known Subinterfaces:
PanacheEntity.Managed
All Known Implementing Classes:
PanacheEntity, PanacheEntityBase, PanacheEntityMarker.PanacheManagedBlockingEntityOperationsImpl

public interface PanacheManagedBlockingEntity extends PanacheManagedEntityOperations<Void,Boolean>
  • Method Details

    • persist

      default 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<Void,Boolean>
      See Also:
      • isPersistent()
      • invalid reference
        #persist(Iterable)
      • invalid reference
        #persist(Stream)
      • invalid reference
        #persist(Object, Object...)
    • persistAndFlush

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

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

      default 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<Void,Boolean>
      Returns:
      true if this entity is persistent in the database.