Package ubic.gemma.model.genome.gene
Class GeneProduct
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.AbstractDescribable
ubic.gemma.model.genome.ChromosomeFeature
ubic.gemma.model.genome.gene.GeneProduct
- All Implemented Interfaces:
Describable,Identifiable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: Two objects with the same class and non-null ID must be considered equal.getExons()Only used for transient instances in sequence analysis, we do not store exon locations in the database.getGene()getId()getName()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.booleanisDummy()voidsetAccessions(Set<DatabaseEntry> accessions) voidsetDummy(boolean dummy) voidsetExons(Set<PhysicalLocation> exons) Only used for transient instances, we do not store exon locations in the database.voidvoidtoString()Methods inherited from class ubic.gemma.model.genome.ChromosomeFeature
getPhysicalLocation, setPhysicalLocation, setPreviousNcbiIdMethods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, setDescription, setNameMethods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
Constructor Details
-
GeneProduct
public GeneProduct()
-
-
Method Details
-
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.- Overrides:
hashCodein classAbstractDescribable
-
equals
Description copied from class:AbstractIdentifiableImportant 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:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractDescribable
-
getId
- Specified by:
getIdin interfaceIdentifiable- Overrides:
getIdin classAbstractIdentifiable
-
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- Overrides:
getNamein classAbstractDescribable
-
getAccessions
-
setAccessions
-
getExons
Only used for transient instances in sequence analysis, we do not store exon locations in the database.- Returns:
- physical locations of exons
-
setExons
Only used for transient instances, we do not store exon locations in the database.- Parameters:
exons- new physical locations of exons
-
getGene
-
setGene
-
getNcbiGi
- Returns:
- GI for the gene product (if available)
-
setNcbiGi
-
getPreviousNcbiId
- Overrides:
getPreviousNcbiIdin classChromosomeFeature- Returns:
- The last-used NCBI id for this feature, according to the history information provided by NCBI. This may be empty.
-
isDummy
public boolean isDummy() -
setDummy
public void setDummy(boolean dummy)
-