org.hibernate.event
Class LoadEvent
java.lang.Object
org.hibernate.event.AbstractEvent
org.hibernate.event.LoadEvent
- All Implemented Interfaces:
- Serializable
public class LoadEvent
- extends AbstractEvent
Defines an event class for the loading of an entity.
- Author:
- Steve Ebersole
- See Also:
- Serialized Form
Constructor Summary |
LoadEvent(Serializable entityId,
Object instanceToLoad,
EventSource source)
|
LoadEvent(Serializable entityId,
String entityClassName,
boolean isAssociationFetch,
EventSource source)
|
LoadEvent(Serializable entityId,
String entityClassName,
LockMode lockMode,
EventSource source)
|
LoadEvent(Serializable entityId,
String entityClassName,
LockOptions lockOptions,
EventSource source)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_LOCK_MODE
public static final LockMode DEFAULT_LOCK_MODE
LoadEvent
public LoadEvent(Serializable entityId,
Object instanceToLoad,
EventSource source)
LoadEvent
public LoadEvent(Serializable entityId,
String entityClassName,
LockMode lockMode,
EventSource source)
LoadEvent
public LoadEvent(Serializable entityId,
String entityClassName,
LockOptions lockOptions,
EventSource source)
LoadEvent
public LoadEvent(Serializable entityId,
String entityClassName,
boolean isAssociationFetch,
EventSource source)
isAssociationFetch
public boolean isAssociationFetch()
getEntityId
public Serializable getEntityId()
setEntityId
public void setEntityId(Serializable entityId)
getEntityClassName
public String getEntityClassName()
setEntityClassName
public void setEntityClassName(String entityClassName)
getInstanceToLoad
public Object getInstanceToLoad()
setInstanceToLoad
public void setInstanceToLoad(Object instanceToLoad)
getLockOptions
public LockOptions getLockOptions()
getLockMode
public LockMode getLockMode()
setLockMode
public void setLockMode(LockMode lockMode)
setLockTimeout
public void setLockTimeout(int timeout)
getLockTimeout
public int getLockTimeout()
setLockScope
public void setLockScope(boolean cascade)
getLockScope
public boolean getLockScope()
getResult
public Object getResult()
setResult
public void setResult(Object result)
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.