Package org.hibernate.event
Class LoadEvent
java.lang.Object
org.hibernate.event.AbstractEvent
org.hibernate.event.LoadEvent
- All Implemented Interfaces:
Serializable
Defines an event class for the loading of an entity.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoadEvent(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) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanvoidsetEntityClassName(String entityClassName) voidsetEntityId(Serializable entityId) voidsetInstanceToLoad(Object instanceToLoad) voidsetLockMode(LockMode lockMode) voidsetLockScope(boolean cascade) voidsetLockTimeout(int timeout) voidMethods inherited from class org.hibernate.event.AbstractEvent
getSession
-
Field Details
-
DEFAULT_LOCK_MODE
-
-
Constructor Details
-
LoadEvent
-
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)
-
-
Method Details
-
isAssociationFetch
public boolean isAssociationFetch() -
getEntityId
-
setEntityId
-
getEntityClassName
-
setEntityClassName
-
getInstanceToLoad
-
setInstanceToLoad
-
getLockOptions
-
getLockMode
-
setLockMode
-
setLockTimeout
public void setLockTimeout(int timeout) -
getLockTimeout
public int getLockTimeout() -
setLockScope
public void setLockScope(boolean cascade) -
getLockScope
public boolean getLockScope() -
getResult
-
setResult
-