@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Screen extends Object implements Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Screen.Details |
Modifier | Constructor and Description |
---|---|
|
Screen() |
protected |
Screen(Long id) |
|
Screen(Long id,
boolean loaded)
Main constructor.
|
|
Screen(String _name) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addReagent(Reagent target)
use instead of setReagents .
|
void |
addReagentSet(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(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(Collection<ScreenPlateLink> targets)
use like addScreenPlateLink.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearPlateLinks()
clears the set.
|
void |
clearReagents()
clears the set.
|
<E> 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> 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> 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> 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> |
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() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
Set<ScreenAnnotationLink> |
findScreenAnnotationLink(Annotation target)
find all ome.model.annotations.ScreenAnnotationLink which have the argument as their child.
|
Set<ScreenPlateLink> |
findScreenPlateLink(Plate target)
find all ome.model.screen.ScreenPlateLink which have the argument as their child.
|
protected Set<ScreenAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
Map<Long,Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ScreenAnnotationLink that a user has.
|
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. |
Long |
getId()
The DB unique identifier for this object.
|
String |
getName()
Simple field ome.model.screen.Screen.name (java.lang.String)
|
protected Set<ScreenPlateLink> |
getPlateLinks()
returns plateLinks .
|
Map<Long,Long> |
getPlateLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.screen.ScreenPlateLink that a user has.
|
String |
getProtocolDescription()
Simple field ome.model.screen.Screen.protocolDescription (java.lang.String)
|
String |
getProtocolIdentifier()
Simple field ome.model.screen.Screen.protocolIdentifier (java.lang.String)
|
protected Set<Reagent> |
getReagents()
returns reagents .
|
String |
getReagentSetDescription()
Simple field ome.model.screen.Screen.reagentSetDescription (java.lang.String)
|
String |
getReagentSetIdentifier()
Simple field ome.model.screen.Screen.reagentSetIdentifier (java.lang.String)
|
String |
getType()
Simple field ome.model.screen.Screen.type (java.lang.String)
|
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<ScreenAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
Iterator<ScreenPlateLink> |
iteratePlateLinks()
should be used rather than accessing the plateLinks set directly.
|
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 .
|
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<Plate> |
linkedPlateIterator()
provides an iterator over the parent values of the plateLinks.
|
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(String field,
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(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(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(Collection<ScreenPlateLink> targets)
use like removeScreenPlateLink
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(Set<ScreenAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(Map<Long,Long> map) |
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 Screen.Details instance instead. |
void |
setId(Long id)
usually unneeded.
|
void |
setName(String name) |
protected void |
setPlateLinks(Set<ScreenPlateLink> plateLinks)
setter for plateLinks should be avoided.
|
protected void |
setPlateLinksCountPerOwner(Map<Long,Long> map) |
void |
setProtocolDescription(String protocolDescription) |
void |
setProtocolIdentifier(String protocolIdentifier) |
protected void |
setReagents(Set<Reagent> reagents)
setter for reagents should be avoided.
|
void |
setReagentSetDescription(String reagentSetDescription) |
void |
setReagentSetIdentifier(String reagentSetIdentifier) |
void |
setType(String type) |
void |
setVersion(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(String propertyName) |
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.
|
Collection<ScreenAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
Collection<ScreenPlateLink> |
unmodifiablePlateLinks()
Returns an unmodifiable collection-view
|
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 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 type
protected String protocolIdentifier
protected String protocolDescription
protected String reagentSetIdentifier
protected String reagentSetDescription
protected Set<ScreenPlateLink> plateLinks
public static final String OWNER_FILTER_PLATELINKS
public static final String GROUP_FILTER_PLATELINKS
public static final String EVENT_FILTER_PLATELINKS
public static final String PERMS_FILTER_PLATELINKS
public static final String OWNER_FILTER_REAGENTS
public static final String GROUP_FILTER_REAGENTS
public static final String EVENT_FILTER_REAGENTS
public static final String PERMS_FILTER_REAGENTS
protected Set<ScreenAnnotationLink> 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 TYPE
public static final String PROTOCOLIDENTIFIER
public static final String PROTOCOLDESCRIPTION
public static final String REAGENTSETIDENTIFIER
public static final String REAGENTSETDESCRIPTION
public static final String PLATELINKSCOUNTPEROWNER
public static final String PLATELINKS
public static final String REAGENTS
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 Screen()
protected Screen(Long id)
public Screen(Long id, boolean loaded)
public Screen(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=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getType()
public void setType(String type)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getProtocolIdentifier()
public void setProtocolIdentifier(String protocolIdentifier)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getProtocolDescription()
public void setProtocolDescription(String protocolDescription)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getReagentSetIdentifier()
public void setReagentSetIdentifier(String reagentSetIdentifier)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getReagentSetDescription()
public void setReagentSetDescription(String reagentSetDescription)
protected Set<ScreenPlateLink> getPlateLinks()
protected void setPlateLinks(Set<ScreenPlateLink> plateLinks)
public int sizeOfPlateLinks()
public Iterator<ScreenPlateLink> iteratePlateLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfPlateLinks()
is less than zero.public Collection<ScreenPlateLink> unmodifiablePlateLinks()
public <E> 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(Collection<ScreenPlateLink> targets)
public void removeScreenPlateLink(ScreenPlateLink target)
public void removeScreenPlateLinkSet(Collection<ScreenPlateLink> targets)
public ScreenPlateLink linkPlate(Plate addition)
public void addScreenPlateLink(ScreenPlateLink link, boolean bothSides)
public Iterator<Plate> linkedPlateIterator()
ConcurrentModificationException
.
Use linkedPlateList()
instead.public Set<ScreenPlateLink> findScreenPlateLink(Plate target)
public 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> 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()
public Map<Long,Long> getPlateLinksCountPerOwner()
protected Set<Reagent> getReagents()
protected void setReagents(Set<Reagent> reagents)
public int sizeOfReagents()
public Iterator<Reagent> iterateReagents()
EmptyIterator
. To test for a null collection,
see of sizeOfReagents()
is less than zero.public Collection<Reagent> unmodifiableReagents()
public <E> 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(Collection<Reagent> targets)
public void removeReagent(Reagent target)
public void removeReagentSet(Collection<Reagent> targets)
public void clearReagents()
protected Set<ScreenAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(Set<ScreenAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public Iterator<ScreenAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public Collection<ScreenAnnotationLink> 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 addScreenAnnotationLink(ScreenAnnotationLink target)
public void addScreenAnnotationLinkSet(Collection<ScreenAnnotationLink> targets)
public void removeScreenAnnotationLink(ScreenAnnotationLink target)
public void removeScreenAnnotationLinkSet(Collection<ScreenAnnotationLink> targets)
public ScreenAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addScreenAnnotationLink(ScreenAnnotationLink link, boolean bothSides)
public Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public Set<ScreenAnnotationLink> findScreenAnnotationLink(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 removeScreenAnnotationLink(ScreenAnnotationLink 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 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 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.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.