Class 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:
Last modified
$Date: 2015-02-23 09:43:11 +0100 (må, 23 feb 2015) $
Hibernate: class
table="`BioMaterials`" lazy="true" discriminator-value="-1"
Hibernate: discriminator
column="`discriminator`" type="int"
  • Field Details

  • Constructor Details

    • BioMaterialData

      public BioMaterialData()
  • Method Details

    • equals

      public boolean equals(Object other)
      It may happen that lazy-loaded proxies are put in the same collection as already loaded "real" objects in which case the BasicData.equals() method doesns't work. If both objects are BioMaterialData objects we can safely compare the id since they all share the same database table and id:s are always unique even for items of different types.
      Overrides:
      equals in class BasicData
      Since:
      3.3
    • 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

      This is the inverse end. NOTE! This collection will not contained pooled children or hybridizations.
      Since:
      2.9
      See Also:
      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)
    • getChildCreationEvents

      Set<BioMaterialEventSourceData> getChildCreationEvents()
      This is the inverse end.
      See Also:
      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)