public class LoadEvent extends AbstractEvent
Modifier and Type | Field and Description |
---|---|
static LockMode |
DEFAULT_LOCK_MODE |
static LockOptions |
DEFAULT_LOCK_OPTIONS |
Constructor and Description |
---|
LoadEvent(Serializable entityId,
Object instanceToLoad,
EventSource source,
Boolean readOnly) |
LoadEvent(Serializable entityId,
String entityClassName,
boolean isAssociationFetch,
EventSource source,
Boolean readOnly) |
LoadEvent(Serializable entityId,
String entityClassName,
LockMode lockMode,
EventSource source,
Boolean readOnly) |
LoadEvent(Serializable entityId,
String entityClassName,
LockOptions lockOptions,
EventSource source,
Boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
String |
getEntityClassName() |
Serializable |
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(Serializable entityId) |
void |
setInstanceToLoad(Object instanceToLoad) |
void |
setLockMode(LockMode lockMode) |
void |
setLockScope(boolean cascade) |
void |
setLockTimeout(int timeout) |
void |
setPostLoadEvent(PostLoadEvent postLoadEvent) |
void |
setReadOnly(Boolean readOnly) |
void |
setResult(Object result) |
getSession
public static final LockMode DEFAULT_LOCK_MODE
public static final LockOptions DEFAULT_LOCK_OPTIONS
public LoadEvent(Serializable entityId, Object instanceToLoad, EventSource source, Boolean readOnly)
public LoadEvent(Serializable entityId, String entityClassName, LockMode lockMode, EventSource source, Boolean readOnly)
public LoadEvent(Serializable entityId, String entityClassName, LockOptions lockOptions, EventSource source, Boolean readOnly)
public LoadEvent(Serializable entityId, String entityClassName, boolean isAssociationFetch, EventSource source, Boolean readOnly)
public boolean isAssociationFetch()
public Serializable getEntityId()
public void setEntityId(Serializable entityId)
public String getEntityClassName()
public void setEntityClassName(String entityClassName)
public Object getInstanceToLoad()
public void setInstanceToLoad(Object instanceToLoad)
public LockOptions getLockOptions()
public LockMode getLockMode()
public void setLockMode(LockMode lockMode)
public void setLockTimeout(int timeout)
public int getLockTimeout()
public void setLockScope(boolean cascade)
public boolean getLockScope()
public Object getResult()
public void setResult(Object result)
public PostLoadEvent getPostLoadEvent()
public void setPostLoadEvent(PostLoadEvent postLoadEvent)
public Boolean getReadOnly()
public void setReadOnly(Boolean readOnly)
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.