@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Experiment extends Object implements Serializable, IObject, IMutable
Modifier and Type | Class and Description |
---|---|
static class |
Experiment.Details |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
_dynamicFields |
protected boolean |
_loaded |
protected String |
description |
static String |
DESCRIPTION |
protected Details |
details |
static String |
DETAILS |
static String |
EVENT_FILTER |
static String |
EVENT_FILTER_MICROBEAMMANIPULATION |
static Set<String> |
FIELDS |
static String |
GROUP_FILTER |
static String |
GROUP_FILTER_MICROBEAMMANIPULATION |
protected Long |
id |
static String |
ID |
protected Set<MicrobeamManipulation> |
microbeamManipulation |
static String |
MICROBEAMMANIPULATION |
static String |
OWNER_FILTER |
static String |
OWNER_FILTER_MICROBEAMMANIPULATION |
static String |
PERMS_FILTER |
static String |
PERMS_FILTER_MICROBEAMMANIPULATION |
protected ExperimentType |
type |
static String |
TYPE |
protected Integer |
version |
static String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
Experiment() |
|
Experiment(ExperimentType _type) |
protected |
Experiment(Long id) |
|
Experiment(Long id,
boolean loaded)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addMicrobeamManipulation(MicrobeamManipulation target)
use instead of setMicrobeamManipulation .
|
void |
addMicrobeamManipulationSet(Collection<MicrobeamManipulation> targets)
use like addMicrobeamManipulation.
|
void |
clearMicrobeamManipulation()
clears the set.
|
<E> List<E> |
collectMicrobeamManipulation(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.experiment.MicrobeamManipulation while
collecting the results.
|
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
String |
getDescription()
Simple field ome.model.experiment.Experiment.description (java.lang.String)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
The DB unique identifier for this object.
|
protected Set<MicrobeamManipulation> |
getMicrobeamManipulation()
returns microbeamManipulation .
|
ExperimentType |
getType()
Many-to-one field ome.model.experiment.Experiment.type (ome.model.enums.ExperimentType)
|
Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
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() |
Iterator<MicrobeamManipulation> |
iterateMicrobeamManipulation()
should be used rather than accessing the microbeamManipulation set directly.
|
Experiment |
newInstance() |
Experiment |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
void |
removeMicrobeamManipulation(MicrobeamManipulation target)
removes a single element from this set and makes the inverse call on ome.model.experiment.MicrobeamManipulation
|
void |
removeMicrobeamManipulationSet(Collection<MicrobeamManipulation> targets)
use like removeMicrobeamManipulation
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
void |
setDescription(String description) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Experiment.Details instance instead. |
void |
setId(Long id)
usually unneeded.
|
protected void |
setMicrobeamManipulation(Set<MicrobeamManipulation> microbeamManipulation)
setter for microbeamManipulation should be avoided.
|
void |
setType(ExperimentType type) |
void |
setVersion(Integer version)
use with caution.
|
int |
sizeOfMicrobeamManipulation()
returns the size of microbeamManipulation.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Collection<MicrobeamManipulation> |
unmodifiableMicrobeamManipulation()
Returns an unmodifiable collection-view
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final String OWNER_FILTER
public static final String GROUP_FILTER
public static final String EVENT_FILTER
public static final String PERMS_FILTER
public static final String ID
protected Long id
public static final String VERSION
protected Integer version
protected ExperimentType type
protected Set<MicrobeamManipulation> microbeamManipulation
public static final String OWNER_FILTER_MICROBEAMMANIPULATION
public static final String GROUP_FILTER_MICROBEAMMANIPULATION
public static final String EVENT_FILTER_MICROBEAMMANIPULATION
public static final String PERMS_FILTER_MICROBEAMMANIPULATION
protected String description
protected Details details
public static final String TYPE
public static final String MICROBEAMMANIPULATION
public static final String DESCRIPTION
public static final String DETAILS
protected boolean _loaded
public Experiment()
protected Experiment(Long id)
public Experiment(Long id, boolean loaded)
public Experiment(ExperimentType _type)
@DocumentId public Long getId()
public void setId(Long id)
IObject
public Integer getVersion()
getVersion
in interface IMutable
public void setVersion(Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.public ExperimentType getType()
public void setType(ExperimentType type)
protected Set<MicrobeamManipulation> getMicrobeamManipulation()
protected void setMicrobeamManipulation(Set<MicrobeamManipulation> microbeamManipulation)
public int sizeOfMicrobeamManipulation()
public Iterator<MicrobeamManipulation> iterateMicrobeamManipulation()
EmptyIterator
. To test for a null collection,
see of sizeOfMicrobeamManipulation()
is less than zero.public Collection<MicrobeamManipulation> unmodifiableMicrobeamManipulation()
public <E> List<E> collectMicrobeamManipulation(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateMicrobeamManipulation()
internally and so will return a value
even if the underlying collection is null.public void addMicrobeamManipulation(MicrobeamManipulation target)
public void addMicrobeamManipulationSet(Collection<MicrobeamManipulation> targets)
public void removeMicrobeamManipulation(MicrobeamManipulation target)
public void removeMicrobeamManipulationSet(Collection<MicrobeamManipulation> targets)
public void clearMicrobeamManipulation()
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getDescription()
public void setDescription(String description)
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 Experiment.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Experiment newInstance()
public Experiment 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.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.