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 Deprecated 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)
Deprecated.removed in 2.0
-
-
-
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
-
-