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 Default Methods Deprecated Methods Modifier and Type Method Description default void
postLoad(Object ent, Document document, Datastore datastore)
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)
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)
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)
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
-
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- 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)
- 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- 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)
- 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- 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)
- 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- 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)
- Parameters:
ent
- the entity being processeddocument
- the Document form of the entitydatastore
- the Datastore being used- Since:
- 2.3
- See Also:
PrePersist
-
-