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
All Methods Instance Methods Concrete Methods 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 Detail
-
plate
private PlateData plate
-
plateEventType
private PlateEventTypeData plateEventType
-
protocol
private ProtocolData protocol
-
user
private UserData user
-
entryDate
private Date entryDate
-
eventDate
private Date eventDate
-
hardware
private HardwareData hardware
-
MAX_COMMENT_LENGTH
public static final int MAX_COMMENT_LENGTH
The maximum length of the comment about this event.- See Also:
- Constant Field Values
-
comment
private String comment
-
-
Method Detail
-
getPlate
public PlateData 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
public void setPlate(PlateData plate)
-
getPlateEventType
public PlateEventTypeData 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
public void setPlateEventType(PlateEventTypeData plateEventType)
-
getProtocol
public ProtocolData getProtocol()
The protocol used for the event.- Hibernate: many-to-one
- column="`protocol_id`" not-null="false" outer-join="false"
-
setProtocol
public void setProtocol(ProtocolData protocol)
-
getUser
public UserData 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
public void setUser(UserData user)
-
getEntryDate
public Date getEntryDate()
Get the date this event was added to the database.- Hibernate: property
- column="`entry_date`" type="date" not-null="true" update="false"
-
setEntryDate
public void setEntryDate(Date entryDate)
-
getEventDate
public Date getEventDate()
Get the date this event happened in the lab.- Hibernate: property
- column="`event_date`" type="date" not-null="false"
-
setEventDate
public void setEventDate(Date eventDate)
-
getHardware
public HardwareData getHardware()
Get the hardware used in this event.- Hibernate: many-to-one
- column="`hardware_id`" not-null="false" outer-join="false"
-
setHardware
public void setHardware(HardwareData hardware)
-
getComment
public String getComment()
Get the comment about this event.- Hibernate: property
- column="`comment`" type="text" not-null="false"
-
setComment
public void setComment(String comment)
-
-