Package ubic.gemma.model.common
Class AbstractDescribable
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.AbstractDescribable
- All Implemented Interfaces:
Describable,Identifiable
- Direct Known Subclasses:
AbstractAuditable,Analysis,BibliographicReference,BioAssay,BioMaterial,BioSequence,BlacklistedEntity,Characteristic,ChromosomeFeature,CompositeSequence,Compound,Contact,ExperimentalDesign,ExperimentalFactor,ExternalDatabase,GenericCellLevelCharacteristics,Protocol,QuantitationType,Reporter,Treatment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain a human-readable description of the objectgetName()Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.inthashCode()Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.voidsetDescription(String description) voidtoString()Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
equals, getId, setIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ubic.gemma.model.common.Identifiable
getId
-
Constructor Details
-
AbstractDescribable
public AbstractDescribable()
-
-
Method Details
-
getName
Description copied from interface:DescribableObtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getNamein interfaceDescribable
-
setName
-
getDescription
Description copied from interface:DescribableObtain a human-readable description of the object- Specified by:
getDescriptionin interfaceDescribable
-
setDescription
-
hashCode
public int hashCode()Description copied from class:AbstractIdentifiableImportant note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCodein classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-