Package dev.morphia

Interface EntityInterceptor

  • All Known Implementing Classes:
    AbstractEntityInterceptor

    public interface EntityInterceptor
    Interface for intercepting @Entity lifecycle events
    • Method Detail

      • postLoad

        default void postLoad​(Object ent,
                              org.bson.Document document,
                              Datastore datastore)
        Parameters:
        ent - the entity being processed
        document - the Document form of the entity
        datastore - the Datastore being used
        Since:
        2.3
        See Also:
        PostLoad
      • postPersist

        default void postPersist​(Object ent,
                                 org.bson.Document document,
                                 Datastore datastore)
        Parameters:
        ent - the entity being processed
        document - the Document form of the entity
        datastore - the Datastore being used
        Since:
        2.3
        See Also:
        PostPersist
      • preLoad

        default void preLoad​(Object ent,
                             org.bson.Document document,
                             Datastore datastore)
        Parameters:
        ent - the entity being processed
        document - the Document form of the entity
        datastore - the Datastore being used
        Since:
        2.3
        See Also:
        PreLoad
      • prePersist

        default void prePersist​(Object ent,
                                org.bson.Document document,
                                Datastore datastore)
        Parameters:
        ent - the entity being processed
        document - the Document form of the entity
        datastore - the Datastore being used
        Since:
        2.3
        See Also:
        PrePersist