Class UploadMethod

java.lang.Object
org.ivoa.dm.registry.tap.UploadMethod
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="TAPRegExt:UploadMethod", role=objectType) public class UploadMethod extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
An upload method as defined by IVOA. Upload methods are always identified by an IVORN. Descriptions can be obtained by dereferencing this IVORN. To see values defined in TAPRegExt, retrieve the ivo://ivoa.net/std/TAPRegExt resource record and look for keys starting with 'upload-'. You can register custom upload methods, but you must use the standard IVORNs for the upload methods defined in the TAP specification. objectType: UploadMethod
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • ivoid

      @VoDml(id="TAPRegExt:UploadMethod.ivoid", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String ivoid
      The IVORN of the upload method. : Attribute ivoid : multiplicity 1
  • Constructor Details

    • UploadMethod

      public UploadMethod()
      Creates a new UploadMethod
    • UploadMethod

      public UploadMethod(String ivoid)
      full parameter constructor.
      Parameters:
      ivoid - The IVORN of the upload method.
    • UploadMethod

      public UploadMethod(UploadMethod 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(UploadMethod 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.
    • getIvoid

      public String getIvoid()
      Returns ivoid Attribute.
      Returns:
      ivoid Attribute
    • setIvoid

      public void setIvoid(String pIvoid)
      Set ivoid Attribute.
      Parameters:
      pIvoid - value to set
    • withIvoid

      public UploadMethod withIvoid(String pIvoid)
      fluent setter for ivoid Attribute.
      Parameters:
      pIvoid - value to set
      Returns:
      UploadMethod
    • createUploadMethod

      public static UploadMethod createUploadMethod(Consumer<UploadMethod.UploadMethodBuilder> f)
      create a UploadMethod 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>