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,
                              Mapper mapper)
        Parameters:
        ent - the entity being processed
        document - the Document form of the entity
        mapper - the Mapper being used
        See Also:
        PostLoad
      • postPersist

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

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

        default void prePersist​(Object ent,
                                org.bson.Document document,
                                Mapper mapper)
        Parameters:
        ent - the entity being processed
        document - the Document form of the entity
        mapper - the Mapper being used
        See Also:
        PostPersist