public interface DereferencingListener<T,E,I>
| Modifier and Type | Method and Description |
|---|---|
T |
didDereference(E entitiyIncludingReference,
String fieldInEntity,
T referencedObject,
boolean lazy)
Will be called, after a lazy loaded reference was de-referenced and unmarshalled
|
void |
wouldDereference(E entityIncludingReference,
String fieldInEntity,
I id,
Class<T> typeReferenced,
boolean lazy)
will be called, before a reference is going to be de-referenced
|
void wouldDereference(E entityIncludingReference, String fieldInEntity, I id, Class<T> typeReferenced, boolean lazy) throws MorphiumAccessVetoException
entityIncludingReference - - the Entity which includes the lazy loaded referencefieldInEntity - - name of the field containing the referenceid - - ID of the referenced ObjecttypeReferenced - - type to be used for de-referencinglazy - - true, if lazy loaded reference should be dereferencedMorphiumAccessVetoException - - can be thrown, if de-referencing should not take placeT didDereference(E entitiyIncludingReference, String fieldInEntity, T referencedObject, boolean lazy)
entitiyIncludingReference - - the entity which includes the lazy loaded referencefieldInEntity - - the name of the field containing the referencereferencedObject - - the referenced object, kompletely unmarshalled. This one is actually stored also in the entity (field specified above)lazy - - true, if lazy loaded referenceCopyright © 2016. All rights reserved.