Class MirrorURL

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

@Entity @VoDml(id="VOResource:MirrorURL", role=objectType) public class MirrorURL extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A URL of a mirror (i.e., a functionally identical additional service interface) to . objectType: MirrorURL
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • value

      @VoDml(id="VOResource:MirrorURL.value", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String value
      . : Attribute value : multiplicity 1
    • title

      @VoDml(id="VOResource:MirrorURL.title", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String title
      A terse, human-readable phrase indicating the function or location of this mirror, e.g., “Primary Backup” or “European Mirror”. : Attribute title : multiplicity 1
  • Constructor Details

    • MirrorURL

      public MirrorURL()
      Creates a new MirrorURL
    • MirrorURL

      public MirrorURL(String value, String title)
      full parameter constructor.
      Parameters:
      value - .
      title - A terse, human-readable phrase indicating the function or location of this mirror, e.g., “Primary Backup” or “European Mirror”.
    • MirrorURL

      public MirrorURL(MirrorURL 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(MirrorURL 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.
    • getValue

      public String getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

      public void setValue(String pValue)
      Set value Attribute.
      Parameters:
      pValue - value to set
    • withValue

      public MirrorURL withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      MirrorURL
    • getTitle

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

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

      public MirrorURL withTitle(String pTitle)
      fluent setter for title Attribute.
      Parameters:
      pTitle - value to set
      Returns:
      MirrorURL
    • createMirrorURL

      public static MirrorURL createMirrorURL(Consumer<MirrorURL.MirrorURLBuilder> f)
      create a MirrorURL 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>