Package dev.morphia
Interface EntityInterceptor
-
- All Superinterfaces:
EntityListener<Object>
- All Known Implementing Classes:
AbstractEntityInterceptor
@Deprecated(forRemoval=true, since="2.4.0") public interface EntityInterceptor extends EntityListener<Object>
Deprecated, for removal: This API element is subject to removal in a future version.useEntityListenerinstead. The interface is the same but generic and the name aligns better with theEntityListenersannotation.Interface for intercepting @Entity lifecycle events
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default booleanhasAnnotation(Class<? extends Annotation> type)Deprecated, for removal: This API element is subject to removal in a future version.default voidpostLoad(Object ent, Document document, Datastore datastore)Deprecated, for removal: This API element is subject to removal in a future version.default voidpostLoad(Object ent, Document document, Mapper mapper)Deprecated, for removal: This API element is subject to removal in a future version.usepostPersist(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()ifdefault voidpostPersist(Object ent, Document document, Datastore datastore)Deprecated, for removal: This API element is subject to removal in a future version.default voidpostPersist(Object ent, Document document, Mapper mapper)Deprecated, for removal: This API element is subject to removal in a future version.usepostPersist(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()ifdefault voidpreLoad(Object ent, Document document, Datastore datastore)Deprecated, for removal: This API element is subject to removal in a future version.default voidpreLoad(Object ent, Document document, Mapper mapper)Deprecated, for removal: This API element is subject to removal in a future version.usepreLoad(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()if necessarydefault voidprePersist(Object ent, Document document, Datastore datastore)Deprecated, for removal: This API element is subject to removal in a future version.default voidprePersist(Object ent, Document document, Mapper mapper)Deprecated, for removal: This API element is subject to removal in a future version.useprePersist(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()if necessary
-
-
-
Method Detail
-
hasAnnotation
default boolean hasAnnotation(Class<? extends Annotation> type)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hasAnnotationin interfaceEntityListener<Object>
-
postLoad
@Deprecated(forRemoval=true) default void postLoad(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.usepostPersist(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()if- Specified by:
postLoadin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitymapper- the Mapper being used- See Also:
PostLoad
-
postLoad
default void postLoad(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
postLoadin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitydatastore- the Datastore being used- Since:
- 2.3
- See Also:
PostLoad
-
postPersist
@Deprecated(forRemoval=true) default void postPersist(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.usepostPersist(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()if- Specified by:
postPersistin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitymapper- the Mapper being used- See Also:
PostPersist
-
postPersist
default void postPersist(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
postPersistin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitydatastore- the Datastore being used- Since:
- 2.3
- See Also:
PostPersist
-
preLoad
@Deprecated(forRemoval=true) default void preLoad(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.usepreLoad(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()if necessary- Specified by:
preLoadin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitymapper- the Mapper being used- See Also:
PreLoad
-
preLoad
default void preLoad(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
preLoadin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitydatastore- the Datastore being used- Since:
- 2.3
- See Also:
PreLoad
-
prePersist
@Deprecated(forRemoval=true) default void prePersist(Object ent, Document document, Mapper mapper)
Deprecated, for removal: This API element is subject to removal in a future version.useprePersist(Object, Document, Datastore)instead and access the Mapper viaDatastore.getMapper()if necessary- Specified by:
prePersistin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitymapper- the Mapper being used- See Also:
PrePersist
-
prePersist
default void prePersist(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
prePersistin interfaceEntityListener<Object>- Parameters:
ent- the entity being processeddocument- the Document form of the entitydatastore- the Datastore being used- Since:
- 2.3
- See Also:
PrePersist
-
-