Package org.hibernate.event.spi
Class LoadEvent
java.lang.Object
org.hibernate.event.spi.AbstractEvent
org.hibernate.event.spi.LoadEvent
- All Implemented Interfaces:
Serializable
Defines an event class for the loading of an entity.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLoadEvent
(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
Modifier and TypeMethodDescriptionboolean
int
boolean
void
setEntityClassName
(String entityClassName) void
setEntityId
(Object entityId) void
setInstanceToLoad
(Object instanceToLoad) void
setPostLoadEvent
(PostLoadEvent postLoadEvent) void
setReadOnly
(Boolean readOnly) void
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getFactory, getSession
-
Constructor Details
-
LoadEvent
-
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 Details
-
getEntityId
-
setEntityId
-
getEntityClassName
-
setEntityClassName
-
isAssociationFetch
public boolean isAssociationFetch() -
getInstanceToLoad
-
setInstanceToLoad
-
getLockOptions
-
getLockMode
-
getLockTimeout
public int getLockTimeout() -
getLockScope
public boolean getLockScope() -
getResult
-
setResult
-
getPostLoadEvent
-
setPostLoadEvent
-
getReadOnly
-
setReadOnly
-