Package dev.morphia
Interface EntityListener<T>
-
- All Known Subinterfaces:
EntityInterceptor
- All Known Implementing Classes:
AbstractEntityInterceptor
,OnEntityListenerAdapter
public interface EntityListener<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description boolean
hasAnnotation(Class<? extends Annotation> type)
default void
postLoad(T entity, Document document, Datastore datastore)
default void
postLoad(T entity, 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(T entity, Document document, Datastore datastore)
default void
postPersist(T entity, 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(T entity, Document document, Datastore datastore)
default void
preLoad(T entity, 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(T entity, Document document, Datastore datastore)
default void
prePersist(T entity, 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
-
postLoad
@Deprecated(forRemoval=true) default void postLoad(T entity, 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- Parameters:
entity
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PostLoad
-
hasAnnotation
boolean hasAnnotation(Class<? extends Annotation> type)
-
postLoad
default void postLoad(T entity, Document document, Datastore datastore)
- Parameters:
entity
- 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(T entity, 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- Parameters:
entity
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PostPersist
-
postPersist
default void postPersist(T entity, Document document, Datastore datastore)
- Parameters:
entity
- 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(T entity, 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- Parameters:
entity
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PreLoad
-
preLoad
default void preLoad(T entity, Document document, Datastore datastore)
- Parameters:
entity
- 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(T entity, 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- Parameters:
entity
- the entity being processeddocument
- the Document form of the entitymapper
- the Mapper being used- See Also:
PrePersist
-
prePersist
default void prePersist(T entity, Document document, Datastore datastore)
- Parameters:
entity
- the entity being processeddocument
- the Document form of the entitydatastore
- the Datastore being used- Since:
- 2.3
- See Also:
PrePersist
-
-