Package net.sf.basedb.core.data
Interface SubtypableData
-
- All Known Implementing Classes:
BioMaterialData
,BioSourceData
,DerivedBioAssayData
,ExtractData
,FileData
,HardwareData
,JobData
,KitData
,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 theItemSubtypeData
class.This interface defines Hibernate database mapping for the
itemSubtype
association to a column with the namesubtype_id
. If a subclass wants to map the association to another column, it should override thegetItemSubtype()
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 (fr, 21 okt 2011) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-