@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Plate extends Object implements Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Plate.Details |
Modifier | Constructor and Description |
---|---|
|
Plate() |
protected |
Plate(Long id) |
|
Plate(Long id,
boolean loaded)
Main constructor.
|
|
Plate(String _name) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addPlateAcquisition(PlateAcquisition target)
use instead of setPlateAcquisitions .
|
void |
addPlateAcquisitionSet(Collection<PlateAcquisition> targets)
use like addPlateAcquisition.
|
void |
addPlateAnnotationLink(PlateAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addPlateAnnotationLink(PlateAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.PlateAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addPlateAnnotationLink will be called on the addition if it is loaded
|
void |
addPlateAnnotationLinkSet(Collection<PlateAnnotationLink> targets)
use like addPlateAnnotationLink.
|
void |
addScreenPlateLink(ScreenPlateLink target)
use instead of setScreenLinks .
|
void |
addScreenPlateLink(ScreenPlateLink link,
boolean bothSides)
Adds a ome.model.screen.ScreenPlateLink to screenLinks, allowing for recursion -- whether
or not addScreenPlateLink will be called on the addition if it is loaded
|
void |
addScreenPlateLinkSet(Collection<ScreenPlateLink> targets)
use like addScreenPlateLink.
|
void |
addWell(Well target)
use instead of setWells .
|
void |
addWellSet(Collection<Well> targets)
use like addWell.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearPlateAcquisitions()
clears the set.
|
void |
clearScreenLinks()
clears the set.
|
void |
clearWells()
clears the set.
|
<E> List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.PlateAnnotationLink while
collecting the results.
|
<E> List<E> |
collectPlateAcquisitions(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.PlateAcquisition while
collecting the results.
|
<E> List<E> |
collectScreenLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.ScreenPlateLink while
collecting the results.
|
<E> List<E> |
collectWells(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.Well 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> |
eachLinkedScreen(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.Screen while
collecting the results.
|
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
Set<PlateAnnotationLink> |
findPlateAnnotationLink(Annotation target)
find all ome.model.annotations.PlateAnnotationLink which have the argument as their child.
|
Set<ScreenPlateLink> |
findScreenPlateLink(Screen target)
find all ome.model.screen.ScreenPlateLink which have the argument as their parent.
|
protected Set<PlateAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
Map<Long,Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.PlateAnnotationLink that a user has.
|
String |
getColumnNamingConvention()
Simple field ome.model.screen.Plate.columnNamingConvention (java.lang.String)
|
Integer |
getColumns()
Simple field ome.model.screen.Plate.columns (java.lang.Integer)
|
Integer |
getDefaultSample()
Simple field ome.model.screen.Plate.defaultSample (java.lang.Integer)
|
String |
getDescription()
Simple field ome.model.screen.Plate.description (java.lang.String)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
String |
getExternalIdentifier()
Simple field ome.model.screen.Plate.externalIdentifier (java.lang.String)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
The DB unique identifier for this object.
|
String |
getName()
Simple field ome.model.screen.Plate.name (java.lang.String)
|
protected Set<PlateAcquisition> |
getPlateAcquisitions()
returns plateAcquisitions .
|
String |
getRowNamingConvention()
Simple field ome.model.screen.Plate.rowNamingConvention (java.lang.String)
|
Integer |
getRows()
Simple field ome.model.screen.Plate.rows (java.lang.Integer)
|
protected Set<ScreenPlateLink> |
getScreenLinks()
returns screenLinks .
|
Map<Long,Long> |
getScreenLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.screen.ScreenPlateLink that a user has.
|
String |
getStatus()
Simple field ome.model.screen.Plate.status (java.lang.String)
|
Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
Length |
getWellOriginX()
Enum-mapped unit-based field ome.model.screen.Plate.wellOriginX (ome.model.units.Length)
|
Length |
getWellOriginY()
Enum-mapped unit-based field ome.model.screen.Plate.wellOriginY (ome.model.units.Length)
|
protected Set<Well> |
getWells()
returns wells .
|
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<PlateAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
Iterator<PlateAcquisition> |
iteratePlateAcquisitions()
should be used rather than accessing the plateAcquisitions set directly.
|
Iterator<ScreenPlateLink> |
iterateScreenLinks()
should be used rather than accessing the screenLinks set directly.
|
Iterator<Well> |
iterateWells()
should be used rather than accessing the wells set directly.
|
PlateAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.PlateAnnotationLink 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<Screen> |
linkedScreenIterator()
provides an iterator over the child values of the screenLinks.
|
List<Screen> |
linkedScreenList()
produces a
List -copy of the underlying collection. |
ScreenPlateLink |
linkScreen(Screen addition)
Adds a ome.model.screen.ScreenPlateLink to screenLinks .
|
Plate |
newInstance() |
Plate |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
void |
removePlateAcquisition(PlateAcquisition target)
removes a single element from this set and makes the inverse call on ome.model.screen.PlateAcquisition
|
void |
removePlateAcquisitionSet(Collection<PlateAcquisition> targets)
use like removePlateAcquisition
|
void |
removePlateAnnotationLink(PlateAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.PlateAnnotationLink
|
void |
removePlateAnnotationLink(PlateAnnotationLink link,
boolean bothSides)
removes the given PlateAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkPlate again if loaded.
|
void |
removePlateAnnotationLinkSet(Collection<PlateAnnotationLink> targets)
use like removePlateAnnotationLink
|
void |
removeScreenPlateLink(ScreenPlateLink target)
removes a single element from this set and makes the inverse call on ome.model.screen.ScreenPlateLink
|
void |
removeScreenPlateLink(ScreenPlateLink link,
boolean bothSides)
removes the given ScreenPlateLink from screenLinks, allowing for recursion -- whether
or not the removal will call unlinkPlate again if loaded.
|
void |
removeScreenPlateLinkSet(Collection<ScreenPlateLink> targets)
use like removeScreenPlateLink
|
void |
removeWell(Well target)
removes a single element from this set and makes the inverse call on ome.model.screen.Well
|
void |
removeWellSet(Collection<Well> targets)
use like removeWell
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(Set<PlateAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(Map<Long,Long> map) |
void |
setColumnNamingConvention(String columnNamingConvention) |
void |
setColumns(Integer columns) |
void |
setDefaultSample(Integer defaultSample) |
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 Plate.Details instance instead. |
void |
setExternalIdentifier(String externalIdentifier) |
void |
setId(Long id)
usually unneeded.
|
void |
setName(String name) |
protected void |
setPlateAcquisitions(Set<PlateAcquisition> plateAcquisitions)
setter for plateAcquisitions should be avoided.
|
void |
setRowNamingConvention(String rowNamingConvention) |
void |
setRows(Integer rows) |
protected void |
setScreenLinks(Set<ScreenPlateLink> screenLinks)
setter for screenLinks should be avoided.
|
protected void |
setScreenLinksCountPerOwner(Map<Long,Long> map) |
void |
setStatus(String status) |
void |
setVersion(Integer version)
use with caution.
|
void |
setWellOriginX(Length wellOriginX) |
void |
setWellOriginY(Length wellOriginY) |
protected void |
setWells(Set<Well> wells)
setter for wells should be avoided.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfPlateAcquisitions()
returns the size of plateAcquisitions.
|
int |
sizeOfScreenLinks()
returns the size of screenLinks.
|
int |
sizeOfWells()
returns the size of wells.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unlinkScreen(Screen removal)
unlinks all ome.model.screen.Screen instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Collection<PlateAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
Collection<PlateAcquisition> |
unmodifiablePlateAcquisitions()
Returns an unmodifiable collection-view
|
Collection<ScreenPlateLink> |
unmodifiableScreenLinks()
Returns an unmodifiable collection-view
|
Collection<Well> |
unmodifiableWells()
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 Integer defaultSample
protected String columnNamingConvention
protected String rowNamingConvention
protected Length wellOriginX
protected Length wellOriginY
protected Integer rows
protected Integer columns
protected String status
protected String externalIdentifier
protected Set<ScreenPlateLink> screenLinks
public static final String OWNER_FILTER_SCREENLINKS
public static final String GROUP_FILTER_SCREENLINKS
public static final String EVENT_FILTER_SCREENLINKS
public static final String PERMS_FILTER_SCREENLINKS
public static final String OWNER_FILTER_WELLS
public static final String GROUP_FILTER_WELLS
public static final String EVENT_FILTER_WELLS
public static final String PERMS_FILTER_WELLS
protected Set<PlateAcquisition> plateAcquisitions
public static final String OWNER_FILTER_PLATEACQUISITIONS
public static final String GROUP_FILTER_PLATEACQUISITIONS
public static final String EVENT_FILTER_PLATEACQUISITIONS
public static final String PERMS_FILTER_PLATEACQUISITIONS
protected Set<PlateAnnotationLink> 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 String name
protected String description
protected Details details
public static final String DEFAULTSAMPLE
public static final String COLUMNNAMINGCONVENTION
public static final String ROWNAMINGCONVENTION
public static final String WELLORIGINX
public static final String WELLORIGINY
public static final String ROWS
public static final String COLUMNS
public static final String STATUS
public static final String EXTERNALIDENTIFIER
public static final String SCREENLINKSCOUNTPEROWNER
public static final String SCREENLINKS
public static final String WELLS
public static final String PLATEACQUISITIONS
public static final String ANNOTATIONLINKSCOUNTPEROWNER
public static final String ANNOTATIONLINKS
public static final String NAME
public static final String DESCRIPTION
public static final String DETAILS
protected boolean _loaded
public Plate()
protected Plate(Long id)
public Plate(Long id, boolean loaded)
public Plate(String _name)
@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.@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public Integer getDefaultSample()
public void setDefaultSample(Integer defaultSample)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getColumnNamingConvention()
public void setColumnNamingConvention(String columnNamingConvention)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getRowNamingConvention()
public void setRowNamingConvention(String rowNamingConvention)
public Length getWellOriginX()
public void setWellOriginX(Length wellOriginX)
public Length getWellOriginY()
public void setWellOriginY(Length wellOriginY)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public Integer getRows()
public void setRows(Integer rows)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public Integer getColumns()
public void setColumns(Integer columns)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getStatus()
public void setStatus(String status)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getExternalIdentifier()
public void setExternalIdentifier(String externalIdentifier)
protected Set<ScreenPlateLink> getScreenLinks()
protected void setScreenLinks(Set<ScreenPlateLink> screenLinks)
public int sizeOfScreenLinks()
public Iterator<ScreenPlateLink> iterateScreenLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfScreenLinks()
is less than zero.public Collection<ScreenPlateLink> unmodifiableScreenLinks()
public <E> List<E> collectScreenLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateScreenLinks()
internally and so will return a value
even if the underlying collection is null.public void addScreenPlateLink(ScreenPlateLink target)
public void addScreenPlateLinkSet(Collection<ScreenPlateLink> targets)
public void removeScreenPlateLink(ScreenPlateLink target)
public void removeScreenPlateLinkSet(Collection<ScreenPlateLink> targets)
public ScreenPlateLink linkScreen(Screen addition)
public void addScreenPlateLink(ScreenPlateLink link, boolean bothSides)
public Iterator<Screen> linkedScreenIterator()
ConcurrentModificationException
.
Use linkedScreenList()
instead.public Set<ScreenPlateLink> findScreenPlateLink(Screen target)
public List<Screen> linkedScreenList()
List
-copy of the underlying collection. Unlike,
linkedScreenIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> List<E> eachLinkedScreen(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkScreen(Screen removal)
public void removeScreenPlateLink(ScreenPlateLink link, boolean bothSides)
public void clearScreenLinks()
public Map<Long,Long> getScreenLinksCountPerOwner()
protected Set<Well> getWells()
protected void setWells(Set<Well> wells)
public int sizeOfWells()
public Iterator<Well> iterateWells()
EmptyIterator
. To test for a null collection,
see of sizeOfWells()
is less than zero.public Collection<Well> unmodifiableWells()
public <E> List<E> collectWells(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateWells()
internally and so will return a value
even if the underlying collection is null.public void addWell(Well target)
public void addWellSet(Collection<Well> targets)
public void removeWell(Well target)
public void removeWellSet(Collection<Well> targets)
public void clearWells()
protected Set<PlateAcquisition> getPlateAcquisitions()
protected void setPlateAcquisitions(Set<PlateAcquisition> plateAcquisitions)
public int sizeOfPlateAcquisitions()
public Iterator<PlateAcquisition> iteratePlateAcquisitions()
EmptyIterator
. To test for a null collection,
see of sizeOfPlateAcquisitions()
is less than zero.public Collection<PlateAcquisition> unmodifiablePlateAcquisitions()
public <E> List<E> collectPlateAcquisitions(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iteratePlateAcquisitions()
internally and so will return a value
even if the underlying collection is null.public void addPlateAcquisition(PlateAcquisition target)
public void addPlateAcquisitionSet(Collection<PlateAcquisition> targets)
public void removePlateAcquisition(PlateAcquisition target)
public void removePlateAcquisitionSet(Collection<PlateAcquisition> targets)
public void clearPlateAcquisitions()
protected Set<PlateAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(Set<PlateAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public Iterator<PlateAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public Collection<PlateAnnotationLink> 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 addPlateAnnotationLink(PlateAnnotationLink target)
public void addPlateAnnotationLinkSet(Collection<PlateAnnotationLink> targets)
public void removePlateAnnotationLink(PlateAnnotationLink target)
public void removePlateAnnotationLinkSet(Collection<PlateAnnotationLink> targets)
public PlateAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addPlateAnnotationLink(PlateAnnotationLink link, boolean bothSides)
public Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public Set<PlateAnnotationLink> findPlateAnnotationLink(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 removePlateAnnotationLink(PlateAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
public Map<Long,Long> getAnnotationLinksCountPerOwner()
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getName()
public void setName(String name)
@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 Plate.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Plate newInstance()
public Plate 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.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.