Package ubic.gemma.model.genome.gene
Class GeneProduct
- java.lang.Object
-
- ubic.gemma.model.common.AbstractDescribable
-
- ubic.gemma.model.genome.ChromosomeFeature
-
- ubic.gemma.model.genome.gene.GeneProduct
-
- All Implemented Interfaces:
Serializable
,Describable
,Identifiable
@Indexed public class GeneProduct extends ChromosomeFeature
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeneProduct.Factory
-
Constructor Summary
Constructors Constructor Description GeneProduct()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.Set<DatabaseEntry>
getAccessions()
Set<PhysicalLocation>
getExons()
Only used for transient instances in sequence analysis, we do not store exon locations in the database.Gene
getGene()
Long
getId()
String
getName()
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.String
getNcbiGi()
String
getPreviousNcbiId()
int
hashCode()
Returns a hash code based on this entity's identifiers.boolean
isDummy()
void
setAccessions(Set<DatabaseEntry> accessions)
void
setDummy(boolean dummy)
void
setExons(Set<PhysicalLocation> exons)
Only used for transient instances, we do not store exon locations in the database.void
setGene(Gene gene)
void
setNcbiGi(String ncbiGi)
String
toString()
-
Methods inherited from class ubic.gemma.model.genome.ChromosomeFeature
getPhysicalLocation, setPhysicalLocation, setPreviousNcbiId
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, setDescription, setId, setName
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from class:AbstractDescribable
Returns a hash code based on this entity's identifiers.- Overrides:
hashCode
in classAbstractDescribable
-
equals
public boolean equals(Object object)
Description copied from class:AbstractDescribable
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalse
otherwise.- Overrides:
equals
in classAbstractDescribable
-
toString
public String toString()
- Overrides:
toString
in classAbstractDescribable
- See Also:
AbstractDescribable.toString()
-
getId
@DocumentId public Long getId()
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classAbstractDescribable
-
getName
@Field public String 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
- Overrides:
getName
in classAbstractDescribable
-
getAccessions
@IndexedEmbedded public Set<DatabaseEntry> getAccessions()
-
setAccessions
public void setAccessions(Set<DatabaseEntry> accessions)
-
getExons
public Set<PhysicalLocation> getExons()
Only used for transient instances in sequence analysis, we do not store exon locations in the database.- Returns:
- physical locations of exons
-
setExons
public void setExons(Set<PhysicalLocation> exons)
Only used for transient instances, we do not store exon locations in the database.- Parameters:
exons
- new physical locations of exons
-
getGene
public Gene getGene()
-
setGene
public void setGene(Gene gene)
-
getNcbiGi
@Field(analyze=NO) public String getNcbiGi()
- Returns:
- GI for the gene product (if available)
-
setNcbiGi
public void setNcbiGi(String ncbiGi)
-
getPreviousNcbiId
@Field public String getPreviousNcbiId()
- Overrides:
getPreviousNcbiId
in 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)
-
-