org.proteios.core.data
Class BioMaterialData
java.lang.Object
org.proteios.core.data.BasicData
org.proteios.core.data.OwnedData
org.proteios.core.data.SharedData
org.proteios.core.data.CommonData
org.proteios.core.data.AnnotatedData
org.proteios.core.data.BioMaterialData
- All Implemented Interfaces:
- AnnotatableData, IdentifiableData, NameableData, OwnableData, RemovableData, ShareableData
- Direct Known Subclasses:
- BioSourceData, MeasuredBioMaterialData
public abstract class BioMaterialData
- extends AnnotatedData
This class is the root class for biomaterials.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
BioMaterial,
Biomaterials overview- Last modified
- $Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
- Hibernate: class
- table="`BioMaterials`" lazy="false" discriminator-value="-1"
- Hibernate: discriminator
- column="`discriminator`" type="int"
MAX_EXTERNAL_ID_LENGTH
public static final int MAX_EXTERNAL_ID_LENGTH
- The maximum length of the external id that can be stored in the database.
- See Also:
setExternalId(String),
Constant Field Values
MAX_STORAGE_LOCATION_LENGTH
public static final int MAX_STORAGE_LOCATION_LENGTH
- The maximum length of the storage location info that can be
stored in the database.
- See Also:
setStorageLocation(String),
Constant Field Values
BioMaterialData
public BioMaterialData()
getExternalId
public String getExternalId()
- Get the external id for the biomaterial
- Hibernate: property
- column="`external_id`" type="string" length="255" not-null="false"
setExternalId
public void setExternalId(String externalId)
getFiles
public Set<FileData> getFiles()
- Returns:
- Returns the files. Empty Set if no files
- Hibernate: set
- table="`BioMaterialFiles`" lazy="true" inverse="true"
- Hibernate: collection-key
- column="`biomaterial_id`"
- Hibernate: collection-many-to-many
- class="org.proteios.core.data.FileData"
column="`file_id`"
setFiles
public void setFiles(Set<FileData> files)
getStorageLocation
public String getStorageLocation()
- Get the storage location for the biomaterial
- Hibernate: property
- column="`storage_location`" type="string" length="255" not-null="false"
setStorageLocation
public void setStorageLocation(String storageLocation)