@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Well extends Object implements Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Well.Details |
Modifier | Constructor and Description |
---|---|
|
Well() |
protected |
Well(Long id) |
|
Well(Long id,
boolean loaded)
Main constructor.
|
|
Well(Plate _plate) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addWellAnnotationLink(WellAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addWellAnnotationLink(WellAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.WellAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addWellAnnotationLink will be called on the addition if it is loaded
|
void |
addWellAnnotationLinkSet(Collection<WellAnnotationLink> targets)
use like addWellAnnotationLink.
|
void |
addWellReagentLink(WellReagentLink target)
use instead of setReagentLinks .
|
void |
addWellReagentLink(WellReagentLink link,
boolean bothSides)
Adds a ome.model.screen.WellReagentLink to reagentLinks, allowing for recursion -- whether
or not addWellReagentLink will be called on the addition if it is loaded
|
void |
addWellReagentLinkSet(Collection<WellReagentLink> targets)
use like addWellReagentLink.
|
void |
addWellSample(WellSample target)
use instead of setWellSamples .
|
void |
addWellSampleSet(Collection<WellSample> targets)
use like addWellSample.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearReagentLinks()
clears the set.
|
void |
clearWellSamples()
clears the set.
|
<E> List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.WellAnnotationLink while
collecting the results.
|
<E> List<E> |
collectReagentLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.WellReagentLink while
collecting the results.
|
<E> List<E> |
collectWellSamples(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.WellSample while
collecting the results.
|
<E> List<E> |
eachLinkedAnnotation(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.Annotation while
collecting the results.
|
<E> List<E> |
eachLinkedReagent(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.Reagent while
collecting the results.
|
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
Set<WellAnnotationLink> |
findWellAnnotationLink(Annotation target)
find all ome.model.annotations.WellAnnotationLink which have the argument as their child.
|
Set<WellReagentLink> |
findWellReagentLink(Reagent target)
find all ome.model.screen.WellReagentLink which have the argument as their child.
|
Integer |
getAlpha()
Simple field ome.model.screen.Well.alpha (java.lang.Integer)
|
protected Set<WellAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
Map<Long,Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.WellAnnotationLink that a user has.
|
Integer |
getBlue()
Simple field ome.model.screen.Well.blue (java.lang.Integer)
|
Integer |
getColumn()
Simple field ome.model.screen.Well.column (java.lang.Integer)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
String |
getExternalDescription()
Simple field ome.model.screen.Well.externalDescription (java.lang.String)
|
String |
getExternalIdentifier()
Simple field ome.model.screen.Well.externalIdentifier (java.lang.String)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Integer |
getGreen()
Simple field ome.model.screen.Well.green (java.lang.Integer)
|
Long |
getId()
The DB unique identifier for this object.
|
Plate |
getPlate()
Many-to-one field ome.model.screen.Well.plate (ome.model.screen.Plate)
|
WellSample |
getPrimaryWellSample()
Gets the first element of wellSamples which can be interpreted as the
primary or default element in some situations.
|
protected Set<WellReagentLink> |
getReagentLinks()
returns reagentLinks .
|
Map<Long,Long> |
getReagentLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.screen.WellReagentLink that a user has.
|
Integer |
getRed()
Simple field ome.model.screen.Well.red (java.lang.Integer)
|
Integer |
getRow()
Simple field ome.model.screen.Well.row (java.lang.Integer)
|
String |
getStatus()
Simple field ome.model.screen.Well.status (java.lang.String)
|
String |
getType()
Simple field ome.model.screen.Well.type (java.lang.String)
|
Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
WellSample |
getWellSample(int index)
Gets the ome.model.screen.WellSample at the given index.
|
protected List<WellSample> |
getWellSamples()
returns wellSamples .
|
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<WellAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
Iterator<WellReagentLink> |
iterateReagentLinks()
should be used rather than accessing the reagentLinks set directly.
|
Iterator<WellSample> |
iterateWellSamples()
should be used rather than accessing the wellSamples set directly.
|
WellAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.WellAnnotationLink to annotationLinks .
|
Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
Iterator<Reagent> |
linkedReagentIterator()
provides an iterator over the parent values of the reagentLinks.
|
List<Reagent> |
linkedReagentList()
produces a
List -copy of the underlying collection. |
WellReagentLink |
linkReagent(Reagent addition)
Adds a ome.model.screen.WellReagentLink to reagentLinks .
|
Well |
newInstance() |
Well |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
void |
removeWellAnnotationLink(WellAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.WellAnnotationLink
|
void |
removeWellAnnotationLink(WellAnnotationLink link,
boolean bothSides)
removes the given WellAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkWell again if loaded.
|
void |
removeWellAnnotationLinkSet(Collection<WellAnnotationLink> targets)
use like removeWellAnnotationLink
|
void |
removeWellReagentLink(WellReagentLink target)
removes a single element from this set and makes the inverse call on ome.model.screen.WellReagentLink
|
void |
removeWellReagentLink(WellReagentLink link,
boolean bothSides)
removes the given WellReagentLink from reagentLinks, allowing for recursion -- whether
or not the removal will call unlinkWell again if loaded.
|
void |
removeWellReagentLinkSet(Collection<WellReagentLink> targets)
use like removeWellReagentLink
|
void |
removeWellSample(WellSample target)
removes a single element from this set and makes the inverse call on ome.model.screen.WellSample
|
void |
removeWellSampleSet(Collection<WellSample> targets)
use like removeWellSample
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
void |
setAlpha(Integer alpha) |
protected void |
setAnnotationLinks(Set<WellAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(Map<Long,Long> map) |
void |
setBlue(Integer blue) |
void |
setColumn(Integer column) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Well.Details instance instead. |
void |
setExternalDescription(String externalDescription) |
void |
setExternalIdentifier(String externalIdentifier) |
void |
setGreen(Integer green) |
void |
setId(Long id)
usually unneeded.
|
void |
setPlate(Plate plate) |
WellSample |
setPrimaryWellSample(WellSample element)
Swaps the first element of wellSamples with the first instance of the
given element.
|
protected void |
setReagentLinks(Set<WellReagentLink> reagentLinks)
setter for reagentLinks should be avoided.
|
protected void |
setReagentLinksCountPerOwner(Map<Long,Long> map) |
void |
setRed(Integer red) |
void |
setRow(Integer row) |
void |
setStatus(String status) |
void |
setType(String type) |
void |
setVersion(Integer version)
use with caution.
|
WellSample |
setWellSample(int index,
WellSample element)
Sets the ome.model.screen.WellSample at the given index.
|
protected void |
setWellSamples(List<WellSample> wellSamples)
setter for wellSamples should be avoided.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfReagentLinks()
returns the size of reagentLinks.
|
int |
sizeOfWellSamples()
returns the size of wellSamples.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unlinkReagent(Reagent removal)
unlinks all ome.model.screen.Reagent instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Collection<WellAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
Collection<WellReagentLink> |
unmodifiableReagentLinks()
Returns an unmodifiable collection-view
|
Collection<WellSample> |
unmodifiableWellSamples()
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 String status
protected Integer column
protected Integer row
protected Integer red
protected Integer green
protected Integer blue
protected Integer alpha
protected Set<WellReagentLink> reagentLinks
public static final String OWNER_FILTER_REAGENTLINKS
public static final String GROUP_FILTER_REAGENTLINKS
public static final String EVENT_FILTER_REAGENTLINKS
public static final String PERMS_FILTER_REAGENTLINKS
protected String externalDescription
protected String externalIdentifier
protected String type
protected List<WellSample> wellSamples
public static final String OWNER_FILTER_WELLSAMPLES
public static final String GROUP_FILTER_WELLSAMPLES
public static final String EVENT_FILTER_WELLSAMPLES
public static final String PERMS_FILTER_WELLSAMPLES
protected Plate plate
protected Set<WellAnnotationLink> annotationLinks
public static final String OWNER_FILTER_ANNOTATIONLINKS
public static final String GROUP_FILTER_ANNOTATIONLINKS
public static final String EVENT_FILTER_ANNOTATIONLINKS
public static final String PERMS_FILTER_ANNOTATIONLINKS
protected Details details
public static final String STATUS
public static final String COLUMN
public static final String ROW
public static final String RED
public static final String GREEN
public static final String BLUE
public static final String ALPHA
public static final String REAGENTLINKSCOUNTPEROWNER
public static final String REAGENTLINKS
public static final String EXTERNALDESCRIPTION
public static final String EXTERNALIDENTIFIER
public static final String TYPE
public static final String WELLSAMPLES
public static final String PLATE
public static final String ANNOTATIONLINKSCOUNTPEROWNER
public static final String ANNOTATIONLINKS
public static final String DETAILS
protected boolean _loaded
public Well()
protected Well(Long id)
public Well(Long id, boolean loaded)
public Well(Plate _plate)
@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.@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getStatus()
public void setStatus(String status)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getColumn()
public void setColumn(Integer column)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getRow()
public void setRow(Integer row)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getRed()
public void setRed(Integer red)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getGreen()
public void setGreen(Integer green)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getBlue()
public void setBlue(Integer blue)
@Fields(value={@Field(index=UN_TOKENIZED),@Field(index=UN_TOKENIZED,name="combined_fields")}) public Integer getAlpha()
public void setAlpha(Integer alpha)
protected Set<WellReagentLink> getReagentLinks()
protected void setReagentLinks(Set<WellReagentLink> reagentLinks)
public int sizeOfReagentLinks()
public Iterator<WellReagentLink> iterateReagentLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfReagentLinks()
is less than zero.public Collection<WellReagentLink> unmodifiableReagentLinks()
public <E> List<E> collectReagentLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateReagentLinks()
internally and so will return a value
even if the underlying collection is null.public void addWellReagentLink(WellReagentLink target)
public void addWellReagentLinkSet(Collection<WellReagentLink> targets)
public void removeWellReagentLink(WellReagentLink target)
public void removeWellReagentLinkSet(Collection<WellReagentLink> targets)
public WellReagentLink linkReagent(Reagent addition)
public void addWellReagentLink(WellReagentLink link, boolean bothSides)
public Iterator<Reagent> linkedReagentIterator()
ConcurrentModificationException
.
Use linkedReagentList()
instead.public Set<WellReagentLink> findWellReagentLink(Reagent target)
public List<Reagent> linkedReagentList()
List
-copy of the underlying collection. Unlike,
linkedReagentIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> List<E> eachLinkedReagent(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkReagent(Reagent removal)
public void removeWellReagentLink(WellReagentLink link, boolean bothSides)
public void clearReagentLinks()
public Map<Long,Long> getReagentLinksCountPerOwner()
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getExternalDescription()
public void setExternalDescription(String externalDescription)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getExternalIdentifier()
public void setExternalIdentifier(String externalIdentifier)
@Fields(value={@Field(index=TOKENIZED),@Field(index=TOKENIZED,name="combined_fields")}) public String getType()
public void setType(String type)
protected List<WellSample> getWellSamples()
protected void setWellSamples(List<WellSample> wellSamples)
public int sizeOfWellSamples()
public Iterator<WellSample> iterateWellSamples()
EmptyIterator
. To test for a null collection,
see of sizeOfWellSamples()
is less than zero.public Collection<WellSample> unmodifiableWellSamples()
public <E> List<E> collectWellSamples(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateWellSamples()
internally and so will return a value
even if the underlying collection is null.public void addWellSample(WellSample target)
public void addWellSampleSet(Collection<WellSample> targets)
public void removeWellSample(WellSample target)
public void removeWellSampleSet(Collection<WellSample> targets)
public void clearWellSamples()
public WellSample getWellSample(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public WellSample setWellSample(int index, WellSample element) throws IndexOutOfBoundsException
List.set(int, Object)
contract. To extend the list, use addWellSample(WellSample)
.IndexOutOfBoundsException
List.set(int, Object)
public WellSample getPrimaryWellSample() throws IndexOutOfBoundsException
IndexOutOfBoundsException
is throws. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfWellSamples()
for more information.IndexOutOfBoundsException
public WellSample setPrimaryWellSample(WellSample element) throws IndexOutOfBoundsException
IndexOutOfBoundsException
will be thrown. Returns the swapped
element. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfWellSamples()
for more information.IndexOutOfBoundsException
public Plate getPlate()
public void setPlate(Plate plate)
protected Set<WellAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(Set<WellAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public Iterator<WellAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public Collection<WellAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> List<E> collectAnnotationLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateAnnotationLinks()
internally and so will return a value
even if the underlying collection is null.collectAnnotationLinks
in interface IAnnotated
public void addWellAnnotationLink(WellAnnotationLink target)
public void addWellAnnotationLinkSet(Collection<WellAnnotationLink> targets)
public void removeWellAnnotationLink(WellAnnotationLink target)
public void removeWellAnnotationLinkSet(Collection<WellAnnotationLink> targets)
public WellAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addWellAnnotationLink(WellAnnotationLink link, boolean bothSides)
public Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public Set<WellAnnotationLink> findWellAnnotationLink(Annotation target)
public List<Annotation> linkedAnnotationList()
List
-copy of the underlying collection. Unlike,
linkedAnnotationIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.linkedAnnotationList
in interface IAnnotated
public <E> List<E> eachLinkedAnnotation(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.eachLinkedAnnotation
in interface IAnnotated
public void unlinkAnnotation(Annotation removal)
unlinkAnnotation
in interface IAnnotated
public void removeWellAnnotationLink(WellAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
public Map<Long,Long> getAnnotationLinksCountPerOwner()
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 Well.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Well newInstance()
public Well 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.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.