类 DefaultLoadEventListener
- java.lang.Object
-
- org.hibernate.event.internal.DefaultLoadEventListener
-
- 所有已实现的接口:
Serializable,LoadEventListener
public class DefaultLoadEventListener extends Object implements LoadEventListener
Defines the default load event listeners used by hibernate for loading entities in response to generated load events.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.event.spi.LoadEventListener
LoadEventListener.LoadType
-
-
字段概要
-
从接口继承的字段 org.hibernate.event.spi.LoadEventListener
GET, IMMEDIATE_LOAD, INTERNAL_LOAD_EAGER, INTERNAL_LOAD_LAZY, INTERNAL_LOAD_NULLABLE, LOAD, RELOAD
-
-
构造器概要
构造器 构造器 说明 DefaultLoadEventListener()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected EntityPersistergetPersister(LoadEvent event)protected ObjectloadFromDatasource(LoadEvent event, EntityPersister persister)Performs the process of loading an entity from the configured underlying datasource.voidonLoad(LoadEvent event, LoadEventListener.LoadType loadType)Handle the given load event.
-
-
-
方法详细资料
-
onLoad
public void onLoad(LoadEvent event, LoadEventListener.LoadType loadType) throws HibernateException
Handle the given load event.- 指定者:
onLoad在接口中LoadEventListener- 参数:
event- The load event to be handled.- 抛出:
HibernateException
-
getPersister
protected EntityPersister getPersister(LoadEvent event)
-
loadFromDatasource
protected Object loadFromDatasource(LoadEvent event, EntityPersister persister)
Performs the process of loading an entity from the configured underlying datasource.- 参数:
event- The load eventpersister- The persister for the entity being requested for load- 返回:
- The object loaded from the datasource, or null if not found.
-
-