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, 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"
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
BioMaterialData
public BioMaterialData()
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)