Class JupyterNotebook

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

@Entity @VoDml(id="execbroker:JupyterNotebook", role=objectType) public class JupyterNotebook extends AbstractExecutable implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Details for a Jupyter notebook executable. See https://jupyter.org/. objectType: JupyterNotebook
  • Field Details

    • location

      @VoDml(id="execbroker:JupyterNotebook.location", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String location
      The URL of the notebook. TODO - This needs to take into account different ways of referring to a notebook. : Attribute location : multiplicity 1
  • Constructor Details

    • JupyterNotebook

      public JupyterNotebook()
      Creates a new JupyterNotebook
    • JupyterNotebook

      public JupyterNotebook(String location, LifecycleComponent lifecycle, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      location - The URL of the notebook. TODO - This needs to take into account different ways of referring to a notebook.
      lifecycle - .
      kind - The component type identifier.
      meta - The component metadata.
    • JupyterNotebook

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

      public JupyterNotebook(AbstractExecutable superinstance, String location)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      location - The URL of the notebook. TODO - This needs to take into account different ways of referring to a notebook.
  • Method Details

    • copyMe

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

      public void updateUsing(JupyterNotebook 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 JupyterNotebook withLocation(String pLocation)
      fluent setter for location Attribute.
      Parameters:
      pLocation - value to set
      Returns:
      JupyterNotebook
    • createJupyterNotebook

      public static JupyterNotebook createJupyterNotebook(Consumer<JupyterNotebook.JupyterNotebookBuilder> f)
      create a JupyterNotebook 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 AbstractExecutable
    • delete

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