Class SkaoDataResource

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

@Entity @VoDml(id="execbroker:SkaoDataResource", role=objectType) public class SkaoDataResource extends IvoaDataResource implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Metadata describing a SKAO data resource in the data lake. objectType: SkaoDataResource
  • Field Details

    • skao

      @VoDml(id="execbroker:SkaoDataResource.skao", role=composition, type="execbroker:SkaoDataResourceBlock", typeRole=objectType) protected SkaoDataResourceBlock skao
      . composition skao : ( Multiplicity : 1 )
  • Constructor Details

    • SkaoDataResource

      public SkaoDataResource()
      Creates a new SkaoDataResource
    • SkaoDataResource

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

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

      public SkaoDataResource(IvoaDataResource superinstance, SkaoDataResourceBlock skao)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      skao - .
  • Method Details

    • copyMe

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

      public void updateUsing(SkaoDataResource 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.
    • getSkao

      public SkaoDataResourceBlock getSkao()
      Returns skao Attribute.
      Returns:
      skao Attribute
    • setSkao

      public void setSkao(SkaoDataResourceBlock pSkao)
      Set skao Attribute.
      Parameters:
      pSkao - value to set
    • withSkao

      public SkaoDataResource withSkao(SkaoDataResourceBlock pSkao)
      fluent setter for skao Attribute.
      Parameters:
      pSkao - value to set
      Returns:
      SkaoDataResource
    • createSkaoDataResource

      public static SkaoDataResource createSkaoDataResource(Consumer<SkaoDataResource.SkaoDataResourceBuilder> f)
      create a SkaoDataResource 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 IvoaDataResource
    • delete

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