Class Target

java.lang.Object
org.ivoa.dm.proposal.prop.Target
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Direct Known Subclasses:
CelestialTarget, SolarSystemTarget

@Entity @VoDml(id="proposal:Target", role=objectType) public abstract class Target extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
A target source. objectType: Target
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • sourceName

      @VoDml(id="proposal:Target.sourceName", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String sourceName
      A common name for the source. : Attribute sourceName : multiplicity 1
  • Constructor Details

    • Target

      public Target()
      Creates a new Target
    • Target

      public Target(String sourceName)
      full parameter constructor.
      Parameters:
      sourceName - A common name for the source.
  • 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 Target copyMe()
      make a clone of the object taking into account current polymorhic type.
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(Target 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.
    • getSourceName

      public String getSourceName()
      Returns sourceName Attribute.
      Returns:
      sourceName Attribute
    • setSourceName

      public void setSourceName(String pSourceName)
      Set sourceName Attribute.
      Parameters:
      pSourceName - value to set
    • withSourceName

      public Target withSourceName(String pSourceName)
      fluent setter for sourceName Attribute.
      Parameters:
      pSourceName - value to set
      Returns:
      Target
    • 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