Package net.sf.basedb.core.data
Class PlateEventData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.PlateEventData
- All Implemented Interfaces:
IdentifiableData
,LoggableData
public class PlateEventData extends BasicData implements LoggableData
This class holds information about a plate event.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
PlateEvent
, Developer documentation: Array LIMS (plates)- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (fr, 21 okt 2011) $
- Hibernate: class
- table="`PlateEvents`" lazy="false"
-
Field Summary
Fields Modifier and Type Field Description private String
comment
private Date
entryDate
private Date
eventDate
private HardwareData
hardware
static int
MAX_COMMENT_LENGTH
The maximum length of the comment about this event.private PlateData
plate
private PlateEventTypeData
plateEventType
private ProtocolData
protocol
private UserData
user
-
Constructor Summary
Constructors Constructor Description PlateEventData()
-
Method Summary
Modifier and Type Method Description String
getComment()
Get the comment about this event.Date
getEntryDate()
Get the date this event was added to the database.Date
getEventDate()
Get the date this event happened in the lab.HardwareData
getHardware()
Get the hardware used in this event.PlateData
getPlate()
The plate this event belongs to.PlateEventTypeData
getPlateEventType()
The event type of this event.ProtocolData
getProtocol()
The protocol used for the event.UserData
getUser()
Get the user that is responsible for this event, typically this is the user that entered the information in the database.void
setComment(String comment)
void
setEntryDate(Date entryDate)
void
setEventDate(Date eventDate)
void
setHardware(HardwareData hardware)
void
setPlate(PlateData plate)
void
setPlateEventType(PlateEventTypeData plateEventType)
void
setProtocol(ProtocolData protocol)
void
setUser(UserData user)
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
plate
-
plateEventType
-
protocol
-
user
-
entryDate
-
eventDate
-
hardware
-
MAX_COMMENT_LENGTH
public static final int MAX_COMMENT_LENGTHThe maximum length of the comment about this event.- See Also:
- Constant Field Values
-
comment
-
-
Constructor Details
-
PlateEventData
public PlateEventData()
-
-
Method Details
-
getPlate
The plate this event belongs to.- See Also:
PlateData.getEvents()
- Hibernate: many-to-one
- column="`plate_id`" not-null="true" outer-join="false" update="false"
-
setPlate
-
getPlateEventType
The event type of this event. It must belong to the same plate type as the plate.- See Also:
PlateData.getPlateType()
,PlateEventTypeData.getPlateType()
- Hibernate: many-to-one
- column="`plateeventtype_id`" not-null="true" outer-join="false" update="false"
-
setPlateEventType
-
getProtocol
The protocol used for the event.- Hibernate: many-to-one
- column="`protocol_id`" not-null="false" outer-join="false"
-
setProtocol
-
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="false" outer-join="false" update="false"
-
setUser
-
getEntryDate
Get the date this event was added to the database.- Hibernate: property
- column="`entry_date`" type="date" not-null="true" update="false"
-
setEntryDate
-
getEventDate
Get the date this event happened in the lab.- Hibernate: property
- column="`event_date`" type="date" not-null="false"
-
setEventDate
-
getHardware
Get the hardware used in this event.- Hibernate: many-to-one
- column="`hardware_id`" not-null="false" outer-join="false"
-
setHardware
-
getComment
Get the comment about this event.- Hibernate: property
- column="`comment`" type="text" not-null="false"
-
setComment
-