2.17.2: 2011-06-17

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
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-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
Hibernate: class
table="`BioMaterials`" lazy="false" discriminator-value="-1"
Hibernate: discriminator
column="`discriminator`" type="int"

Field Summary
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.
 
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<MeasuredBioMaterialData> getChildren()
          This is the inverse end.
 String getExternalId()
          Get the external id for the biomaterial
(package private)  void setBioMaterialLists(Set<BioMaterialListData> lists)
           
(package private)  void setChildren(Set<MeasuredBioMaterialData> children)
           
 void setExternalId(String externalId)
           
 
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

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
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)

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)

2.17.2: 2011-06-17