站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

LoadEventListener (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.event
Interface LoadEventListener

All Superinterfaces:
Serializable
All 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 Detail

RELOAD

public static final LoadEventListener.LoadType RELOAD

GET

public static final LoadEventListener.LoadType GET

LOAD

public static final LoadEventListener.LoadType LOAD

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
Method Detail

onLoad

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

Parameters:
event - The load event to be handled.
Returns:
The result (i.e., the loaded entity).
Throws:
HibernateException