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 classDatabaseEntry.Factory
-
Constructor Summary
Constructors Constructor Description DatabaseEntry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object object)Important note: Two objects with the same class and non-null ID must be considered equal.StringgetAccession()StringgetAccessionVersion()static Comparator<DatabaseEntry>getComparator()ComparesDatabaseEntryby version.ExternalDatabasegetExternalDatabase()LonggetId()StringgetUri()Deprecated.inthashCode()Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.voidsetAccession(String accession)voidsetAccessionVersion(String accessionVersion)voidsetExternalDatabase(ExternalDatabase externalDatabase)voidsetUri(String Uri)Deprecated.StringtoString()-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
-
-
-
Method Detail
-
getComparator
public static Comparator<DatabaseEntry> getComparator()
ComparesDatabaseEntryby 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:
getIdin interfaceIdentifiable- Overrides:
getIdin classAbstractIdentifiable
-
getUri
@Deprecated public String getUri()
Deprecated.
-
setUri
@Deprecated public void setUri(String Uri)
Deprecated.
-
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.- Specified by:
hashCodein classAbstractIdentifiable
-
equals
public boolean equals(Object object)
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
public String toString()
- Overrides:
toStringin classAbstractIdentifiable
-
-