Class ToolImage

java.lang.Object
org.ivoa.dm.tool.ToolImage
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="tool:ToolImage", role=objectType) public class ToolImage extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Definition of a tool image. objectType: ToolImage
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • registry

      @VoDml(id="tool:ToolImage.registry", role=reference, type="tool:OCIRegistry", typeRole=objectType) protected OCIRegistry registry
      ReferenceObject registry : OCI registry details. ( Multiplicity : 1 )
    • parentImage

      @VoDml(id="tool:ToolImage.parentImage", role=reference, type="tool:ToolImage", typeRole=objectType) protected ToolImage parentImage
      ReferenceObject parentImage : Parent image reference. ( Multiplicity : 0..1 )
    • build

      @VoDml(id="tool:ToolImage.build", role=composition, type="tool:BuildProcess", typeRole=objectType) protected BuildProcess build
      Build detail. composition build : ( Multiplicity : 1 )
    • discovery

      @VoDml(id="tool:ToolImage.discovery", role=composition, type="tool:Discovery", typeRole=objectType) protected Discovery discovery
      Discovery metadata for the tool image. composition discovery : ( Multiplicity : 1 )
    • security

      @VoDml(id="tool:ToolImage.security", role=composition, type="tool:SecurityMetadata", typeRole=objectType) protected SecurityMetadata security
      Security metadata for the tool image. composition security : ( Multiplicity : 1 )
  • Constructor Details

    • ToolImage

      public ToolImage()
      Creates a new ToolImage
    • ToolImage

      public ToolImage(OCIRegistry registry, ToolImage parentImage, BuildProcess build, Discovery discovery, SecurityMetadata security)
      full parameter constructor.
      Parameters:
      registry - OCI registry details.
      parentImage - Parent image reference.
      build - Build detail.
      discovery - Discovery metadata for the tool image.
      security - Security metadata for the tool image.
    • ToolImage

      public ToolImage(ToolImage 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
    • getXmlId

      public String getXmlId()
      getter for XMLID
      Specified by:
      getXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • setXmlId

      public void setXmlId(String id)
      Specified by:
      setXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • hasNaturalKey

      public boolean hasNaturalKey()
      Specified by:
      hasNaturalKey in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • updateUsing

      public void updateUsing(ToolImage 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.
    • getRegistry

      public OCIRegistry getRegistry()
      Returns registry Reference
      Returns:
      registry Reference
    • setRegistry

      public void setRegistry(OCIRegistry pRegistry)
      Defines registry Reference
      Parameters:
      pRegistry - reference to set
    • getParentImage

      public ToolImage getParentImage()
      Returns parentImage Reference
      Returns:
      parentImage Reference
    • setParentImage

      public void setParentImage(ToolImage pParentImage)
      Defines parentImage Reference
      Parameters:
      pParentImage - reference to set
    • getBuild

      public BuildProcess getBuild()
      Returns build Attribute.
      Returns:
      build Attribute
    • setBuild

      public void setBuild(BuildProcess pBuild)
      Set build Attribute.
      Parameters:
      pBuild - value to set
    • withBuild

      public ToolImage withBuild(BuildProcess pBuild)
      fluent setter for build Attribute.
      Parameters:
      pBuild - value to set
      Returns:
      ToolImage
    • getDiscovery

      public Discovery getDiscovery()
      Returns discovery Attribute.
      Returns:
      discovery Attribute
    • setDiscovery

      public void setDiscovery(Discovery pDiscovery)
      Set discovery Attribute.
      Parameters:
      pDiscovery - value to set
    • withDiscovery

      public ToolImage withDiscovery(Discovery pDiscovery)
      fluent setter for discovery Attribute.
      Parameters:
      pDiscovery - value to set
      Returns:
      ToolImage
    • getSecurity

      public SecurityMetadata getSecurity()
      Returns security Attribute.
      Returns:
      security Attribute
    • setSecurity

      public void setSecurity(SecurityMetadata pSecurity)
      Set security Attribute.
      Parameters:
      pSecurity - value to set
    • withSecurity

      public ToolImage withSecurity(SecurityMetadata pSecurity)
      fluent setter for security Attribute.
      Parameters:
      pSecurity - value to set
      Returns:
      ToolImage
    • createToolImage

      public static ToolImage createToolImage(Consumer<ToolImage.ToolImageBuilder> f)
      create a ToolImage 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>