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.useEntityListener
instead. The interface is the same but generic and the name aligns better with theEntityListeners
annotation.Interface for intercepting @Entity lifecycle events
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default boolean
hasAnnotation(Class<? extends Annotation> type)
Deprecated, for removal: This API element is subject to removal in a future version.default void
postLoad(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.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()
ifdefault void
postPersist(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.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()
ifdefault void
preLoad(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.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 necessarydefault void
prePersist(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
-
-
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:
hasAnnotation
in 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:
postLoad
in 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:
postLoad
in 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:
postPersist
in 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:
postPersist
in 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:
preLoad
in 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:
preLoad
in 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:
prePersist
in 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:
prePersist
in interfaceEntityListener<Object>
- Parameters:
ent
- the entity being processeddocument
- the Document form of the entitydatastore
- the Datastore being used- Since:
- 2.3
- See Also:
PrePersist
-
-