Class OCIRegistry

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

@Entity @VoDml(id="tool:OCIRegistry", role=objectType) public class OCIRegistry extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Details about the OCIcontainer registry. objectType: OCIRegistry
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • host

      @VoDml(id="tool:OCIRegistry.host", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String host
      Container registry hostname. : Attribute host type ivoa:string : multiplicity 1
    • project

      @VoDml(id="tool:OCIRegistry.project", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String project
      Container registry project/namespace. : Attribute project type ivoa:string : multiplicity 1
  • Constructor Details

    • OCIRegistry

      public OCIRegistry()
      Creates a new OCIRegistry
    • OCIRegistry

      public OCIRegistry(String host, String project)
      full parameter constructor.
      Parameters:
      host - Container registry hostname.
      project - Container registry project/namespace.
    • OCIRegistry

      public OCIRegistry(OCIRegistry 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(OCIRegistry 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.
    • getHost

      public String getHost()
      Returns host Attribute.
      Returns:
      host Attribute
    • setHost

      public void setHost(String pHost)
      Set host Attribute.
      Parameters:
      pHost - value to set
    • withHost

      public OCIRegistry withHost(String pHost)
      fluent setter for host Attribute.
      Parameters:
      pHost - value to set
      Returns:
      OCIRegistry
    • getProject

      public String getProject()
      Returns project Attribute.
      Returns:
      project Attribute
    • setProject

      public void setProject(String pProject)
      Set project Attribute.
      Parameters:
      pProject - value to set
    • withProject

      public OCIRegistry withProject(String pProject)
      fluent setter for project Attribute.
      Parameters:
      pProject - value to set
      Returns:
      OCIRegistry
    • createOCIRegistry

      public static OCIRegistry createOCIRegistry(Consumer<OCIRegistry.OCIRegistryBuilder> f)
      create a OCIRegistry 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>