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 class LoadEvent extends AbstractEvent
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 String
getEntityClassName()
Object
getEntityId()
Object
getInstanceToLoad()
LockMode
getLockMode()
LockOptions
getLockOptions()
boolean
getLockScope()
int
getLockTimeout()
PostLoadEvent
getPostLoadEvent()
Boolean
getReadOnly()
Object
getResult()
boolean
isAssociationFetch()
void
setEntityClassName(String entityClassName)
void
setEntityId(Object entityId)
void
setInstanceToLoad(Object instanceToLoad)
void
setPostLoadEvent(PostLoadEvent postLoadEvent)
void
setReadOnly(Boolean readOnly)
void
setResult(Object result)
-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
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)
-
-