Package org.ivoa.dm.caom2
Class DataQuality
java.lang.Object
org.ivoa.dm.caom2.DataQuality
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:DataQuality",
role=objectType)
public class DataQuality
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of the data quality.
objectType: DataQuality
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DataQuality, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DataQualityDataQuality(DataQuality other) Copy Constructor.DataQuality(Quality flag) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataQualitycreate a DataQuality in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetFlag()Returns flag Attribute.getId()voidSet flag Attribute.voidupdateUsing(DataQuality 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:DataQuality.flag", role=attribute, type="caom2:Quality", typeRole=dataType) protected Quality flagflag indicating the data quality. : Attribute flag : multiplicity 1
-
-
Constructor Details
-
DataQuality
public DataQuality()Creates a new DataQuality -
DataQuality
full parameter constructor.- Parameters:
flag- flag indicating the data quality.
-
DataQuality
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:
- DataQuality
-
createDataQuality
create a DataQuality 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>
-