Class DataLimits

java.lang.Object
org.ivoa.dm.registry.tap.DataLimits
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="TAPRegExt:DataLimits", role=objectType) public class DataLimits extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Limits on data sizes, given in rows or bytes. objectType: DataLimits
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • default_

      @VoDml(id="TAPRegExt:DataLimits.default", role=attribute, type="TAPRegExt:DataLimit", typeRole=dataType) protected DataLimit default_
      The value of this limit for newly-created jobs. : Attribute default_ : multiplicity 0..1
    • hard

      @VoDml(id="TAPRegExt:DataLimits.hard", role=attribute, type="TAPRegExt:DataLimit", typeRole=dataType) protected DataLimit hard
      The value this limit cannot be raised above. : Attribute hard : multiplicity 0..1
  • Constructor Details

    • DataLimits

      public DataLimits()
      Creates a new DataLimits
    • DataLimits

      public DataLimits(DataLimit default_, DataLimit hard)
      full parameter constructor.
      Parameters:
      default_ - The value of this limit for newly-created jobs.
      hard - The value this limit cannot be raised above.
    • DataLimits

      public DataLimits(DataLimits 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(DataLimits 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.
    • getDefault

      public DataLimit getDefault()
      Returns default Attribute.
      Returns:
      default Attribute
    • setDefault

      public void setDefault(DataLimit pDefault)
      Set default Attribute.
      Parameters:
      pDefault - value to set
    • withDefault

      public DataLimits withDefault(DataLimit pDefault)
      fluent setter for default Attribute.
      Parameters:
      pDefault - value to set
      Returns:
      DataLimits
    • getHard

      public DataLimit getHard()
      Returns hard Attribute.
      Returns:
      hard Attribute
    • setHard

      public void setHard(DataLimit pHard)
      Set hard Attribute.
      Parameters:
      pHard - value to set
    • withHard

      public DataLimits withHard(DataLimit pHard)
      fluent setter for hard Attribute.
      Parameters:
      pHard - value to set
      Returns:
      DataLimits
    • createDataLimits

      public static DataLimits createDataLimits(Consumer<DataLimits.DataLimitsBuilder> f)
      create a DataLimits 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>