Package dev.morphia

Interface EntityInterceptor

  • All Known Implementing Classes:
    AbstractEntityInterceptor

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

      • postLoad

        void postLoad​(java.lang.Object ent,
                      com.mongodb.DBObject dbObj,
                      Mapper mapper)
        Parameters:
        ent - the entity being processed
        dbObj - the DBObject form of the entity
        mapper - the Mapper being used
        See Also:
        PostLoad
      • postPersist

        void postPersist​(java.lang.Object ent,
                         com.mongodb.DBObject dbObj,
                         Mapper mapper)
        Parameters:
        ent - the entity being processed
        dbObj - the DBObject form of the entity
        mapper - the Mapper being used
        See Also:
        PostPersist
      • preLoad

        void preLoad​(java.lang.Object ent,
                     com.mongodb.DBObject dbObj,
                     Mapper mapper)
        Parameters:
        ent - the entity being processed
        dbObj - the DBObject form of the entity
        mapper - the Mapper being used
        See Also:
        PreLoad
      • prePersist

        void prePersist​(java.lang.Object ent,
                        com.mongodb.DBObject dbObj,
                        Mapper mapper)
        Parameters:
        ent - the entity being processed
        dbObj - the DBObject form of the entity
        mapper - the Mapper being used
        See Also:
        PostPersist
      • preSave

        void preSave​(java.lang.Object ent,
                     com.mongodb.DBObject dbObj,
                     Mapper mapper)
        Deprecated.
        removed in 2.0
        Parameters:
        ent - the entity being processed
        dbObj - the DBObject form of the entity
        mapper - the Mapper being used
        See Also:
        PreSave