Class DatabaseEntry

java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.description.DatabaseEntry
All Implemented Interfaces:
Identifiable

@Entity @Indexed public class DatabaseEntry extends AbstractIdentifiable

A reference to a record in a database.

Hibernate Search 7 mapping: contributes its accession as a keyword field via @IndexedEmbedded from many indexed roots (ExpressionExperiment.getAccession(), ArrayDesign.getExternalReferences(), etc.).

  • Constructor Details

    • DatabaseEntry

      public DatabaseEntry()
  • Method Details

    • getComparator

      public static Comparator<DatabaseEntry> getComparator()
      Compares DatabaseEntry by version.
    • getAccession

      @KeywordField 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()
      Description copied from interface: Identifiable
      Obtain the identifier of the object.
      Specified by:
      getId in interface Identifiable
      Overrides:
      getId in class AbstractIdentifiable
    • getUri

      @Nullable public String getUri()
    • setUri

      public void setUri(@Nullable String uri)
    • 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 class AbstractIdentifiable
    • 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 class AbstractIdentifiable
    • toString

      public String toString()
      Overrides:
      toString in class AbstractIdentifiable