Package org.hibernate.event.spi
Interface LoadEventListener
-
- All Superinterfaces:
Serializable
public interface LoadEventListener extends Serializable
Defines the contract for handling of load events generated from a session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLoadEventListener.LoadType
-
Field Summary
Fields Modifier and Type Field Description static LoadEventListener.LoadTypeGETstatic LoadEventListener.LoadTypeIMMEDIATE_LOADstatic LoadEventListener.LoadTypeINTERNAL_LOAD_EAGERstatic LoadEventListener.LoadTypeINTERNAL_LOAD_LAZYstatic LoadEventListener.LoadTypeINTERNAL_LOAD_NULLABLEstatic LoadEventListener.LoadTypeLOADstatic LoadEventListener.LoadTypeRELOAD
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonLoad(LoadEvent event, LoadEventListener.LoadType loadType)Handle the given load event.
-
-
-
Field Detail
-
RELOAD
static final LoadEventListener.LoadType RELOAD
-
GET
static final LoadEventListener.LoadType GET
-
LOAD
static final LoadEventListener.LoadType LOAD
-
IMMEDIATE_LOAD
static final LoadEventListener.LoadType IMMEDIATE_LOAD
-
INTERNAL_LOAD_EAGER
static final LoadEventListener.LoadType INTERNAL_LOAD_EAGER
-
INTERNAL_LOAD_LAZY
static final LoadEventListener.LoadType INTERNAL_LOAD_LAZY
-
INTERNAL_LOAD_NULLABLE
static final LoadEventListener.LoadType INTERNAL_LOAD_NULLABLE
-
-
Method Detail
-
onLoad
void onLoad(LoadEvent event, LoadEventListener.LoadType loadType) throws HibernateException
Handle the given load event.- Parameters:
event- The load event to be handled.- Throws:
HibernateException
-
-