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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • flag

      @VoDml(id="caom2:DataQuality.flag", role=attribute, type="caom2:Quality", typeRole=dataType) protected Quality flag
      flag indicating the data quality. : Attribute flag : multiplicity 1
  • Constructor Details

    • DataQuality

      public DataQuality()
      Creates a new DataQuality
    • DataQuality

      public DataQuality(Quality flag)
      full parameter constructor.
      Parameters:
      flag - flag indicating the data quality.
    • DataQuality

      public DataQuality(DataQuality 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
    • updateUsing

      public void updateUsing(DataQuality 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.
    • getFlag

      public Quality getFlag()
      Returns flag Attribute.
      Returns:
      flag Attribute
    • setFlag

      public void setFlag(Quality pFlag)
      Set flag Attribute.
      Parameters:
      pFlag - value to set
    • withFlag

      public DataQuality withFlag(Quality pFlag)
      fluent setter for flag Attribute.
      Parameters:
      pFlag - value to set
      Returns:
      DataQuality
    • createDataQuality

      public static DataQuality createDataQuality(Consumer<DataQuality.DataQualityBuilder> f)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>