public interface

LoadEventListener

implements Serializable
org.hibernate.event.LoadEventListener
Known Indirect Subclasses

Class Overview

Defines the contract for handling of load events generated from a session.

Summary

Nested Classes
class LoadEventListener.LoadType  
Fields
public static final LoadEventListener.LoadType GET
public static final LoadEventListener.LoadType IMMEDIATE_LOAD
public static final LoadEventListener.LoadType INTERNAL_LOAD_EAGER
public static final LoadEventListener.LoadType INTERNAL_LOAD_LAZY
public static final LoadEventListener.LoadType INTERNAL_LOAD_NULLABLE
public static final LoadEventListener.LoadType LOAD
public static final LoadEventListener.LoadType RELOAD
Public Methods
abstract void onLoad(LoadEvent event, LoadEventListener.LoadType loadType)
Handle the given load event.

Fields

public static final LoadEventListener.LoadType GET

public static final LoadEventListener.LoadType IMMEDIATE_LOAD

public static final LoadEventListener.LoadType INTERNAL_LOAD_EAGER

public static final LoadEventListener.LoadType INTERNAL_LOAD_LAZY

public static final LoadEventListener.LoadType INTERNAL_LOAD_NULLABLE

public static final LoadEventListener.LoadType LOAD

public static final LoadEventListener.LoadType RELOAD

Public Methods

public abstract void onLoad (LoadEvent event, LoadEventListener.LoadType loadType)

Handle the given load event.

Parameters
event The load event to be handled.
Returns
  • The result (i.e., the loaded entity).