public static class PersistenceTools.RefId
extends java.lang.Object
PersistenceTools.getReferenceId(BaseGenericIdEntity, String)
method.isLoaded()
,
getValue()
Modifier and Type | Method and Description |
---|---|
static PersistenceTools.RefId |
create(java.lang.String name,
java.lang.Object value) |
static PersistenceTools.RefId |
createNotLoaded(java.lang.String name) |
java.lang.Object |
getValue()
Returns the reference ID value (can be null) if
isLoaded() is true |
boolean |
isLoaded()
Returns true if the reference ID has been loaded and can be retrieved by calling
getValue() |
public static PersistenceTools.RefId create(java.lang.String name, java.lang.Object value)
public static PersistenceTools.RefId createNotLoaded(java.lang.String name)
public boolean isLoaded()
getValue()
@Nullable public java.lang.Object getValue()
isLoaded()
is truejava.lang.IllegalStateException
- if isLoaded()
is false