Class Point

java.lang.Object
org.ivoa.dm.proposal.prop.Field
org.ivoa.dm.proposal.prop.Point
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:Point", role=objectType) public class Point extends Field implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Single point on the sky. objectType: Point
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A builder class for Point, mainly for use in the functional builder pattern.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.ivoa.dm.stc.coords.Point
    .

    Fields inherited from class org.ivoa.dm.proposal.prop.Field

    _id, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new Point
    Point(Field superinstance, org.ivoa.dm.stc.coords.Point centre)
    Constructor from supertype instance.
    Point(Point other)
    Copy Constructor.
    Point(org.ivoa.dm.stc.coords.Point centre, String name)
    full parameter constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    make a clone of the object taking into account current polymorhic type.
    static Point
    create a Point in functional builder style.
    void
     
    org.ivoa.dm.stc.coords.Point
    Returns centre Attribute.
    void
    persistRefs(jakarta.persistence.EntityManager _em)
    Deprecated.
    generally better to use the model level reference persistence as only this can deal with "contained" references properly.
    void
    setCentre(org.ivoa.dm.stc.coords.Point pCentre)
    Set centre Attribute.
    void
    Update this object with the content of the given object.
    withCentre(org.ivoa.dm.stc.coords.Point pCentre)
    fluent setter for centre Attribute.

    Methods inherited from class org.ivoa.dm.proposal.prop.Field

    getId, getName, getXmlId, hasNaturalKey, setName, setXmlId, updateUsing, withName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType

    getId

    Methods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement

    getXmlId, hasNaturalKey, setXmlId
  • Field Details

    • centre

      @VoDml(id="proposal:Point.centre", role=attribute, type="coords:Point", typeRole=dataType) protected org.ivoa.dm.stc.coords.Point centre
      . : Attribute centre : multiplicity 1
  • Constructor Details

    • Point

      public Point()
      Creates a new Point
    • Point

      public Point(org.ivoa.dm.stc.coords.Point centre, String name)
      full parameter constructor.
      Parameters:
      centre - .
      name - .
    • Point

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

      public Point(Field superinstance, org.ivoa.dm.stc.coords.Point centre)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      centre - .
  • Method Details

    • copyMe

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

      public void updateUsing(Point 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.
    • getCentre

      public org.ivoa.dm.stc.coords.Point getCentre()
      Returns centre Attribute.
      Returns:
      centre Attribute
    • setCentre

      public void setCentre(org.ivoa.dm.stc.coords.Point pCentre)
      Set centre Attribute.
      Parameters:
      pCentre - value to set
    • withCentre

      public Point withCentre(org.ivoa.dm.stc.coords.Point pCentre)
      fluent setter for centre Attribute.
      Parameters:
      pCentre - value to set
      Returns:
      Point
    • createPoint

      public static Point createPoint(Consumer<Point.PointBuilder> f)
      create a Point 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 Field
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class Field