Class Source

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="DemoDM:catalog.Source", role=objectType) public class Source extends AbstractSource implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
. objectType: Source
  • Constructor Details

    • Source

      public Source()
      Creates a new Source
    • Source

      public Source(GenericEllipse positionError, String name, String description, SkyCoordinate position, SourceClassification classification, List<LuminosityMeasurement> luminosity, String objectType)
      full parameter constructor.
      Parameters:
      positionError - .
      name - .
      description - .
      position - .
      classification - .
      luminosity - .
      objectType - .
    • Source

      public Source(Source other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • Source

      public Source(AbstractSource superinstance, GenericEllipse positionError)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      positionError - .
  • Method Details

    • copyMe

      public AstroObject copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class AbstractSource
      Returns:
      the cloned object.
    • updateClonedReferences

      public void updateClonedReferences()
      updates any cloned references that are contained within the hierarchy.
      Overrides:
      updateClonedReferences in class AbstractSource
    • updateUsing

      public void updateUsing(Source other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getPositionError

      public GenericEllipse getPositionError()
    • setPositionError

      public void setPositionError(GenericEllipse pPositionError)
      Set positionError Attribute.
      Parameters:
      pPositionError - value to set
    • withPositionError

      public Source withPositionError(GenericEllipse pPositionError)
      fluent setter for positionError Attribute.
      Parameters:
      pPositionError - value to set
      Returns:
      Source
    • createSource

      public static Source createSource(Consumer<Source.SourceBuilder> f)
      create a Source in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class AbstractSource
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>