public class CallbackManager extends Object
| Constructor and Description |
|---|
CallbackManager(IdentifiableTypeMetadata metadata,
Class<?> javaType)
Constructor for identifiable types.
|
CallbackManager(List<EntityListenerMetadata> defaultListeners)
Constructor for metamodel.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
excludeDefaultListeners()
Returns if the default listeners are excluded.
|
boolean |
excludeSuperclassListeners()
Returns if the super class listeners are excluded.
|
void |
fireCallbacks(Object instance,
EntityListenerMetadata.EntityListenerType type)
Fires the callbacks.
|
CallbackAvailability |
getAvailibility(MetamodelImpl metamodel,
IdentifiableTypeImpl<?> superType)
Returns the callback availability.
|
boolean |
isExcludeDefaultListeners()
Returns if the default listeners are excluded.
|
boolean |
isExcludeSuperclassListeners()
Returns if the super type listeners are excluded.
|
Callback[] |
postLoad()
Returns the PostLoad callbacks.
|
Callback[] |
postPersist()
Returns the PostPersist callbacks.
|
Callback[] |
postRemove()
Returns the PostRemove callbacks.
|
Callback[] |
postUpdate()
Returns the PostUpdate callbacks.
|
Callback[] |
prePersist()
Returns the PrePersist callbacks.
|
Callback[] |
preRemove()
Returns the PreRemove callbacks.
|
Callback[] |
preUpdate()
Returns the PreUpdate callbacks.
|
public CallbackManager(IdentifiableTypeMetadata metadata, Class<?> javaType)
metadata - the identifiable metadatajavaType - the java type of the identifiablepublic CallbackManager(List<EntityListenerMetadata> defaultListeners)
defaultListeners - the list of default listenerspublic boolean excludeDefaultListeners()
public boolean excludeSuperclassListeners()
public void fireCallbacks(Object instance, EntityListenerMetadata.EntityListenerType type)
instance - the instancetype - the typepublic CallbackAvailability getAvailibility(MetamodelImpl metamodel, IdentifiableTypeImpl<?> superType)
metamodel - the metamodelsuperType - the super type, may be nullpublic boolean isExcludeDefaultListeners()
public boolean isExcludeSuperclassListeners()
public Callback[] postLoad()
public Callback[] postPersist()
public Callback[] postRemove()
public Callback[] postUpdate()
public Callback[] prePersist()
public Callback[] preRemove()
public Callback[] preUpdate()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.