Class SDSSSource

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

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

    • SDSSSource

      public SDSSSource()
      Creates a new SDSSSource
    • SDSSSource

      public SDSSSource(AlignedEllipse 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 - .
    • SDSSSource

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

      public SDSSSource(AbstractSource superinstance, AlignedEllipse 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(SDSSSource 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 AlignedEllipse getPositionError()
    • setPositionError

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

      public SDSSSource withPositionError(AlignedEllipse pPositionError)
      fluent setter for positionError Attribute.
      Parameters:
      pPositionError - value to set
      Returns:
      SDSSSource
    • createSDSSSource

      public static SDSSSource createSDSSSource(Consumer<SDSSSource.SDSSSourceBuilder> f)
      create a SDSSSource 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>