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 Default Methods Modifier and Type Method Description default void
postLoad(Object ent, org.bson.Document document, Mapper mapper)
default void
postPersist(Object ent, org.bson.Document document, Mapper mapper)
default void
preLoad(Object ent, org.bson.Document document, Mapper mapper)
default void
prePersist(Object ent, org.bson.Document document, Mapper mapper)
-
-
-
Method Detail
-
postLoad
default void postLoad(Object ent, org.bson.Document document, Mapper mapper)
- Parameters:
ent
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PostLoad
-
postPersist
default void postPersist(Object ent, org.bson.Document document, Mapper mapper)
- Parameters:
ent
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PostPersist
-
preLoad
default void preLoad(Object ent, org.bson.Document document, Mapper mapper)
- Parameters:
ent
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PreLoad
-
prePersist
default void prePersist(Object ent, org.bson.Document document, Mapper mapper)
- Parameters:
ent
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PostPersist
-
-