Package dev.morphia
Interface EntityInterceptor
-
- All Known Implementing Classes:
AbstractEntityInterceptor
public interface EntityInterceptorInterface for intercepting @Entity lifecycle events
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidpostPersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidpreLoad(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidprePersist(java.lang.Object ent, com.mongodb.DBObject dbObj, Mapper mapper)voidpreSave(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 processeddbObj- the DBObject form of the entitymapper- 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 processeddbObj- the DBObject form of the entitymapper- 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 processeddbObj- the DBObject form of the entitymapper- 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 processeddbObj- the DBObject form of the entitymapper- the Mapper being used- See Also:
PostPersist
-
-