3.0.1: 2011-11-10

net.sf.basedb.core.data
Class BioMaterialData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.OwnedData
          extended by net.sf.basedb.core.data.SharedData
              extended by net.sf.basedb.core.data.CommonData
                  extended by net.sf.basedb.core.data.AnnotatedData
                      extended by net.sf.basedb.core.data.BioMaterialData
All Implemented Interfaces:
AnnotatableData, IdentifiableData, LoggableData, NameableData, OwnableData, RemovableData, ShareableData, SubtypableData
Direct Known Subclasses:
BioSourceData, MeasuredBioMaterialData

public abstract class BioMaterialData
extends AnnotatedData
implements SubtypableData

This class is the root class for biomaterials.

Version:
2.0
Author:
Nicklas
See Also:
BioMaterial, Developer documentation: Biomaterials LIMS
Last modified
$Date: 2011-10-21 13:15:41 +0200 (Fri, 21 Oct 2011) $
Hibernate: class
table="`BioMaterials`" lazy="false" discriminator-value="-1"
Hibernate: discriminator
column="`discriminator`" type="int"

Field Summary
private  Set<BioMaterialEventSourceData> childCreationEvents
           
private  Set<MeasuredBioMaterialData> children
           
private  String externalId
           
private  Set<BioMaterialListData> lists
           
static int MAX_EXTERNAL_ID_LENGTH
          The maximum length of the external id that can be stored in the database.
private  ItemSubtypeData subtype
           
 
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
BioMaterialData()
           
 
Method Summary
(package private)  Set<BioMaterialListData> getBioMaterialLists()
          This is the inverse end.
(package private)  Set<BioMaterialEventSourceData> getChildCreationEvents()
          This is the inverse end.
(package private)  Set<MeasuredBioMaterialData> getChildren()
          This is the inverse end.
 String getExternalId()
          Get the external id for the biomaterial
 ItemSubtypeData getItemSubtype()
          Get the subtype of the item.
(package private)  void setBioMaterialLists(Set<BioMaterialListData> lists)
           
(package private)  void setChildCreationEvents(Set<BioMaterialEventSourceData> childCreationEvents)
           
(package private)  void setChildren(Set<MeasuredBioMaterialData> children)
           
 void setExternalId(String externalId)
           
 void setItemSubtype(ItemSubtypeData subtype)
          Set the subtype of the item.
 
Methods inherited from class net.sf.basedb.core.data.AnnotatedData
getAnnotationSet, setAnnotationSet
 
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class net.sf.basedb.core.data.OwnedData
getOwner, setOwner
 
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 Detail

subtype

private ItemSubtypeData subtype

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

externalId

private String externalId

children

private Set<MeasuredBioMaterialData> children

lists

private Set<BioMaterialListData> lists

childCreationEvents

private Set<BioMaterialEventSourceData> childCreationEvents
Constructor Detail

BioMaterialData

public BioMaterialData()
Method Detail

getItemSubtype

public ItemSubtypeData getItemSubtype()
Description copied from interface: SubtypableData
Get the subtype of the item.

Specified by:
getItemSubtype in interface SubtypableData

setItemSubtype

public void setItemSubtype(ItemSubtypeData subtype)
Description copied from interface: SubtypableData
Set the subtype of the item.

Specified by:
setItemSubtype in interface SubtypableData

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)

getChildren

Set<MeasuredBioMaterialData> getChildren()
This is the inverse end. NOTE! This collection will not contained pooled children or hybridizations.

Since:
2.9
See Also:
MeasuredBioMaterialData.getParent()
Hibernate: set
inverse="true" lazy="true"
Hibernate: collection-key
column="`parent_id`"
Hibernate: collection-one-to-many
class="net.sf.basedb.core.data.MeasuredBioMaterialData"

setChildren

void setChildren(Set<MeasuredBioMaterialData> children)

getBioMaterialLists

Set<BioMaterialListData> getBioMaterialLists()
This is the inverse end. NOTE! We do not map with inverse="true" since we want automatic deletion from the join table when a biomaterial is deleted.

Since:
2.10
See Also:
BioMaterialListData.getBioMaterials()
Hibernate: set
lazy="true" table="`BioMaterialListMembers`"
Hibernate: collection-key
column="`biomaterial_id`"
Hibernate: collection-many-to-many
column="`list_id`" class="net.sf.basedb.core.data.BioMaterialListData"

setBioMaterialLists

void setBioMaterialLists(Set<BioMaterialListData> lists)

getChildCreationEvents

Set<BioMaterialEventSourceData> getChildCreationEvents()
This is the inverse end.

See Also:
BioMaterialEventSourceData.getBioMaterial()
Hibernate: set
lazy="true" inverse="true"
Hibernate: collection-key
column="`biomaterial_id`"
Hibernate: collection-one-to-many
class="net.sf.basedb.core.data.BioMaterialEventSourceData"

setChildCreationEvents

void setChildCreationEvents(Set<BioMaterialEventSourceData> childCreationEvents)

3.0.1: 2011-11-10