net.sf.basedb.core.data
Class BioMaterialData
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.AnnotatedData
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"
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
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)
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)