Top Description Inners Fields Constructors Methods
org.hibernate.jpa.event.internal

pack-priv final Class EntityCallback

extends AbstractCallback
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, .Method, org.hibernate.jpa.event.spi.Callback, .CallbackDefinition, .CallbackType, org.hibernate.resource.beans.spi.ManagedBeanRegistry

Represents a JPA callback on the entity itself
Authors
Kabir Khan, Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final Method

Constructor Summary

AccessConstructor and Description
private
EntityCallback(Method callbackMethod, CallbackType callbackType)

Method Summary

Modifier and TypeMethod and Description
public boolean
performCallback(Object
Reference to the entity for which the callback is triggered.
entity
)

Implements org.hibernate.jpa.event.spi.Callback.performCallback.

Contract for performing the callback
Inherited from org.hibernate.jpa.event.internal.AbstractCallback:
getCallbackType

Field Detail

callbackMethodback to summary
private final Method callbackMethod

Constructor Detail

EntityCallbackback to summary
private EntityCallback(Method callbackMethod, CallbackType callbackType)

Method Detail

performCallbackback to summary
public boolean performCallback(Object entity)

Implements org.hibernate.jpa.event.spi.Callback.performCallback.

Doc from org.hibernate.jpa.event.spi.Callback.performCallback.

Contract for performing the callback

Parameters
entity:Object

Reference to the entity for which the callback is triggered.

Returns:boolean

Did a callback actually happen?

Annotations
@Override
org.hibernate.jpa.event.internal back to summary

public Class EntityCallback.Definition

extends Object
implements CallbackDefinition
Class Inheritance
All Implemented Interfaces
org.hibernate.jpa.event.spi.CallbackDefinition, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final Method
private final CallbackType

Constructor Summary

AccessConstructor and Description
public
Definition(Method callbackMethod, CallbackType callbackType)

Method Summary

Modifier and TypeMethod and Description
public Callback
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

callbackMethodback to summary
private final Method callbackMethod
callbackTypeback to summary
private final CallbackType callbackType

Constructor Detail

Definitionback to summary
public Definition(Method callbackMethod, CallbackType callbackType)

Method Detail

createCallbackback to summary
public Callback createCallback(ManagedBeanRegistry beanRegistry)

Implements org.hibernate.jpa.event.spi.CallbackDefinition.createCallback.

Annotations
@Override