Class ATest

java.lang.Object
net.ivoa.dm.adqlgeom.test.ATest
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="adqltest:ATest", role=objectType) public class ATest extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Just for testing. objectType: ATest
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • apoint

      @VoDml(id="adqltest:ATest.apoint", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected Point apoint
      . : Attribute apoint : multiplicity 1
    • acircle

      @VoDml(id="adqltest:ATest.acircle", role=attribute, type="adqlgeom:Circle", typeRole=dataType) protected Circle acircle
      . : Attribute acircle : multiplicity 1
    • apoly

      @VoDml(id="adqltest:ATest.apoly", role=attribute, type="adqlgeom:Polygon", typeRole=dataType) protected Polygon apoly
      . : Attribute apoly : multiplicity 1
    • aninterval

      @VoDml(id="adqltest:ATest.aninterval", role=attribute, type="adqlgeom:Interval", typeRole=dataType) protected Interval aninterval
      . : Attribute aninterval : multiplicity 1
  • Constructor Details

    • ATest

      public ATest()
      Creates a new ATest
    • ATest

      public ATest(Point apoint, Circle acircle, Polygon apoly, Interval aninterval)
      full parameter constructor.
      Parameters:
      apoint - .
      acircle - .
      apoly - .
      aninterval - .
    • ATest

      public ATest(ATest 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
    • updateUsing

      public void updateUsing(ATest 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.
    • getApoint

      public Point getApoint()
      Returns apoint Attribute.
      Returns:
      apoint Attribute
    • setApoint

      public void setApoint(Point pApoint)
      Set apoint Attribute.
      Parameters:
      pApoint - value to set
    • withApoint

      public ATest withApoint(Point pApoint)
      fluent setter for apoint Attribute.
      Parameters:
      pApoint - value to set
      Returns:
      ATest
    • getAcircle

      public Circle getAcircle()
      Returns acircle Attribute.
      Returns:
      acircle Attribute
    • setAcircle

      public void setAcircle(Circle pAcircle)
      Set acircle Attribute.
      Parameters:
      pAcircle - value to set
    • withAcircle

      public ATest withAcircle(Circle pAcircle)
      fluent setter for acircle Attribute.
      Parameters:
      pAcircle - value to set
      Returns:
      ATest
    • getApoly

      public Polygon getApoly()
      Returns apoly Attribute.
      Returns:
      apoly Attribute
    • setApoly

      public void setApoly(Polygon pApoly)
      Set apoly Attribute.
      Parameters:
      pApoly - value to set
    • withApoly

      public ATest withApoly(Polygon pApoly)
      fluent setter for apoly Attribute.
      Parameters:
      pApoly - value to set
      Returns:
      ATest
    • getAninterval

      public Interval getAninterval()
      Returns aninterval Attribute.
      Returns:
      aninterval Attribute
    • setAninterval

      public void setAninterval(Interval pAninterval)
      Set aninterval Attribute.
      Parameters:
      pAninterval - value to set
    • withAninterval

      public ATest withAninterval(Interval pAninterval)
      fluent setter for aninterval Attribute.
      Parameters:
      pAninterval - value to set
      Returns:
      ATest
    • createATest

      public static ATest createATest(Consumer<ATest.ATestBuilder> f)
      create a ATest 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
    • delete

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