Class SupportingDocument

java.lang.Object
org.ivoa.dm.proposal.prop.SupportingDocument
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:SupportingDocument", role=objectType) public class SupportingDocument extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a document. objectType: SupportingDocument
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • title

      @VoDml(id="proposal:SupportingDocument.title", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String title
      document title. : Attribute title : multiplicity 1
    • location

      @VoDml(id="proposal:SupportingDocument.location", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String location
      location of document. : Attribute location : multiplicity 1
  • Constructor Details

    • SupportingDocument

      public SupportingDocument()
      Creates a new SupportingDocument
    • SupportingDocument

      public SupportingDocument(String title, String location)
      full parameter constructor.
      Parameters:
      title - document title.
      location - location of document.
    • SupportingDocument

      public SupportingDocument(SupportingDocument 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(SupportingDocument 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.
    • getTitle

      public String getTitle()
      Returns title Attribute
      Returns:
      title Attribute
    • setTitle

      public void setTitle(String pTitle)
      Defines title Attribute
      Parameters:
      pTitle - value to set
    • withTitle

      public SupportingDocument withTitle(String pTitle)
    • getLocation

      public String getLocation()
      Returns location Attribute
      Returns:
      location Attribute
    • setLocation

      public void setLocation(String pLocation)
      Defines location Attribute
      Parameters:
      pLocation - value to set
    • withLocation

      public SupportingDocument withLocation(String pLocation)
    • createSupportingDocument

      public static SupportingDocument createSupportingDocument(Consumer<SupportingDocument.SupportingDocumentBuilder> f)
      create a SupportingDocument 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
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations