Class IvoaDataResource

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Direct Known Subclasses:
SkaoDataResource

@Entity @VoDml(id="execbroker:IvoaDataResource", role=objectType) public class IvoaDataResource extends AbstractDataResource implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Metadata describing an IVOA data resource. objectType: IvoaDataResource
  • Field Details

    • ivoa

      @VoDml(id="execbroker:IvoaDataResource.ivoa", role=composition, type="execbroker:IvoaDataResourceBlock", typeRole=objectType) protected IvoaDataResourceBlock ivoa
      . composition ivoa : ( Multiplicity : 1 )
  • Constructor Details

    • IvoaDataResource

      public IvoaDataResource()
      Creates a new IvoaDataResource
    • IvoaDataResource

      public IvoaDataResource(IvoaDataResourceBlock ivoa, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      ivoa - .
      phase - The lifecycle phase.
      schedule - The lifecycle schedule.
      kind - The component type identifier.
      meta - The component metadata.
    • IvoaDataResource

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

      public IvoaDataResource(AbstractDataResource superinstance, IvoaDataResourceBlock ivoa)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      ivoa - .
  • 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(IvoaDataResource 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.
    • getIvoa

      public IvoaDataResourceBlock getIvoa()
      Returns ivoa Attribute.
      Returns:
      ivoa Attribute
    • setIvoa

      public void setIvoa(IvoaDataResourceBlock pIvoa)
      Set ivoa Attribute.
      Parameters:
      pIvoa - value to set
    • withIvoa

      public IvoaDataResource withIvoa(IvoaDataResourceBlock pIvoa)
      fluent setter for ivoa Attribute.
      Parameters:
      pIvoa - value to set
      Returns:
      IvoaDataResource
    • createIvoaDataResource

      public static IvoaDataResource createIvoaDataResource(Consumer<IvoaDataResource.IvoaDataResourceBuilder> f)
      create a IvoaDataResource 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>