Class SkaoReplicaItem

java.lang.Object
org.ivoa.dm.executionbroker.SkaoReplicaItem
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:SkaoReplicaItem", role=objectType) public class SkaoReplicaItem extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Metadata about a replica in an RSE. objectType: SkaoReplicaItem
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • rsename

      @VoDml(id="execbroker:SkaoReplicaItem.rsename", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String rsename
      The RSE name. : Attribute rsename : multiplicity 1
    • dataurl

      @VoDml(id="execbroker:SkaoReplicaItem.dataurl", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String dataurl
      The URL/URI of the object within the RSE. : Attribute dataurl : multiplicity 1
  • Constructor Details

    • SkaoReplicaItem

      public SkaoReplicaItem()
      Creates a new SkaoReplicaItem
    • SkaoReplicaItem

      public SkaoReplicaItem(String rsename, String dataurl)
      full parameter constructor.
      Parameters:
      rsename - The RSE name.
      dataurl - The URL/URI of the object within the RSE.
    • SkaoReplicaItem

      public SkaoReplicaItem(SkaoReplicaItem 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(SkaoReplicaItem 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.
    • getRsename

      public String getRsename()
      Returns rsename Attribute.
      Returns:
      rsename Attribute
    • setRsename

      public void setRsename(String pRsename)
      Set rsename Attribute.
      Parameters:
      pRsename - value to set
    • withRsename

      public SkaoReplicaItem withRsename(String pRsename)
      fluent setter for rsename Attribute.
      Parameters:
      pRsename - value to set
      Returns:
      SkaoReplicaItem
    • getDataurl

      public String getDataurl()
      Returns dataurl Attribute.
      Returns:
      dataurl Attribute
    • setDataurl

      public void setDataurl(String pDataurl)
      Set dataurl Attribute.
      Parameters:
      pDataurl - value to set
    • withDataurl

      public SkaoReplicaItem withDataurl(String pDataurl)
      fluent setter for dataurl Attribute.
      Parameters:
      pDataurl - value to set
      Returns:
      SkaoReplicaItem
    • createSkaoReplicaItem

      public static SkaoReplicaItem createSkaoReplicaItem(Consumer<SkaoReplicaItem.SkaoReplicaItemBuilder> f)
      create a SkaoReplicaItem 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>