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..*
  • Constructor Details

    • Testing

      public Testing()
      Creates a new Testing
    • Testing

      public Testing(String plain, List<String> unbounded)
      full parameter constructor.
      Parameters:
      plain - a single string.
      unbounded - an array with many elements.
    • 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
    • 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>