3.1.2: 2012-07-31

net.sf.basedb.core.data
Interface SubtypableData

All Known Implementing Classes:
BioMaterialData, BioSourceData, DerivedBioAssayData, ExtractData, FileData, HardwareData, MeasuredBioMaterialData, PhysicalBioAssayData, ProtocolData, SampleData, SoftwareData, TagData

public interface SubtypableData

A subtypable item is an item that can have a subtype. Subtypes are defined by objects of the ItemSubtypeData class.

This interface defines Hibernate database mapping for the itemSubtype association to a column with the name subtype_id. If a subclass wants to map the association to another column, it should override the getItemSubtype() method and add a Hibernate tag in the comment.

Reference implementation

private ItemSubtypeData subtype;
public ItemSubtypeData getItemSubtype()
{
   return subtype;
}
public void setItemSubtype(ItemSubtypeData subtype)
{
   this.subtype = subtype;
}

Since:
3.0
Author:
Nicklas
See Also:
Developer documentation: Experimental platforms and item subtypes
Last modified
$Date: 2011-10-21 13:15:41 +0200 (Fri, 21 Oct 2011) $

Method Summary
 ItemSubtypeData getItemSubtype()
          Get the subtype of the item.
 void setItemSubtype(ItemSubtypeData subtype)
          Set the subtype of the item.
 

Method Detail

getItemSubtype

ItemSubtypeData getItemSubtype()
Get the subtype of the item.

Hibernate: many-to-one
column="`subtype_id`" not-null="false" outer-join="false"

setItemSubtype

void setItemSubtype(ItemSubtypeData subtype)
Set the subtype of the item.


3.1.2: 2012-07-31