@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class EventLog extends Object implements Serializable, IObject, IGlobal
Modifier and Type | Class and Description |
---|---|
static class |
EventLog.Details |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
_dynamicFields |
protected boolean |
_loaded |
protected String |
action |
static String |
ACTION |
protected Details |
details |
static String |
DETAILS |
protected Long |
entityId |
static String |
ENTITYID |
protected String |
entityType |
static String |
ENTITYTYPE |
protected Event |
event |
static String |
EVENT |
static Set<String> |
FIELDS |
protected Long |
id |
static String |
ID |
Modifier | Constructor and Description |
---|---|
|
EventLog() |
protected |
EventLog(Long id) |
|
EventLog(Long id,
boolean loaded)
Main constructor.
|
|
EventLog(Long _entityId,
String _entityType,
String _action,
Event _event) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
String |
getAction()
Simple field ome.model.meta.EventLog.action (java.lang.String)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
Long |
getEntityId()
Simple field ome.model.meta.EventLog.entityId (java.lang.Long)
|
String |
getEntityType()
Simple field ome.model.meta.EventLog.entityType (java.lang.String)
|
Event |
getEvent()
Many-to-one field ome.model.meta.EventLog.event (ome.model.meta.Event)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
The DB unique identifier for this object.
|
boolean |
isLoaded()
transient field (not stored in the DB) which specifies whether this
object has been loaded from the DB or is only a wrapper around the ID.
|
boolean |
isValid()
calls the class-specific validator for this instance and returns the
value from
Validation.isValid() |
EventLog |
newInstance() |
EventLog |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
void |
setAction(String action) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the EventLog.Details instance instead. |
void |
setEntityId(Long entityId) |
void |
setEntityType(String entityType) |
void |
setEvent(Event event) |
void |
setId(Long id)
usually unneeded.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final String ID
protected Long id
protected Long entityId
protected String entityType
protected String action
protected Event event
protected Details details
public static final String ENTITYID
public static final String ENTITYTYPE
public static final String ACTION
public static final String EVENT
public static final String DETAILS
protected boolean _loaded
public EventLog()
protected EventLog(Long id)
public EventLog(Long id, boolean loaded)
@DocumentId public Long getId()
public void setId(Long id)
IObject
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public Long getEntityId()
public void setEntityId(Long entityId)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getEntityType()
public void setEntityType(String entityType)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getAction()
public void setAction(String action)
public Event getEvent()
public void setEvent(Event event)
public Details getDetails()
Details
type.getDetails
in interface IObject
protected void setDetails(Details details)
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the EventLog.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public EventLog newInstance()
public EventLog proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public Set<String> fields()
IObject
public Object retrieve(String field)
IObject
field
which match a field of this instance will be delegated to the accessors.
Otherwise, values will be retrieved from a lazy-loaded map filled by
calls to IObject.putAt(String, Object)
public void putAt(String field, Object value)
IObject
field
which
match a field of this instance will be delegated to the accessors.
Otherwise, values will be stored in a lazy-loaded map.public boolean isLoaded()
IObject
protected void errorIfUnloaded()
public void unload()
IObject
public final GraphHolder getGraphHolder()
IObject
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.getGraphHolder
in interface IObject
protected void throwNullCollectionException(String propertyName)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.