Class Testing

java.lang.Object
org.ivoa.dm.demodm.catalog.inner.Testing
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

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

    • _id

      protected Long _id
      inserted database key
    • plain

      @VoDml(id="DemoDM:catalog.inner.Testing.plain", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String plain
      a single string. : Attribute plain : multiplicity 1
    • unbounded

      @VoDml(id="DemoDM:catalog.inner.Testing.unbounded", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> unbounded
      an array with many elements. : Attribute unbounded : multiplicity 0..*
    • apoint

      @VoDml(id="DemoDM:catalog.inner.Testing.apoint", role=attribute, type="DemoDM:Point", typeRole=dataType) protected Point apoint
      . : Attribute apoint : multiplicity 1
    • acircle

      @VoDml(id="DemoDM:catalog.inner.Testing.acircle", role=attribute, type="DemoDM:Circle", typeRole=dataType) protected Circle acircle
      . : Attribute acircle : multiplicity 1
    • apoly

      @VoDml(id="DemoDM:catalog.inner.Testing.apoly", role=attribute, type="DemoDM:Polygon", typeRole=dataType) protected Polygon apoly
      . : Attribute apoly : multiplicity 1
  • Constructor Details

    • Testing

      public Testing()
      Creates a new Testing
    • Testing

      public Testing(String plain, List<String> unbounded, Point apoint, Circle acircle, Polygon apoly)
      full parameter constructor.
      Parameters:
      plain - a single string.
      unbounded - an array with many elements.
      apoint - .
      acircle - .
      apoly - .
    • Testing

      public Testing(Testing 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(Testing 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.
    • getPlain

      public String getPlain()
      Returns plain Attribute.
      Returns:
      plain Attribute
    • setPlain

      public void setPlain(String pPlain)
      Set plain Attribute.
      Parameters:
      pPlain - value to set
    • withPlain

      public Testing withPlain(String pPlain)
      fluent setter for plain Attribute.
      Parameters:
      pPlain - value to set
      Returns:
      Testing
    • getUnbounded

      public List<String> getUnbounded()
      Returns unbounded Attribute.
      Returns:
      unbounded Attribute
    • setUnbounded

      public void setUnbounded(List<String> pUnbounded)
      Set unbounded Attribute.
      Parameters:
      pUnbounded - value to set
    • withUnbounded

      public Testing withUnbounded(List<String> pUnbounded)
      fluent setter for unbounded Attribute.
      Parameters:
      pUnbounded - value to set
      Returns:
      Testing
    • 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 Testing withApoint(Point pApoint)
      fluent setter for apoint Attribute.
      Parameters:
      pApoint - value to set
      Returns:
      Testing
    • 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 Testing withAcircle(Circle pAcircle)
      fluent setter for acircle Attribute.
      Parameters:
      pAcircle - value to set
      Returns:
      Testing
    • 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 Testing withApoly(Polygon pApoly)
      fluent setter for apoly Attribute.
      Parameters:
      pApoly - value to set
      Returns:
      Testing
    • createTesting

      public static Testing createTesting(Consumer<Testing.TestingBuilder> f)
      create a Testing 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>