Class SimpleDataResource

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:SimpleDataResource", role=objectType) public class SimpleDataResource extends AbstractDataResource implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple downloadable data resource. objectType: SimpleDataResource
  • Field Details

    • location

      @VoDml(id="execbroker:SimpleDataResource.location", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String location
      The URL of the data to import. : Attribute location : multiplicity 1
  • Constructor Details

    • SimpleDataResource

      public SimpleDataResource()
      Creates a new SimpleDataResource
    • SimpleDataResource

      public SimpleDataResource(String location, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      location - The URL of the data to import.
      phase - The lifecycle phase.
      schedule - The lifecycle schedule.
      kind - The component type identifier.
      meta - The component metadata.
    • SimpleDataResource

      public SimpleDataResource(SimpleDataResource other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • SimpleDataResource

      public SimpleDataResource(AbstractDataResource superinstance, String location)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      location - The URL of the data to import.
  • Method Details

    • copyMe

      public AbstractComponent copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class AbstractDataResource
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(SimpleDataResource 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.
    • getLocation

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

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

      public SimpleDataResource withLocation(String pLocation)
      fluent setter for location Attribute.
      Parameters:
      pLocation - value to set
      Returns:
      SimpleDataResource
    • createSimpleDataResource

      public static SimpleDataResource createSimpleDataResource(Consumer<SimpleDataResource.SimpleDataResourceBuilder> f)
      create a SimpleDataResource 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
      Overrides:
      forceLoad in class AbstractDataResource
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>