Class Field

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

@Entity @VoDml(id="proposal:Field", role=objectType) public abstract class Field extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Definition of an observing field pointing. objectType: Field
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Long
    inserted database key
    protected String
    .
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new Field
    Field(String name)
    full parameter constructor.
    Field(Field other)
    Copy Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract Field
    make a clone of the object taking into account current polymorhic type.
    void
     
     
    Returns name Attribute.
    getter for XMLID
    boolean
     
    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
    setName(String pName)
    Set name Attribute.
    void
     
    void
    Update this object with the content of the given object.
    fluent setter for name Attribute.

    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

    delete
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="proposal:Field.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      . : Attribute name : multiplicity 1
  • Constructor Details

    • Field

      public Field()
      Creates a new Field
    • Field

      public Field(String name)
      full parameter constructor.
      Parameters:
      name - .
    • Field

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

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • getXmlId

      public String getXmlId()
      getter for XMLID
      Specified by:
      getXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • setXmlId

      public void setXmlId(String id)
      Specified by:
      setXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • hasNaturalKey

      public boolean hasNaturalKey()
      Specified by:
      hasNaturalKey in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • copyMe

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

      public void updateUsing(Field 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.
    • getName

      public String getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(String pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public Field withName(String pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      Field
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • 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