Package net.sf.basedb.core.data
Class BioPlateEventParticipantData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.BioPlateEventParticipantData
- All Implemented Interfaces:
IdentifiableData
Registers a plate as a participant in a bioplate event. Each participant may
have a 'role' that is simply a free textual description of how the plate was used.
Eg. for a 'move' event there can be 'source' and 'destination' plates. If the
ordering of plates are important it is also possible to specify an index value.
The index doesn't have to unique, but a plate can only be a registered as a
participant once per event.
- Since:
- 2.17
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
- Hibernate: class
- table="`BioPlateEventParticipants`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate Set<BioMaterialEventData>
private BioPlateData
private BioPlateEventData
private int
static final int
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis is the inverse end.The bioplate that is participating in the event.getEvent()
The bioplate event.int
getIndex()
Get the index of this plate in the event.getRole()
Get the role of the plate in the event.(package private) void
setBioMaterialEvents
(Set<BioMaterialEventData> bioMaterialEvents) void
setBioPlate
(BioPlateData bioPlate) void
setEvent
(BioPlateEventData event) void
setIndex
(int index) void
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
bioPlate
-
event
-
index
private int index -
MAX_ROLE_LENGTH
public static final int MAX_ROLE_LENGTH- See Also:
-
role
-
bioMaterialEvents
-
-
Constructor Details
-
BioPlateEventParticipantData
public BioPlateEventParticipantData()
-
-
Method Details
-
getBioPlate
The bioplate that is participating in the event.- Hibernate: many-to-one
- column="`bioplate_id`" not-null="true" outer-join="false" update="false" unique-key="BioPlateEventParticipant_uniqueevent"
-
setBioPlate
-
getEvent
The bioplate event.- Hibernate: many-to-one
- column="`event_id`" not-null="true" outer-join="false" update="false" unique-key="BioPlateEventParticipant_uniqueevent"
-
setEvent
-
getIndex
public int getIndex()Get the index of this plate in the event. The index may or may not be unique depending on the event.- Hibernate: property
- column="`index`" type="int" not-null="true"
-
setIndex
public void setIndex(int index) -
getRole
Get the role of the plate in the event. The role is only a textual description and is not of concern to the core. The role can be null.- Hibernate: property
- column="`role`" type="string" length="255" not-null="false"
-
setRole
-
getBioMaterialEvents
This is the inverse end.- See Also:
- Hibernate: set
- lazy="true" inverse="true"
- Hibernate: collection-key
- column="`bioplateeventparticipant_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.BioMaterialEventData"
-
setBioMaterialEvents
-