Package dev.morphia

Interface EntityListener<T>

    • Method Detail

      • hasAnnotation

        boolean hasAnnotation​(Class<? extends Annotation> type)
      • postLoad

        default void postLoad​(T entity,
                              Document document,
                              Datastore datastore)
        Parameters:
        entity - 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​(T entity,
                                 Document document,
                                 Datastore datastore)
        Parameters:
        entity - 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​(T entity,
                             Document document,
                             Datastore datastore)
        Parameters:
        entity - 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​(T entity,
                                Document document,
                                Datastore datastore)
        Parameters:
        entity - the entity being processed
        document - the Document form of the entity
        datastore - the Datastore being used
        Since:
        2.3
        See Also:
        PrePersist