Package dev.morphia

Class AbstractEntityInterceptor

  • All Implemented Interfaces:
    EntityInterceptor

    public class AbstractEntityInterceptor
    extends java.lang.Object
    implements EntityInterceptor
    Author:
    Uwe Schaefer, (us@thomas-daily.de)
    • Method Summary

      All Methods Instance Methods Concrete 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractEntityInterceptor

        public AbstractEntityInterceptor()
    • Method Detail

      • postLoad

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

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

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

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

        public void preSave​(java.lang.Object ent,
                            com.mongodb.DBObject dbObj,
                            Mapper mapper)
        Specified by:
        preSave in interface EntityInterceptor
        Parameters:
        ent - the entity being processed
        dbObj - the DBObject form of the entity
        mapper - the Mapper being used
        See Also:
        PreSave