Package 

Class ReactivePanacheMongoEntityBase


  • 
    public abstract class ReactivePanacheMongoEntityBase
    
                        

    Represents an entity. If your Mongo entities extend this class they gain auto-generated accessors to all their public fields, as well as a lot of useful methods. Unless you have a custom ID strategy, you should not extend this class directly but extend ReactivePanacheMongoEntity instead.

    • Method Summary

      Modifier and Type Method Description
      final Uni<Void> persist() Persist this entity in the database.
      final Uni<Void> update() Update this entity in the database.
      final Uni<Void> persistOrUpdate() Persist this entity in the database or update it if it already exist.
      final Uni<Void> delete() Delete this entity from the database, if it is already persisted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactivePanacheMongoEntityBase

        ReactivePanacheMongoEntityBase()
    • Method Detail

      • persist

         final Uni<Void> persist()

        Persist this entity in the database. This will set it's ID field if not already set.

      • update

         final Uni<Void> update()

        Update this entity in the database.

      • persistOrUpdate

         final Uni<Void> persistOrUpdate()

        Persist this entity in the database or update it if it already exist.

      • delete

         final Uni<Void> delete()

        Delete this entity from the database, if it is already persisted.