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) |
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) |
Modifier and Type | Method and Description |
---|---|
String |
getEntityClassName() |
Serializable |
getEntityId() |
Object |
getInstanceToLoad() |
LockMode |
getLockMode() |
LockOptions |
getLockOptions() |
boolean |
getLockScope() |
int |
getLockTimeout() |
PostLoadEvent |
getPostLoadEvent() |
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 |
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)
public LoadEvent(Serializable entityId, String entityClassName, LockMode lockMode, EventSource source)
public LoadEvent(Serializable entityId, String entityClassName, LockOptions lockOptions, EventSource source)
public LoadEvent(Serializable entityId, String entityClassName, boolean isAssociationFetch, EventSource source)
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)
Copyright © 2021 JBoss by Red Hat. All rights reserved.