Class Compound
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.common.AbstractDescribable
-
- ubic.gemma.model.expression.biomaterial.Compound
-
- All Implemented Interfaces:
Describable
,Identifiable
@Indexed public class Compound extends AbstractDescribable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Compound.Factory
-
Constructor Summary
Constructors Constructor Description Compound()
-
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.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
getRegistryNumber()
void
setRegistryNumber(String registryNumber)
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, hashCode, setDescription, setName, toString
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
-
-
-
Method Detail
-
getId
@DocumentId public Long getId()
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classAbstractIdentifiable
-
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
-
getRegistryNumber
@Field(analyze=NO) public String getRegistryNumber()
- Returns:
- CAS registry number (see http://www.cas.org/)
-
setRegistryNumber
public void setRegistryNumber(String registryNumber)
-
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
-
-