Package net.sf.basedb.core.data
Class BioAssayData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.BioAssayData
- All Implemented Interfaces:
AnnotatableData
,IdentifiableData
,NameableData
This class holds information about a bioassay.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2016-04-27 08:38:21 +0200 (on, 27 apr 2016) $
- Hibernate: class
- table="`BioAssays`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate AnnotationSetData
private BioAssaySetData
private Set<BioAssayData>
private DataCubeColumnData
private String
private Set<AnnotationLink>
private String
private int
private int
private Set<BioAssayData>
private Set<RawBioAssayData>
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionShort-cut to all annotations belonging to this item.Get the annotation set that holds the annotations for an item.Get the bioassayset this bioassay belongs to.(package private) Set<BioAssayData>
This is the inverse end togetParents()
.Get the column this bioassay stores it's data in.Get the description for the item.getName()
Get the name of the item.int
The number of unique spots in this bioassayset.int
The number of unique spots in this bioassay.Get a set that manages the parent bioassays the data in this bioassay is based on.Get a set that manages the raw parent bioassays the data in this bioassay is based on.(package private) void
setAnnotations
(Set<AnnotationLink> links) void
setAnnotationSet
(AnnotationSetData annotationSet) Change the annotation set.void
setBioAssaySet
(BioAssaySetData bioAssaySet) (package private) void
setChildren
(Set<BioAssayData> children) void
setDataCubeColumn
(DataCubeColumnData dataCubeColumn) void
setDescription
(String description) Set the description for the item.void
Set the name of the item.void
setNumFileSpots
(int numFileSpots) void
setNumSpots
(int numSpots) (package private) void
setParents
(Set<BioAssayData> parents) (package private) void
setRawParents
(Set<RawBioAssayData> rawParents) 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 Details
-
name
-
description
-
annotationSet
-
links
-
bioAssaySet
-
dataCubeColumn
-
numSpots
private int numSpots -
numFileSpots
private int numFileSpots -
parents
-
children
-
rawParents
-
-
Constructor Details
-
BioAssayData
public BioAssayData()
-
-
Method Details
-
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
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
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
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
-
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 - Since:
- 2.2
-
setAnnotationSet
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.- Since:
- 2.2
-
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
-
getBioAssaySet
Get the bioassayset this bioassay belongs to.- Hibernate: many-to-one
- column="`bioassayset_id`" not-null="true" outer-join="false" update="false" unique-key="BioAssay_uniquecolumn"
-
setBioAssaySet
-
getDataCubeColumn
Get the column this bioassay stores it's data in.- Hibernate: many-to-one
- column="`datacubecolumn_id`" not-null="true" unique-key="BioAssay_uniquecolumn" outer-join="false" update="false" cascade="save-update"
-
setDataCubeColumn
-
getNumSpots
public int getNumSpots()The number of unique spots in this bioassay.- Hibernate: property
- column="`spots`" type="int" not-null="true" update="false"
-
setNumSpots
public void setNumSpots(int numSpots) -
getNumFileSpots
public int getNumFileSpots()The number of unique spots in this bioassayset.- Since:
- 2.8
- Hibernate: property
- column="`file_spots`" type="int" not-null="true"
-
setNumFileSpots
public void setNumFileSpots(int numFileSpots) - Since:
- 2.8
-
getParents
Get a set that manages the parent bioassays the data in this bioassay is based on.- Hibernate: set
- table="`BioAssayParents`" lazy="true"
- Hibernate: collection-key
- column="`bioassay_id`"
- Hibernate: collection-many-to-many
- column="`parent_id`" class="net.sf.basedb.core.data.BioAssayData"
-
setParents
-
getChildren
Set<BioAssayData> getChildren()This is the inverse end togetParents()
.- Hibernate: set
- table="`BioAssayParents`" lazy="true" inverse="true"
- Hibernate: collection-key
- column="`parent_id`"
- Hibernate: collection-many-to-many
- column="`bioassay_id`" class="net.sf.basedb.core.data.BioAssayData"
-
setChildren
-
getRawParents
Get a set that manages the raw parent bioassays the data in this bioassay is based on.- Hibernate: set
- table="`BioAssayRawParents`" lazy="true"
- Hibernate: collection-key
- column="`bioassay_id`"
- Hibernate: collection-many-to-many
- column="`parent_id`" class="net.sf.basedb.core.data.RawBioAssayData"
-
setRawParents
-