Class DatabaseEntry
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.description.DatabaseEntry
- All Implemented Interfaces:
Identifiable
A reference to a record in a database.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Important note: Two objects with the same class and non-null ID must be considered equal.static Comparator
<DatabaseEntry> ComparesDatabaseEntry
by version.getId()
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
Deprecated.toString()
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
Constructor Details
-
DatabaseEntry
public DatabaseEntry()
-
-
Method Details
-
getComparator
ComparesDatabaseEntry
by version. -
getAccession
-
setAccession
-
getAccessionVersion
-
setAccessionVersion
-
getExternalDatabase
-
setExternalDatabase
-
getId
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classAbstractIdentifiable
-
getUri
Deprecated. -
setUri
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
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
- Overrides:
toString
in classAbstractIdentifiable
-