Package org.hibernate.event.spi
Class LoadEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.LoadEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class LoadEvent extends AbstractEvent
Defines an event class for the loading of an entity.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static LockMode
DEFAULT_LOCK_MODE
static LockOptions
DEFAULT_LOCK_OPTIONS
-
Constructor Summary
Constructors Constructor Description LoadEvent(java.io.Serializable entityId, java.lang.Object instanceToLoad, EventSource source)
LoadEvent(java.io.Serializable entityId, java.lang.String entityClassName, boolean isAssociationFetch, EventSource source)
LoadEvent(java.io.Serializable entityId, java.lang.String entityClassName, LockMode lockMode, EventSource source)
LoadEvent(java.io.Serializable entityId, java.lang.String entityClassName, LockOptions lockOptions, EventSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEntityClassName()
java.io.Serializable
getEntityId()
java.lang.Object
getInstanceToLoad()
LockMode
getLockMode()
LockOptions
getLockOptions()
boolean
getLockScope()
int
getLockTimeout()
PostLoadEvent
getPostLoadEvent()
java.lang.Object
getResult()
boolean
isAssociationFetch()
void
setEntityClassName(java.lang.String entityClassName)
void
setEntityId(java.io.Serializable entityId)
void
setInstanceToLoad(java.lang.Object instanceToLoad)
void
setLockMode(LockMode lockMode)
void
setLockScope(boolean cascade)
void
setLockTimeout(int timeout)
void
setPostLoadEvent(PostLoadEvent postLoadEvent)
void
setResult(java.lang.Object result)
-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
Field Detail
-
DEFAULT_LOCK_MODE
public static final LockMode DEFAULT_LOCK_MODE
-
DEFAULT_LOCK_OPTIONS
public static final LockOptions DEFAULT_LOCK_OPTIONS
-
-
Constructor Detail
-
LoadEvent
public LoadEvent(java.io.Serializable entityId, java.lang.Object instanceToLoad, EventSource source)
-
LoadEvent
public LoadEvent(java.io.Serializable entityId, java.lang.String entityClassName, LockMode lockMode, EventSource source)
-
LoadEvent
public LoadEvent(java.io.Serializable entityId, java.lang.String entityClassName, LockOptions lockOptions, EventSource source)
-
LoadEvent
public LoadEvent(java.io.Serializable entityId, java.lang.String entityClassName, boolean isAssociationFetch, EventSource source)
-
-
Method Detail
-
isAssociationFetch
public boolean isAssociationFetch()
-
getEntityId
public java.io.Serializable getEntityId()
-
setEntityId
public void setEntityId(java.io.Serializable entityId)
-
getEntityClassName
public java.lang.String getEntityClassName()
-
setEntityClassName
public void setEntityClassName(java.lang.String entityClassName)
-
getInstanceToLoad
public java.lang.Object getInstanceToLoad()
-
setInstanceToLoad
public void setInstanceToLoad(java.lang.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 java.lang.Object getResult()
-
setResult
public void setResult(java.lang.Object result)
-
getPostLoadEvent
public PostLoadEvent getPostLoadEvent()
-
setPostLoadEvent
public void setPostLoadEvent(PostLoadEvent postLoadEvent)
-
-