@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Reagent extends java.lang.Object implements java.io.Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Reagent.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<ReagentAnnotationLink> |
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_WELLLINKS |
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_WELLLINKS |
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_WELLLINKS |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_ANNOTATIONLINKS |
static java.lang.String |
PERMS_FILTER_WELLLINKS |
protected java.lang.String |
reagentIdentifier |
static java.lang.String |
REAGENTIDENTIFIER |
protected Screen |
screen |
static java.lang.String |
SCREEN |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
protected java.util.Set<WellReagentLink> |
wellLinks |
static java.lang.String |
WELLLINKS |
static java.lang.String |
WELLLINKSCOUNTPEROWNER |
Modifier | Constructor and Description |
---|---|
|
Reagent() |
protected |
Reagent(java.lang.Long id) |
|
Reagent(java.lang.Long id,
boolean loaded)
Main constructor.
|
|
Reagent(Screen _screen) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addReagentAnnotationLink(ReagentAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addReagentAnnotationLink(ReagentAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ReagentAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addReagentAnnotationLink will be called on the addition if it is loaded
|
void |
addReagentAnnotationLinkSet(java.util.Collection<ReagentAnnotationLink> targets)
use like addReagentAnnotationLink.
|
void |
addWellReagentLink(WellReagentLink target)
use instead of setWellLinks .
|
void |
addWellReagentLink(WellReagentLink link,
boolean bothSides)
Adds a ome.model.screen.WellReagentLink to wellLinks, allowing for recursion -- whether
or not addWellReagentLink will be called on the addition if it is loaded
|
void |
addWellReagentLinkSet(java.util.Collection<WellReagentLink> targets)
use like addWellReagentLink.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearWellLinks()
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.ReagentAnnotationLink while
collecting the results.
|
<E> java.util.List<E> |
collectWellLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.WellReagentLink 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> |
eachLinkedWell(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.Well 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<ReagentAnnotationLink> |
findReagentAnnotationLink(Annotation target)
find all ome.model.annotations.ReagentAnnotationLink which have the argument as their child.
|
java.util.Set<WellReagentLink> |
findWellReagentLink(Well target)
find all ome.model.screen.WellReagentLink which have the argument as their parent.
|
protected java.util.Set<ReagentAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ReagentAnnotationLink that a user has.
|
java.lang.String |
getDescription()
Simple field ome.model.screen.Reagent.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.Reagent.name (java.lang.String)
|
java.lang.String |
getReagentIdentifier()
Simple field ome.model.screen.Reagent.reagentIdentifier (java.lang.String)
|
Screen |
getScreen()
Many-to-one field ome.model.screen.Reagent.screen (ome.model.screen.Screen)
|
java.lang.Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
protected java.util.Set<WellReagentLink> |
getWellLinks()
returns wellLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getWellLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.screen.WellReagentLink that a user has.
|
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<ReagentAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
java.util.Iterator<WellReagentLink> |
iterateWellLinks()
should be used rather than accessing the wellLinks set directly.
|
ReagentAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ReagentAnnotationLink 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<Well> |
linkedWellIterator()
provides an iterator over the child values of the wellLinks.
|
java.util.List<Well> |
linkedWellList()
produces a
List -copy of the underlying collection. |
WellReagentLink |
linkWell(Well addition)
Adds a ome.model.screen.WellReagentLink to wellLinks .
|
Reagent |
newInstance() |
Reagent |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeReagentAnnotationLink(ReagentAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ReagentAnnotationLink
|
void |
removeReagentAnnotationLink(ReagentAnnotationLink link,
boolean bothSides)
removes the given ReagentAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkReagent again if loaded.
|
void |
removeReagentAnnotationLinkSet(java.util.Collection<ReagentAnnotationLink> targets)
use like removeReagentAnnotationLink
|
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 wellLinks, allowing for recursion -- whether
or not the removal will call unlinkReagent again if loaded.
|
void |
removeWellReagentLinkSet(java.util.Collection<WellReagentLink> targets)
use like removeWellReagentLink
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(java.util.Set<ReagentAnnotationLink> 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) |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setName(java.lang.String name) |
void |
setReagentIdentifier(java.lang.String reagentIdentifier) |
void |
setScreen(Screen screen) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
protected void |
setWellLinks(java.util.Set<WellReagentLink> wellLinks)
setter for wellLinks should be avoided.
|
protected void |
setWellLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfWellLinks()
returns the size of wellLinks.
|
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 |
unlinkWell(Well removal)
unlinks all ome.model.screen.Well instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<ReagentAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
java.util.Collection<WellReagentLink> |
unmodifiableWellLinks()
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 name
protected java.lang.String reagentIdentifier
protected Screen screen
protected java.util.Set<WellReagentLink> wellLinks
public static final java.lang.String OWNER_FILTER_WELLLINKS
public static final java.lang.String GROUP_FILTER_WELLLINKS
public static final java.lang.String EVENT_FILTER_WELLLINKS
public static final java.lang.String PERMS_FILTER_WELLLINKS
protected java.util.Set<ReagentAnnotationLink> 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 description
protected Details details
public static final java.lang.String NAME
public static final java.lang.String REAGENTIDENTIFIER
public static final java.lang.String SCREEN
public static final java.lang.String WELLLINKSCOUNTPEROWNER
public static final java.lang.String WELLLINKS
public static final java.lang.String ANNOTATIONLINKSCOUNTPEROWNER
public static final java.lang.String ANNOTATIONLINKS
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 Reagent()
protected Reagent(java.lang.Long id)
public Reagent(java.lang.Long id, boolean loaded)
public Reagent(Screen _screen)
@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,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getName()
public void setName(java.lang.String name)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getReagentIdentifier()
public void setReagentIdentifier(java.lang.String reagentIdentifier)
public Screen getScreen()
public void setScreen(Screen screen)
protected java.util.Set<WellReagentLink> getWellLinks()
protected void setWellLinks(java.util.Set<WellReagentLink> wellLinks)
public int sizeOfWellLinks()
public java.util.Iterator<WellReagentLink> iterateWellLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfWellLinks()
is less than zero.public java.util.Collection<WellReagentLink> unmodifiableWellLinks()
public <E> java.util.List<E> collectWellLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateWellLinks()
internally and so will return a value
even if the underlying collection is null.public void addWellReagentLink(WellReagentLink target)
public void addWellReagentLinkSet(java.util.Collection<WellReagentLink> targets)
public void removeWellReagentLink(WellReagentLink target)
public void removeWellReagentLinkSet(java.util.Collection<WellReagentLink> targets)
public WellReagentLink linkWell(Well addition)
public void addWellReagentLink(WellReagentLink link, boolean bothSides)
public java.util.Iterator<Well> linkedWellIterator()
ConcurrentModificationException
.
Use linkedWellList()
instead.public java.util.Set<WellReagentLink> findWellReagentLink(Well target)
public java.util.List<Well> linkedWellList()
List
-copy of the underlying collection. Unlike,
linkedWellIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> java.util.List<E> eachLinkedWell(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkWell(Well removal)
public void removeWellReagentLink(WellReagentLink link, boolean bothSides)
public void clearWellLinks()
protected void setWellLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getWellLinksCountPerOwner()
protected java.util.Set<ReagentAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(java.util.Set<ReagentAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public java.util.Iterator<ReagentAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public java.util.Collection<ReagentAnnotationLink> 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 addReagentAnnotationLink(ReagentAnnotationLink target)
public void addReagentAnnotationLinkSet(java.util.Collection<ReagentAnnotationLink> targets)
public void removeReagentAnnotationLink(ReagentAnnotationLink target)
public void removeReagentAnnotationLinkSet(java.util.Collection<ReagentAnnotationLink> targets)
public ReagentAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addReagentAnnotationLink(ReagentAnnotationLink link, boolean bothSides)
public java.util.Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public java.util.Set<ReagentAnnotationLink> findReagentAnnotationLink(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 removeReagentAnnotationLink(ReagentAnnotationLink 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,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),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)
public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Reagent newInstance()
public Reagent 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)