Package org.ivoa.dm.pdl
Class ParameterOrGroup
java.lang.Object
org.ivoa.dm.pdl.ParameterOrGroup
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="pdl:ParameterOrGroup",
role=objectType)
public class ParameterOrGroup
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a 'choice' type .
objectType: ParameterOrGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ParameterOrGroup, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected ParameterGroupReferenceObject group : .protected ParameterDefinitionReferenceObject param : . -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ParameterOrGroupParameterOrGroup(ParameterDefinition param, ParameterGroup group) full parameter constructor.ParameterOrGroup(ParameterOrGroup other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterOrGroupcreate a ParameterOrGroup in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetGroup()Returns group ReferencegetId()getParam()Returns param ReferencevoidsetGroup(ParameterGroup pGroup) Defines group ReferencevoidsetParam(ParameterDefinition pParam) Defines param Referencevoidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(ParameterOrGroup other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
param
@VoDml(id="pdl:ParameterOrGroup.param", role=reference, type="pdl:ParameterDefinition", typeRole=objectType) protected ParameterDefinition paramReferenceObject param : . ( Multiplicity : 0..1 ) -
group
@VoDml(id="pdl:ParameterOrGroup.group", role=reference, type="pdl:ParameterGroup", typeRole=objectType) protected ParameterGroup groupReferenceObject group : . ( Multiplicity : 0..1 )
-
-
Constructor Details
-
ParameterOrGroup
public ParameterOrGroup()Creates a new ParameterOrGroup -
ParameterOrGroup
full parameter constructor.- Parameters:
param- .group- .
-
ParameterOrGroup
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:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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.
-
getParam
Returns param Reference- Returns:
- param Reference
-
setParam
Defines param Reference- Parameters:
pParam- reference to set
-
getGroup
Returns group Reference- Returns:
- group Reference
-
setGroup
Defines group Reference- Parameters:
pGroup- reference to set
-
createParameterOrGroup
public static ParameterOrGroup createParameterOrGroup(Consumer<ParameterOrGroup.ParameterOrGroupBuilder> f) create a ParameterOrGroup in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-