Package org.ivoa.dm.caom2
Class Requirements
java.lang.Object
org.ivoa.dm.caom2.Requirements
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Requirements",
role=objectType)
public class Requirements
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the observational requirements specified by the proposal.
objectType: Requirements
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Requirements, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RequirementsRequirements(Requirements other) Copy Constructor.Requirements(Status flag) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Requirementscreate a Requirements in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetFlag()Returns flag Attribute.getId()voidSet flag Attribute.voidupdateUsing(Requirements other) Update this object with the content of the given object.fluent setter for flag Attribute.
-
Field Details
-
_id
inserted database key -
flag
@VoDml(id="caom2:Requirements.flag", role=attribute, type="caom2:Status", typeRole=dataType) protected Status flagflag indicating degree to which requirements were satisfied by the observation. : Attribute flag : multiplicity 1
-
-
Constructor Details
-
Requirements
public Requirements()Creates a new Requirements -
Requirements
full parameter constructor.- Parameters:
flag- flag indicating degree to which requirements were satisfied by the observation.
-
Requirements
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
-
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.
-
getFlag
Returns flag Attribute.- Returns:
- flag Attribute
-
setFlag
Set flag Attribute.- Parameters:
pFlag- value to set
-
withFlag
fluent setter for flag Attribute.- Parameters:
pFlag- value to set- Returns:
- Requirements
-
createRequirements
create a Requirements 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>
-