2.17.2: 2011-06-17

net.sf.basedb.core.data
Class PlateEventData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by 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, Array LIMS - Plates overview
Last modified
$Date: 2009-08-19 13:31:03 +0200 (Wed, 19 Aug 2009) $
Hibernate: class
table="`PlateEvents`" lazy="false"

Field Summary
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
PlateEventData()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

PlateEventData

public PlateEventData()
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)

2.17.2: 2011-06-17