Package ubic.gemma.model.genome
Class Taxon
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.genome.Taxon
-
- All Implemented Interfaces:
Identifiable
public class Taxon extends AbstractIdentifiable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Taxon.Factory
-
Constructor Summary
Constructors Constructor Description Taxon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Important note: Two objects with the same class and non-null ID must be considered equal.String
getCommonName()
ExternalDatabase
getExternalDatabase()
boolean
getIsGenesUsable()
Integer
getNcbiId()
String
getScientificName()
Integer
getSecondaryNcbiId()
int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setCommonName(String commonName)
void
setExternalDatabase(ExternalDatabase externalDatabase)
void
setIsGenesUsable(boolean isGenesUsable)
void
setNcbiId(Integer ncbiId)
void
setScientificName(String scientificName)
void
setSecondaryNcbiId(Integer secondaryNcbiId)
String
toString()
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
-
-
-
Method Detail
-
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
-
equals
public boolean equals(Object object)
Description copied from class:AbstractIdentifiable
Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.- Specified by:
equals
in classAbstractIdentifiable
-
toString
public String toString()
- Overrides:
toString
in classAbstractIdentifiable
- See Also:
toString()
-
getExternalDatabase
@Nullable public ExternalDatabase getExternalDatabase()
-
setExternalDatabase
public void setExternalDatabase(@Nullable ExternalDatabase externalDatabase)
-
getIsGenesUsable
public boolean getIsGenesUsable()
-
setIsGenesUsable
public void setIsGenesUsable(boolean isGenesUsable)
-
getSecondaryNcbiId
@Nullable public Integer getSecondaryNcbiId()
- Returns:
- Represents a "secondary" Taxon id that is used for this species. The main example where this is necessary is budding yeast, which is id 4932 in GEO but genes use the (strain-specific) ID 559292.
-
-