2.17.2: 2011-06-17

net.sf.basedb.core.data
Interface OwnableData

All Superinterfaces:
IdentifiableData
All Known Subinterfaces:
DiskConsumableData, ShareableData
All Known Implementing Classes:
AnnotatedData, AnnotationTypeCategoryData, AnnotationTypeData, ArrayBatchData, ArrayDesignData, ArraySlideData, BioMaterialData, BioMaterialListData, BioPlateData, BioPlateEventData, BioSourceData, ClientData, CommonData, DirectoryData, ExperimentData, ExtractData, FileData, FileServerData, FormulaData, HardwareData, HybridizationData, JobAgentData, JobData, LabelData, LabeledExtractData, MeasuredBioMaterialData, OwnedData, PermissionTemplateData, PlateData, PlateMappingData, PlateTypeData, PluginConfigurationData, PluginDefinitionData, ProjectData, ProtocolData, RawBioAssayData, ReporterListData, SampleData, ScanData, SharedData, SoftwareData

public interface OwnableData
extends IdentifiableData

An ownable item is an item which has an owner. The owner is represented as a required association to a UserData object.

This interface defines Hibernate database mappings for the owner property to the database column with the same name. If a subclass wants to map the property to another column, it should override the getOwner() method and add a Hibernate tag in the comment.

Reference implementation

private UserData owner;
public UserData getOwner()
{
   return owner;
}
public void setOwner(UserData owner)
{
   this.owner = owner;
}

Version:
2.0
Author:
Nicklas
See Also:
OwnedData, Ownable, Authentication overview, Basic classes and interfaces

Method Summary
 UserData getOwner()
          Get the UserData that is the owner of the item.
 void setOwner(UserData owner)
          Change the owner of the item.
 
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
 

Method Detail

getOwner

UserData getOwner()
Get the UserData that is the owner of the item.

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

setOwner

void setOwner(UserData owner)
Change the owner of the item. Null is not allowed.


2.17.2: 2011-06-17