Package net.sf.basedb.core.data
Class RootRawBioAssayData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.RootRawBioAssayData
-
- All Implemented Interfaces:
AnnotatableData
,IdentifiableData
,NameableData
public class RootRawBioAssayData extends BasicData implements AnnotatableData, NameableData
This class holds the link between experiments and raw bioassays including an annotation set that is representing the experimental factor values.- Since:
- 3.6
- Author:
- Nicklas
- See Also:
RootRawBioAssay
- Hibernate: class
- table="`RootRawBioAssays`" lazy="true"
-
-
Field Summary
Fields Modifier and Type Field Description private AnnotationSetData
annotationSet
private String
description
private ExperimentData
experiment
private Set<AnnotationLink>
links
private String
name
private RawBioAssayData
rawBioAssay
-
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
-
Constructor Summary
Constructors Constructor Description RootRawBioAssayData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<AnnotationLink>
getAnnotations()
Short-cut to all annotations belonging to this item.AnnotationSetData
getAnnotationSet()
Get the annotation set that holds the annotations for an item.String
getDescription()
Get the description for the item.ExperimentData
getExperiment()
Get the experiment this root raw bioassay belongs to.String
getName()
Get the name of the item.RawBioAssayData
getRawBioAssay()
Get the raw bioassay root raw bioassay is derived from.(package private) void
setAnnotations(Set<AnnotationLink> links)
void
setAnnotationSet(AnnotationSetData annotationSet)
Change the annotation set.void
setDescription(String description)
Set the description for the item.void
setExperiment(ExperimentData experiment)
void
setName(String name)
Set the name of the item.void
setRawBioAssay(RawBioAssayData rawBioAssay)
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
-
-
-
-
Field Detail
-
annotationSet
private AnnotationSetData annotationSet
-
links
private Set<AnnotationLink> links
-
name
private String name
-
description
private String description
-
experiment
private ExperimentData experiment
-
rawBioAssay
private RawBioAssayData rawBioAssay
-
-
Method Detail
-
getAnnotationSet
public AnnotationSetData getAnnotationSet()
Description copied from interface:AnnotatableData
Get the annotation set that holds the annotations for an item.- Specified by:
getAnnotationSet
in interfaceAnnotatableData
- Returns:
- An
AnnotationSetData
item or null if no annotations exist
-
setAnnotationSet
public void setAnnotationSet(AnnotationSetData annotationSet)
Description copied from interface:AnnotatableData
Change the annotation set. Use null to remove the annotations.- Specified by:
setAnnotationSet
in interfaceAnnotatableData
- Parameters:
annotationSet
- Annotation set to change to.
-
getAnnotations
public Set<AnnotationLink> getAnnotations()
Description copied from interface:AnnotatableData
Short-cut to all annotations belonging to this item. Used for HQL queries only. This is the inverse end. NOTE! The property-ref="annotationSet" require that AnnotationSetData implements Serializable- Specified by:
getAnnotations
in interfaceAnnotatableData
-
setAnnotations
void setAnnotations(Set<AnnotationLink> links)
-
getName
public String getName()
Description copied from interface:NameableData
Get the name of the item.- Specified by:
getName
in interfaceNameableData
- Returns:
- A
String
with the name of the item
-
setName
public void setName(String name)
Description copied from interface:NameableData
Set the name of the item. The name cannot be null and mustn't be longer than the value specified by theMAX_NAME_LENGTH
constant.- Specified by:
setName
in interfaceNameableData
- Parameters:
name
- The new name for the item
-
getDescription
public String getDescription()
Description copied from interface:NameableData
Get the description for the item.- Specified by:
getDescription
in interfaceNameableData
- Returns:
- A
String
with a description of the item
-
setDescription
public void setDescription(String description)
Description copied from interface:NameableData
Set the description for the item. The description can be null but mustn't be longer than the value specified by theMAX_DESCRIPTION_LENGTH
constant.- Specified by:
setDescription
in interfaceNameableData
- Parameters:
description
- The new description for the item
-
getExperiment
public ExperimentData getExperiment()
Get the experiment this root raw bioassay belongs to.- Hibernate: column
- name="`experiment_id`" not-null="true" unique-key="RootRawBioAssay_uniquebioassay"
- Hibernate: many-to-one
- outer-join="false" update="false"
-
setExperiment
public void setExperiment(ExperimentData experiment)
-
getRawBioAssay
public RawBioAssayData getRawBioAssay()
Get the raw bioassay root raw bioassay is derived from.- Hibernate: column
- name="`rawbioassay_id`" not-null="true" unique-key="RootRawBioAssay_uniquebioassay"
- Hibernate: many-to-one
- outer-join="false" update="false"
-
setRawBioAssay
public void setRawBioAssay(RawBioAssayData rawBioAssay)
-
-