Last update: 2011-06-23

org.proteios.core.data
Class BioMaterialData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.OwnedData
          extended by org.proteios.core.data.SharedData
              extended by org.proteios.core.data.CommonData
                  extended by org.proteios.core.data.AnnotatedData
                      extended by 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"

Field Summary
static int MAX_EXTERNAL_ID_LENGTH
          The maximum length of the external id that can be stored in the database.
static int MAX_STORAGE_LOCATION_LENGTH
          The maximum length of the storage location info that can be stored in the database.
 
Fields inherited from interface org.proteios.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
BioMaterialData()
           
 
Method Summary
 String getExternalId()
          Get the external id for the biomaterial
 Set<FileData> getFiles()
           
 String getStorageLocation()
          Get the storage location for the biomaterial
 void setExternalId(String externalId)
           
 void setFiles(Set<FileData> files)
           
 void setStorageLocation(String storageLocation)
           
 
Methods inherited from class org.proteios.core.data.AnnotatedData
getAnnotationSet, setAnnotationSet
 
Methods inherited from class org.proteios.core.data.CommonData
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class org.proteios.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class org.proteios.core.data.OwnedData
getOwner, setOwner
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.proteios.core.data.IdentifiableData
getId, getVersion
 
Methods inherited from interface org.proteios.core.data.OwnableData
getOwner, setOwner
 

Field Detail

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

BioMaterialData

public BioMaterialData()
Method Detail

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)

Last update: 2011-06-23