Package org.hibernate.event.spi
Class LoadEvent
- java.lang.Object
- org.hibernate.event.spi.AbstractEvent
- org.hibernate.event.spi.LoadEvent
- All Implemented Interfaces:
Serializable
public classLoadEventextendsAbstractEvent
Defines an event class for the loading of an entity.- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description LoadEvent(Object entityId,Object instanceToLoad,EventSource source,Boolean readOnly)LoadEvent(Object entityId,String entityClassName, boolean isAssociationFetch,EventSource source,Boolean readOnly)LoadEvent(Object entityId,String entityClassName,LockMode lockMode,EventSource source,Boolean readOnly)LoadEvent(Object entityId,String entityClassName,LockOptions lockOptions,EventSource source,Boolean readOnly)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEntityClassName()ObjectgetEntityId()ObjectgetInstanceToLoad()LockModegetLockMode()LockOptionsgetLockOptions()booleangetLockScope()intgetLockTimeout()PostLoadEventgetPostLoadEvent()BooleangetReadOnly()ObjectgetResult()booleanisAssociationFetch()voidsetEntityClassName(String entityClassName)voidsetEntityId(Object entityId)voidsetInstanceToLoad(Object instanceToLoad)voidsetPostLoadEvent(PostLoadEvent postLoadEvent)voidsetReadOnly(Boolean readOnly)voidsetResult(Object result)Methods inherited from class org.hibernate.event.spi.AbstractEvent
getFactory,getSession
Constructor Detail
LoadEvent
public LoadEvent(Object entityId,Object instanceToLoad,EventSource source,Boolean readOnly)
LoadEvent
public LoadEvent(Object entityId,String entityClassName,LockMode lockMode,EventSource source,Boolean readOnly)
LoadEvent
public LoadEvent(Object entityId,String entityClassName,LockOptions lockOptions,EventSource source,Boolean readOnly)
LoadEvent
public LoadEvent(Object entityId,String entityClassName, boolean isAssociationFetch,EventSource source,Boolean readOnly)
Method Detail
getEntityId
public Object getEntityId()
setEntityId
public void setEntityId(Object entityId)
getEntityClassName
public String getEntityClassName()
setEntityClassName
public void setEntityClassName(String entityClassName)
isAssociationFetch
public boolean isAssociationFetch()
getInstanceToLoad
public Object getInstanceToLoad()
setInstanceToLoad
public void setInstanceToLoad(Object instanceToLoad)
getLockOptions
public LockOptions getLockOptions()
getLockMode
public LockMode getLockMode()
getLockTimeout
public int getLockTimeout()
getLockScope
public boolean getLockScope()
getResult
public Object getResult()
setResult
public void setResult(Object result)
getPostLoadEvent
public PostLoadEvent getPostLoadEvent()
setPostLoadEvent
public void setPostLoadEvent(PostLoadEvent postLoadEvent)
getReadOnly
public Boolean getReadOnly()
setReadOnly
public void setReadOnly(Boolean readOnly)