Package | Description |
---|---|
org.hibernate.event.internal |
This package defines a default set of event listeners that
implements the default behaviors of Hibernate.
|
org.hibernate.event.spi |
Modifier and Type | Method and Description |
---|---|
protected Object |
DefaultLoadEventListener.doLoad(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Coordinates the efforts to load a given entity.
|
protected Object |
DefaultLoadEventListener.load(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Performs the load of an entity.
|
protected Object |
DefaultLoadEventListener.loadFromDatasource(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Performs the process of loading an entity from the configured
underlying datasource.
|
protected Object |
DefaultLoadEventListener.loadFromSecondLevelCache(LoadEvent event,
EntityPersister persister,
LoadEventListener.LoadType options)
Attempts to load the entity from the second-level cache.
|
protected Object |
DefaultLoadEventListener.loadFromSessionCache(LoadEvent event,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Attempts to locate the entity in the session-level cache.
|
protected Object |
DefaultLoadEventListener.lockAndLoad(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options,
SessionImplementor source)
If the class to be loaded has been configured with a cache, then lock
given id in that cache and then perform the load.
|
void |
DefaultLoadEventListener.onLoad(LoadEvent event,
LoadEventListener.LoadType loadType)
Handle the given load event.
|
protected Object |
DefaultLoadEventListener.proxyOrLoad(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Based on configured options, will either return a pre-existing proxy,
generate a new proxy, or perform an actual load.
|
Modifier and Type | Field and Description |
---|---|
static LoadEventListener.LoadType |
LoadEventListener.GET |
static LoadEventListener.LoadType |
LoadEventListener.IMMEDIATE_LOAD |
static LoadEventListener.LoadType |
LoadEventListener.INTERNAL_LOAD_EAGER |
static LoadEventListener.LoadType |
LoadEventListener.INTERNAL_LOAD_LAZY |
static LoadEventListener.LoadType |
LoadEventListener.INTERNAL_LOAD_NULLABLE |
static LoadEventListener.LoadType |
LoadEventListener.LOAD |
static LoadEventListener.LoadType |
LoadEventListener.RELOAD |
Modifier and Type | Method and Description |
---|---|
void |
LoadEventListener.onLoad(LoadEvent event,
LoadEventListener.LoadType loadType)
Handle the given load event.
|
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.