Class DatabaseEntry
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.common.description.DatabaseEntry
-
- All Implemented Interfaces:
Identifiable
@Indexed public class DatabaseEntry extends AbstractIdentifiable
A reference to a record in a database.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DatabaseEntry.Factory
-
Constructor Summary
Constructors Constructor Description DatabaseEntry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated 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
getAccession()
String
getAccessionVersion()
static Comparator<DatabaseEntry>
getComparator()
ComparesDatabaseEntry
by version.ExternalDatabase
getExternalDatabase()
Long
getId()
String
getUri()
Deprecated.int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setAccession(String accession)
void
setAccessionVersion(String accessionVersion)
void
setExternalDatabase(ExternalDatabase externalDatabase)
void
setUri(String Uri)
Deprecated.String
toString()
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
-
-
-
Method Detail
-
getComparator
public static Comparator<DatabaseEntry> getComparator()
ComparesDatabaseEntry
by version.
-
getAccession
@Field(analyze=NO) public String getAccession()
-
setAccession
public void setAccession(String accession)
-
getAccessionVersion
public String getAccessionVersion()
-
setAccessionVersion
public void setAccessionVersion(String accessionVersion)
-
getExternalDatabase
public ExternalDatabase getExternalDatabase()
-
setExternalDatabase
public void setExternalDatabase(ExternalDatabase externalDatabase)
-
getId
@DocumentId public Long getId()
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classAbstractIdentifiable
-
getUri
@Deprecated public String getUri()
Deprecated.
-
setUri
@Deprecated public void setUri(String Uri)
Deprecated.
-
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
-
-