Class DataNode

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

@Entity @VoDml(id="execution:DataNode", role=objectType) public class DataNode extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A Node where data can be stored. objectType: DataNode
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • storageServiceUrl

      @VoDml(id="execution:DataNode.storageServiceUrl", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String storageServiceUrl
      the URL of the storage service. : Attribute storageServiceUrl type ivoa:anyURI : multiplicity 1
    • location

      @VoDml(id="execution:DataNode.location", role=reference, type="execution:PhysicalLocation", typeRole=objectType) protected PhysicalLocation location
      ReferenceObject location : the location of the node. ( Multiplicity : 1 )
  • Constructor Details

    • DataNode

      public DataNode()
      Creates a new DataNode
    • DataNode

      public DataNode(String storageServiceUrl, PhysicalLocation location)
      full parameter constructor.
      Parameters:
      storageServiceUrl - the URL of the storage service.
      location - the location of the node.
    • DataNode

      public DataNode(DataNode 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(DataNode 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.
    • getStorageServiceUrl

      public String getStorageServiceUrl()
      Returns storageServiceUrl Attribute.
      Returns:
      storageServiceUrl Attribute
    • setStorageServiceUrl

      public void setStorageServiceUrl(String pStorageServiceUrl)
      Set storageServiceUrl Attribute.
      Parameters:
      pStorageServiceUrl - value to set
    • withStorageServiceUrl

      public DataNode withStorageServiceUrl(String pStorageServiceUrl)
      fluent setter for storageServiceUrl Attribute.
      Parameters:
      pStorageServiceUrl - value to set
      Returns:
      DataNode
    • getLocation

      public PhysicalLocation getLocation()
      Returns location Reference
      Returns:
      location Reference
    • setLocation

      public void setLocation(PhysicalLocation pLocation)
      Defines location Reference
      Parameters:
      pLocation - reference to set
    • createDataNode

      public static DataNode createDataNode(Consumer<DataNode.DataNodeBuilder> f)
      create a DataNode 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>