Package de.caluga.morphium
Interface MorphiumStorageListener<T>
-
- All Known Implementing Classes:
JavaxValidationStorageListener,MessagingCacheSynchronizer,MorphiumStorageAdapter
public interface MorphiumStorageListener<T>- Author:
- stephan These listeners will be informed about Storing _any_ object in morphium!
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMorphiumStorageListener.UpdateTypes
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostDrop(Morphium m, Class<? extends T> cls)voidpostLoad(Morphium m, List<T> o)voidpostLoad(Morphium m, T o)voidpostRemove(Morphium m, Query<T> q)voidpostRemove(Morphium m, List<T> lst)voidpostRemove(Morphium m, T r)voidpostStore(Morphium m, Map<T,Boolean> isNew)voidpostStore(Morphium m, T r, boolean isNew)voidpostUpdate(Morphium m, Class<? extends T> cls, Enum updateType)voidpreDrop(Morphium m, Class<? extends T> cls)voidpreRemove(Morphium m, Query<T> q)voidpreRemove(Morphium m, T r)voidpreStore(Morphium m, Map<T,Boolean> isNew)voidpreStore(Morphium m, T r, boolean isNew)voidpreUpdate(Morphium m, Class<? extends T> cls, Enum updateType)
-
-
-
Method Detail
-
preStore
void preStore(Morphium m, T r, boolean isNew) throws MorphiumAccessVetoException
- Throws:
MorphiumAccessVetoException
-
preStore
void preStore(Morphium m, Map<T,Boolean> isNew) throws MorphiumAccessVetoException
- Throws:
MorphiumAccessVetoException
-
preRemove
void preRemove(Morphium m, Query<T> q) throws MorphiumAccessVetoException
- Throws:
MorphiumAccessVetoException
-
preRemove
void preRemove(Morphium m, T r) throws MorphiumAccessVetoException
- Throws:
MorphiumAccessVetoException
-
preDrop
void preDrop(Morphium m, Class<? extends T> cls) throws MorphiumAccessVetoException
- Throws:
MorphiumAccessVetoException
-
preUpdate
void preUpdate(Morphium m, Class<? extends T> cls, Enum updateType) throws MorphiumAccessVetoException
- Throws:
MorphiumAccessVetoException
-
-