Class Compound

All Implemented Interfaces:
Describable, Identifiable

@Indexed public class Compound extends AbstractDescribable
  • Constructor Details

    • Compound

      public Compound()
  • Method Details

    • getId

      @DocumentId public Long getId()
      Specified by:
      getId in interface Identifiable
      Overrides:
      getId in class AbstractIdentifiable
    • 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 interface Describable
      Overrides:
      getName in class AbstractDescribable
    • 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 class AbstractIdentifiable