org.hibernate.event

Interface LoadEventListener

All Superinterfaces:
Serializable
Known Implementing Classes:
DefaultLoadEventListener

public interface LoadEventListener
extends Serializable

Defines the contract for handling of load events generated from a session.
Author:
Steve Ebersole

Nested Class Summary

static class
LoadEventListener.LoadType

Field Summary

static LoadEventListener.LoadType
GET
static LoadEventListener.LoadType
IMMEDIATE_LOAD
static LoadEventListener.LoadType
INTERNAL_LOAD_EAGER
static LoadEventListener.LoadType
INTERNAL_LOAD_LAZY
static LoadEventListener.LoadType
INTERNAL_LOAD_NULLABLE
static LoadEventListener.LoadType
LOAD
static LoadEventListener.LoadType
RELOAD

Method Summary

void
onLoad(LoadEvent event, LoadEventListener.LoadType loadType)
Handle the given load event.

Field Details

GET

public static final LoadEventListener.LoadType GET

IMMEDIATE_LOAD

public static final LoadEventListener.LoadType IMMEDIATE_LOAD

INTERNAL_LOAD_EAGER

public static final LoadEventListener.LoadType INTERNAL_LOAD_EAGER

INTERNAL_LOAD_LAZY

public static final LoadEventListener.LoadType INTERNAL_LOAD_LAZY

INTERNAL_LOAD_NULLABLE

public static final LoadEventListener.LoadType INTERNAL_LOAD_NULLABLE

LOAD

public static final LoadEventListener.LoadType LOAD

RELOAD

public static final LoadEventListener.LoadType RELOAD

Method Details

onLoad

public void onLoad(LoadEvent event,
                   LoadEventListener.LoadType loadType)
            throws HibernateException
Handle the given load event.
Parameters:
event - The load event to be handled.