Package dev.morphia

Interface EntityInterceptor

  • All Known Implementing Classes:
    AbstractEntityInterceptor

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void postLoad​(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)  
      void postPersist​(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)  
      void preLoad​(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)  
      void prePersist​(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)  
      void preSave​(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)  
    • 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)
        Parameters:
        ent - the entity being processed
        dbObj - the DBObject form of the entity
        mapper - the Mapper being used
        See Also:
        PreSave