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.int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setDescription
(String description) void
toString()
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
equals, getId, setId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ubic.gemma.model.common.Identifiable
getId
-
Constructor Details
-
AbstractDescribable
public AbstractDescribable()
-
-
Method Details
-
getName
Description copied from interface:Describable
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getName
in interfaceDescribable
-
setName
-
getDescription
Description copied from interface:Describable
Obtain a human-readable description of the object- Specified by:
getDescription
in interfaceDescribable
-
setDescription
-
hashCode
public int hashCode()Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCode
in classAbstractIdentifiable
-
toString
- Overrides:
toString
in classAbstractIdentifiable
-