Package net.sf.basedb.core.data
Class PlateMappingData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.OwnedData
net.sf.basedb.core.data.SharedData
net.sf.basedb.core.data.CommonData
net.sf.basedb.core.data.PlateMappingData
- All Implemented Interfaces:
IdentifiableData
,NameableData
,OwnableData
,RegisteredData
,RemovableData
,ShareableData
public class PlateMappingData extends CommonData implements RegisteredData
This class holds information about a plate mapping.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
PlateMapping
, Developer documentation: Array LIMS (plates)- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
- Hibernate: class
- table="`PlateMappings`" lazy="true"
-
Field Summary
Fields Modifier and Type Field Description private int
destinationCount
private PlateGeometryData
destinationGeometry
private Map<MappingCoordinate,MappingCoordinate>
details
private Date
entryDate
private String
image
static int
MAX_IMAGE_LENGTH
The maximum length of the image name that can be stored in the database.private int
sourceCount
private PlateGeometryData
sourceGeometry
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
Constructor Summary
Constructors Constructor Description PlateMappingData()
-
Method Summary
Modifier and Type Method Description int
getDestinationCount()
The produced number of destination plates.PlateGeometryData
getDestinationGeometry()
The required geometry of destination plates in this mapping.Map<MappingCoordinate,MappingCoordinate>
getDetails()
For each destination coordinate we can get the source coordinate.Date
getEntryDate()
Get the date this item was added to the database.String
getImage()
An optional name of a small image with a graphical representation of the mapping.int
getSourceCount()
The required number of source plates.PlateGeometryData
getSourceGeometry()
The required geometry of source plates in this mapping.void
setDestinationCount(int destinationCount)
void
setDestinationGeometry(PlateGeometryData destinationGeometry)
(package private) void
setDetails(Map<MappingCoordinate,MappingCoordinate> details)
void
setEntryDate(Date entryDate)
void
setImage(String image)
void
setSourceCount(int sourceCount)
void
setSourceGeometry(PlateGeometryData sourceGeometry)
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
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
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
-
Field Details
-
entryDate
-
sourceGeometry
-
destinationGeometry
-
sourceCount
private int sourceCount -
destinationCount
private int destinationCount -
MAX_IMAGE_LENGTH
public static final int MAX_IMAGE_LENGTHThe maximum length of the image name that can be stored in the database.- See Also:
setImage(String)
, Constant Field Values
-
image
-
details
-
-
Constructor Details
-
PlateMappingData
public PlateMappingData()
-
-
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
-
getSourceGeometry
The required geometry of source plates in this mapping.- Hibernate: many-to-one
- column="`sourcegeometry_id`" not-null="true" outer-join="false" update="false"
-
setSourceGeometry
-
getDestinationGeometry
The required geometry of destination plates in this mapping.- Hibernate: many-to-one
- column="`destinationgeometry_id`" not-null="true" outer-join="false" update="false"
-
setDestinationGeometry
-
getSourceCount
public int getSourceCount()The required number of source plates.- Hibernate: property
- column="`source_count`" type="int" not-null="true" update="false"
-
setSourceCount
public void setSourceCount(int sourceCount) -
getDestinationCount
public int getDestinationCount()The produced number of destination plates.- Hibernate: property
- column="`destination_count`" type="int" not-null="true" update="false"
-
setDestinationCount
public void setDestinationCount(int destinationCount) -
getImage
An optional name of a small image with a graphical representation of the mapping.- Hibernate: property
- column="`image`" type="string" size="255" not-null="false"
-
setImage
-
getDetails
For each destination coordinate we can get the source coordinate. The mapping for this element is specified inhibernate-properties-PlateMappingData.xml
because we must supply different column names for the properties ofMappingCoordinate
objectes depending on if it is a destination coordinate (map key) or source coordinate (map value), which is not supported by XDoclet. The structure of the mapping is: hibernate.map table="`PlateMappingDetails`" lazy="true" cascade="delete" hibernate.collection-key column="`platemapping_id`" type="int" hibernate.collection-composite-index class="net.sf.basedb.core.data.MappingCoordinate" hibernate.collection-composite-element class="net.sf.basedb.core.data.MappingCoordinate" -
setDetails
-