Package net.sf.basedb.core.data
Class BioMaterialEventData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.BioMaterialEventData
- All Implemented Interfaces:
IdentifiableData
,LoggableData
,RegisteredData
This class is used to register events for measured biomaterials.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-11-02 08:46:40 +0100 (må, 02 nov 2015) $
- Hibernate: class
- table="`BioMaterialEvents`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate PhysicalBioAssayData
private MeasuredBioMaterialData
private BioPlateEventParticipantData
private String
private Date
private Date
private int
private HardwareData
private KitData
static final int
The maximum length of the comment about this event.private ProtocolData
private Map<BioMaterialData,
BioMaterialEventSourceData> private Float
private UserData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the biomaterial produced or affected by this event.Get the bioplate event that is the master event for this event.Get the comment about this event.Get the date this item was added to the database.Get the date this event happened in the lab.int
Get the type of event, 1=creation event, 2=hybridization event, 3=other eventGet the hardware used in this eventgetKit()
Get the kit used in this event.Get the physical bioassay that was created by this event.Get the protocol used in this event.Get a map containing information about the source biomaterials used in the event.Get the used quantity of the biomaterial affected by this event.getUser()
Get the user that is responsible for this event, typically this is the user that entered the information in the database.void
setBioMaterial
(MeasuredBioMaterialData bioMaterial) void
setBioPlateEventParticipant
(BioPlateEventParticipantData bioPlateEventParticipant) void
setComment
(String comment) void
setEntryDate
(Date entryDate) void
setEventDate
(Date eventDate) void
setEventType
(int eventType) void
setHardware
(HardwareData hardware) void
void
setPhysicalBioAssay
(PhysicalBioAssayData bioassay) void
setProtocol
(ProtocolData protocol) (package private) void
void
setUsedQuantity
(Float usedQuantity) void
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
-
entryDate
-
eventType
private int eventType -
bioPlateEventParticipant
-
bioMaterial
-
usedQuantity
-
bioassay
-
user
-
protocol
-
hardware
-
kit
-
eventDate
-
MAX_COMMENT_LENGTH
public static final int MAX_COMMENT_LENGTHThe maximum length of the comment about this event.- See Also:
-
comment
-
sources
-
-
Constructor Details
-
BioMaterialEventData
public BioMaterialEventData()
-
-
Method Details
-
getEntryDate
Description copied from interface:RegisteredData
Get the date this item was added to the database. The value is generated at creation time and can't be modified later.- Specified by:
getEntryDate
in interfaceRegisteredData
-
setEntryDate
-
getEventType
public int getEventType()Get the type of event, 1=creation event, 2=hybridization event, 3=other event- Hibernate: property
- column="`event_type`" type="int" not-null="true" update="false"
-
setEventType
public void setEventType(int eventType) -
getBioPlateEventParticipant
Get the bioplate event that is the master event for this event. Null if no bioplate event exists for this event.- Since:
- 2.17
- Hibernate: many-to-one
- column="`bioplateeventparticipant_id`" not-null="false" outer-join="false" update="false"
-
setBioPlateEventParticipant
-
getBioMaterial
Get the biomaterial produced or affected by this event.- Hibernate: many-to-one
- column="`biomaterial_id`" not-null="false" outer-join="false" update="false"
-
setBioMaterial
-
getUsedQuantity
Get the used quantity of the biomaterial affected by this event. This can be both positive and negative.- Hibernate: property
- column="`used_quantity`" type="float" not-null="false"
-
setUsedQuantity
-
getPhysicalBioAssay
Get the physical bioassay that was created by this event.- Hibernate: many-to-one
- column="`physicalbioassay_id`" not-null="false" outer-join="false" update="false"
-
setPhysicalBioAssay
-
getUser
Get the user that is responsible for this event, typically this is the user that entered the information in the database.- Hibernate: many-to-one
- column="`user_id`" not-null="true" outer-join="false" update="false"
-
setUser
-
getProtocol
Get the protocol used in this event.- Hibernate: many-to-one
- column="`protocol_id`" not-null="false" outer-join="false"
-
setProtocol
-
getHardware
Get the hardware used in this event- Hibernate: many-to-one
- column="`hardware_id`" not-null="false" outer-join="false"
-
setHardware
-
getKit
Get the kit used in this event.- Since:
- 3.7
- Hibernate: many-to-one
- column="`kit_id`" not-null="false" outer-join="false"
-
setKit
-
getEventDate
Get the date this event happened in the lab.- Hibernate: property
- column="`event_date`" type="date" not-null="false"
-
setEventDate
-
getComment
Get the comment about this event.- Hibernate: property
- column="`comment`" type="text" not-null="false"
-
setComment
-
getSources
Get a map containing information about the source biomaterials used in the event. This is only used for events that create child biomaterial or physical bioassay. This is the inverse end. SeeBioMaterialEventSourceData.getEvent()
- Since:
- 3.0
- Hibernate: map
- inverse="true" lazy="true" cascade="all"
- Hibernate: index-many-to-many
- column="`biomaterial_id`" class="net.sf.basedb.core.data.BioMaterialData"
- Hibernate: collection-key
- column="`event_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.BioMaterialEventSourceData"
-
setSources
-