Class Backend

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

@Entity @VoDml(id="proposalManagement:Backend", role=objectType) public class Backend extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
a processing backend /pipeline- e.g. correlator. objectType: Backend
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="proposalManagement:Backend.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      the backend name. : Attribute name : multiplicity 1
    • parallel

      @VoDml(id="proposalManagement:Backend.parallel", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean parallel
      is capable of being run at same time as other backends. : Attribute parallel : multiplicity 1
  • Constructor Details

    • Backend

      public Backend()
      Creates a new Backend
    • Backend

      public Backend(String name, Boolean parallel)
      full parameter constructor.
      Parameters:
      name - the backend name.
      parallel - is capable of being run at same time as other backends.
    • Backend

      public Backend(Backend 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(Backend 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.
    • getName

      public String getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(String pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public Backend withName(String pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      Backend
    • getParallel

      public Boolean getParallel()
      Returns parallel Attribute.
      Returns:
      parallel Attribute
    • setParallel

      public void setParallel(Boolean pParallel)
      Set parallel Attribute.
      Parameters:
      pParallel - value to set
    • withParallel

      public Backend withParallel(Boolean pParallel)
      fluent setter for parallel Attribute.
      Parameters:
      pParallel - value to set
      Returns:
      Backend
    • createBackend

      public static Backend createBackend(Consumer<Backend.BackendBuilder> f)
      create a Backend 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
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations