Package org.ivoa.dm.proposal.prop
Class Backend
java.lang.Object
org.ivoa.dm.proposal.prop.Backend
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal: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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Backend, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Backend
create a Backend in functional builder style.void
getId()
getName()
Returns name AttributeReturns parallel AttributegetXmlId()
getter for XMLIDboolean
void
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
Defines name Attributevoid
setParallel
(Boolean pParallel) Defines parallel Attributevoid
void
updateUsing
(Backend other) Update this object with the content of the given object.withParallel
(Boolean pParallel)
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="proposal:Backend.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String namethe backend name. : Attribute name : multiplicity 1 -
parallel
@VoDml(id="proposal:Backend.parallel", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean parallelis capable of being run at same time as other backends. : Attribute parallel : multiplicity 1
-
-
Constructor Details
-
Backend
public Backend()Creates a new Backend -
Backend
full parameter constructor.- Parameters:
name
- the backend name.parallel
- is capable of being run at same time as other backends.
-
Backend
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKey
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
updateUsing
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
Returns name Attribute- Returns:
- name Attribute
-
setName
Defines name Attribute- Parameters:
pName
- value to set
-
withName
-
getParallel
Returns parallel Attribute- Returns:
- parallel Attribute
-
setParallel
Defines parallel Attribute- Parameters:
pParallel
- value to set
-
withParallel
-
createBackend
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 interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-