@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Screen extends java.lang.Object implements java.io.Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Screen.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.util.Set<ScreenAnnotationLink> |
annotationLinks |
static java.lang.String |
ANNOTATIONLINKS |
static java.lang.String |
ANNOTATIONLINKSCOUNTPEROWNER |
protected java.lang.String |
description |
static java.lang.String |
DESCRIPTION |
protected Details |
details |
static java.lang.String |
DETAILS |
static java.lang.String |
EVENT_FILTER |
static java.lang.String |
EVENT_FILTER_ANNOTATIONLINKS |
static java.lang.String |
EVENT_FILTER_PLATELINKS |
static java.lang.String |
EVENT_FILTER_REAGENTS |
static java.util.Set<java.lang.String> |
FIELDS |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_ANNOTATIONLINKS |
static java.lang.String |
GROUP_FILTER_PLATELINKS |
static java.lang.String |
GROUP_FILTER_REAGENTS |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected java.lang.String |
name |
static java.lang.String |
NAME |
static java.lang.String |
OWNER_FILTER |
static java.lang.String |
OWNER_FILTER_ANNOTATIONLINKS |
static java.lang.String |
OWNER_FILTER_PLATELINKS |
static java.lang.String |
OWNER_FILTER_REAGENTS |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_ANNOTATIONLINKS |
static java.lang.String |
PERMS_FILTER_PLATELINKS |
static java.lang.String |
PERMS_FILTER_REAGENTS |
protected java.util.Set<ScreenPlateLink> |
plateLinks |
static java.lang.String |
PLATELINKS |
static java.lang.String |
PLATELINKSCOUNTPEROWNER |
protected java.lang.String |
protocolDescription |
static java.lang.String |
PROTOCOLDESCRIPTION |
protected java.lang.String |
protocolIdentifier |
static java.lang.String |
PROTOCOLIDENTIFIER |
protected java.util.Set<Reagent> |
reagents |
static java.lang.String |
REAGENTS |
protected java.lang.String |
reagentSetDescription |
static java.lang.String |
REAGENTSETDESCRIPTION |
protected java.lang.String |
reagentSetIdentifier |
static java.lang.String |
REAGENTSETIDENTIFIER |
protected java.lang.String |
type |
static java.lang.String |
TYPE |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
Screen() |
protected |
Screen(java.lang.Long id) |
|
Screen(java.lang.Long id,
boolean loaded)
Main constructor.
|
|
Screen(java.lang.String _name) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addReagent(Reagent target)
use instead of setReagents .
|
void |
addReagentSet(java.util.Collection<Reagent> targets)
use like addReagent.
|
void |
addScreenAnnotationLink(ScreenAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addScreenAnnotationLink(ScreenAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ScreenAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addScreenAnnotationLink will be called on the addition if it is loaded
|
void |
addScreenAnnotationLinkSet(java.util.Collection<ScreenAnnotationLink> targets)
use like addScreenAnnotationLink.
|
void |
addScreenPlateLink(ScreenPlateLink target)
use instead of setPlateLinks .
|
void |
addScreenPlateLink(ScreenPlateLink link,
boolean bothSides)
Adds a ome.model.screen.ScreenPlateLink to plateLinks, allowing for recursion -- whether
or not addScreenPlateLink will be called on the addition if it is loaded
|
void |
addScreenPlateLinkSet(java.util.Collection<ScreenPlateLink> targets)
use like addScreenPlateLink.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearPlateLinks()
clears the set.
|
void |
clearReagents()
clears the set.
|
<E> java.util.List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.ScreenAnnotationLink while
collecting the results.
|
<E> java.util.List<E> |
collectPlateLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.ScreenPlateLink while
collecting the results.
|
<E> java.util.List<E> |
collectReagents(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.Reagent while
collecting the results.
|
<E> java.util.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> java.util.List<E> |
eachLinkedPlate(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.Plate while
collecting the results.
|
protected void |
errorIfUnloaded() |
java.util.Set<java.lang.String> |
fields()
returns a Set of field names that belong to this class
|
java.util.Set<ScreenAnnotationLink> |
findScreenAnnotationLink(Annotation target)
find all ome.model.annotations.ScreenAnnotationLink which have the argument as their child.
|
java.util.Set<ScreenPlateLink> |
findScreenPlateLink(Plate target)
find all ome.model.screen.ScreenPlateLink which have the argument as their child.
|
protected java.util.Set<ScreenAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ScreenAnnotationLink that a user has.
|
java.lang.String |
getDescription()
Simple field ome.model.screen.Screen.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. |
java.lang.Long |
getId()
The DB unique identifier for this object.
|
java.lang.String |
getName()
Simple field ome.model.screen.Screen.name (java.lang.String)
|
protected java.util.Set<ScreenPlateLink> |
getPlateLinks()
returns plateLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getPlateLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.screen.ScreenPlateLink that a user has.
|
java.lang.String |
getProtocolDescription()
Simple field ome.model.screen.Screen.protocolDescription (java.lang.String)
|
java.lang.String |
getProtocolIdentifier()
Simple field ome.model.screen.Screen.protocolIdentifier (java.lang.String)
|
protected java.util.Set<Reagent> |
getReagents()
returns reagents .
|
java.lang.String |
getReagentSetDescription()
Simple field ome.model.screen.Screen.reagentSetDescription (java.lang.String)
|
java.lang.String |
getReagentSetIdentifier()
Simple field ome.model.screen.Screen.reagentSetIdentifier (java.lang.String)
|
java.lang.String |
getType()
Simple field ome.model.screen.Screen.type (java.lang.String)
|
java.lang.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() |
java.util.Iterator<ScreenAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
java.util.Iterator<ScreenPlateLink> |
iteratePlateLinks()
should be used rather than accessing the plateLinks set directly.
|
java.util.Iterator<Reagent> |
iterateReagents()
should be used rather than accessing the reagents set directly.
|
ScreenAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ScreenAnnotationLink to annotationLinks .
|
java.util.Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
java.util.List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
java.util.Iterator<Plate> |
linkedPlateIterator()
provides an iterator over the parent values of the plateLinks.
|
java.util.List<Plate> |
linkedPlateList()
produces a
List -copy of the underlying collection. |
ScreenPlateLink |
linkPlate(Plate addition)
Adds a ome.model.screen.ScreenPlateLink to plateLinks .
|
Screen |
newInstance() |
Screen |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeReagent(Reagent target)
removes a single element from this set and makes the inverse call on ome.model.screen.Reagent
|
void |
removeReagentSet(java.util.Collection<Reagent> targets)
use like removeReagent
|
void |
removeScreenAnnotationLink(ScreenAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ScreenAnnotationLink
|
void |
removeScreenAnnotationLink(ScreenAnnotationLink link,
boolean bothSides)
removes the given ScreenAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkScreen again if loaded.
|
void |
removeScreenAnnotationLinkSet(java.util.Collection<ScreenAnnotationLink> targets)
use like removeScreenAnnotationLink
|
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 plateLinks, allowing for recursion -- whether
or not the removal will call unlinkScreen again if loaded.
|
void |
removeScreenPlateLinkSet(java.util.Collection<ScreenPlateLink> targets)
use like removeScreenPlateLink
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(java.util.Set<ScreenAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
void |
setDescription(java.lang.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 Screen.Details instance instead. |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setName(java.lang.String name) |
protected void |
setPlateLinks(java.util.Set<ScreenPlateLink> plateLinks)
setter for plateLinks should be avoided.
|
protected void |
setPlateLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
void |
setProtocolDescription(java.lang.String protocolDescription) |
void |
setProtocolIdentifier(java.lang.String protocolIdentifier) |
protected void |
setReagents(java.util.Set<Reagent> reagents)
setter for reagents should be avoided.
|
void |
setReagentSetDescription(java.lang.String reagentSetDescription) |
void |
setReagentSetIdentifier(java.lang.String reagentSetIdentifier) |
void |
setType(java.lang.String type) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfPlateLinks()
returns the size of plateLinks.
|
int |
sizeOfReagents()
returns the size of reagents.
|
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unlinkPlate(Plate removal)
unlinks all ome.model.screen.Plate instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<ScreenAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
java.util.Collection<ScreenPlateLink> |
unmodifiablePlateLinks()
Returns an unmodifiable collection-view
|
java.util.Collection<Reagent> |
unmodifiableReagents()
Returns an unmodifiable collection-view
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final java.lang.String OWNER_FILTER
public static final java.lang.String GROUP_FILTER
public static final java.lang.String EVENT_FILTER
public static final java.lang.String PERMS_FILTER
public static final java.lang.String ID
protected java.lang.Long id
public static final java.lang.String VERSION
protected java.lang.Integer version
protected java.lang.String type
protected java.lang.String protocolIdentifier
protected java.lang.String protocolDescription
protected java.lang.String reagentSetIdentifier
protected java.lang.String reagentSetDescription
protected java.util.Set<ScreenPlateLink> plateLinks
public static final java.lang.String OWNER_FILTER_PLATELINKS
public static final java.lang.String GROUP_FILTER_PLATELINKS
public static final java.lang.String EVENT_FILTER_PLATELINKS
public static final java.lang.String PERMS_FILTER_PLATELINKS
protected java.util.Set<Reagent> reagents
public static final java.lang.String OWNER_FILTER_REAGENTS
public static final java.lang.String GROUP_FILTER_REAGENTS
public static final java.lang.String EVENT_FILTER_REAGENTS
public static final java.lang.String PERMS_FILTER_REAGENTS
protected java.util.Set<ScreenAnnotationLink> annotationLinks
public static final java.lang.String OWNER_FILTER_ANNOTATIONLINKS
public static final java.lang.String GROUP_FILTER_ANNOTATIONLINKS
public static final java.lang.String EVENT_FILTER_ANNOTATIONLINKS
public static final java.lang.String PERMS_FILTER_ANNOTATIONLINKS
protected java.lang.String name
protected java.lang.String description
protected Details details
public static final java.lang.String TYPE
public static final java.lang.String PROTOCOLIDENTIFIER
public static final java.lang.String PROTOCOLDESCRIPTION
public static final java.lang.String REAGENTSETIDENTIFIER
public static final java.lang.String REAGENTSETDESCRIPTION
public static final java.lang.String PLATELINKSCOUNTPEROWNER
public static final java.lang.String PLATELINKS
public static final java.lang.String REAGENTS
public static final java.lang.String ANNOTATIONLINKSCOUNTPEROWNER
public static final java.lang.String ANNOTATIONLINKS
public static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
public static final java.lang.String DETAILS
public static final java.util.Set<java.lang.String> FIELDS
protected java.util.Map<java.lang.String,java.lang.Object> _dynamicFields
protected boolean _loaded
public Screen()
protected Screen(java.lang.Long id)
public Screen(java.lang.Long id, boolean loaded)
public Screen(java.lang.String _name)
@DocumentId public java.lang.Long getId()
public void setId(java.lang.Long id)
IObject
public java.lang.Integer getVersion()
getVersion
in interface IMutable
public void setVersion(java.lang.Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getType()
public void setType(java.lang.String type)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getProtocolIdentifier()
public void setProtocolIdentifier(java.lang.String protocolIdentifier)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getProtocolDescription()
public void setProtocolDescription(java.lang.String protocolDescription)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getReagentSetIdentifier()
public void setReagentSetIdentifier(java.lang.String reagentSetIdentifier)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getReagentSetDescription()
public void setReagentSetDescription(java.lang.String reagentSetDescription)
protected java.util.Set<ScreenPlateLink> getPlateLinks()
protected void setPlateLinks(java.util.Set<ScreenPlateLink> plateLinks)
public int sizeOfPlateLinks()
public java.util.Iterator<ScreenPlateLink> iteratePlateLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfPlateLinks()
is less than zero.public java.util.Collection<ScreenPlateLink> unmodifiablePlateLinks()
public <E> java.util.List<E> collectPlateLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iteratePlateLinks()
internally and so will return a value
even if the underlying collection is null.public void addScreenPlateLink(ScreenPlateLink target)
public void addScreenPlateLinkSet(java.util.Collection<ScreenPlateLink> targets)
public void removeScreenPlateLink(ScreenPlateLink target)
public void removeScreenPlateLinkSet(java.util.Collection<ScreenPlateLink> targets)
public ScreenPlateLink linkPlate(Plate addition)
public void addScreenPlateLink(ScreenPlateLink link, boolean bothSides)
public java.util.Iterator<Plate> linkedPlateIterator()
ConcurrentModificationException
.
Use linkedPlateList()
instead.public java.util.Set<ScreenPlateLink> findScreenPlateLink(Plate target)
public java.util.List<Plate> linkedPlateList()
List
-copy of the underlying collection. Unlike,
linkedPlateIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> java.util.List<E> eachLinkedPlate(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkPlate(Plate removal)
public void removeScreenPlateLink(ScreenPlateLink link, boolean bothSides)
public void clearPlateLinks()
protected void setPlateLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getPlateLinksCountPerOwner()
protected java.util.Set<Reagent> getReagents()
protected void setReagents(java.util.Set<Reagent> reagents)
public int sizeOfReagents()
public java.util.Iterator<Reagent> iterateReagents()
EmptyIterator
. To test for a null collection,
see of sizeOfReagents()
is less than zero.public java.util.Collection<Reagent> unmodifiableReagents()
public <E> java.util.List<E> collectReagents(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateReagents()
internally and so will return a value
even if the underlying collection is null.public void addReagent(Reagent target)
public void addReagentSet(java.util.Collection<Reagent> targets)
public void removeReagent(Reagent target)
public void removeReagentSet(java.util.Collection<Reagent> targets)
public void clearReagents()
protected java.util.Set<ScreenAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(java.util.Set<ScreenAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public java.util.Iterator<ScreenAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public java.util.Collection<ScreenAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> java.util.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 addScreenAnnotationLink(ScreenAnnotationLink target)
public void addScreenAnnotationLinkSet(java.util.Collection<ScreenAnnotationLink> targets)
public void removeScreenAnnotationLink(ScreenAnnotationLink target)
public void removeScreenAnnotationLinkSet(java.util.Collection<ScreenAnnotationLink> targets)
public ScreenAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addScreenAnnotationLink(ScreenAnnotationLink link, boolean bothSides)
public java.util.Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public java.util.Set<ScreenAnnotationLink> findScreenAnnotationLink(Annotation target)
public java.util.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> java.util.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 removeScreenAnnotationLink(ScreenAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
protected void setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getAnnotationLinksCountPerOwner()
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getName()
public void setName(java.lang.String name)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getDescription()
public void setDescription(java.lang.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 Screen.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Screen newInstance()
public Screen proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> fields()
IObject
public java.lang.Object retrieve(java.lang.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(java.lang.String field, java.lang.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(java.lang.String propertyName)
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.