Class DataLimit

java.lang.Object
org.ivoa.dm.registry.tap.DataLimit
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="TAPRegExt:DataLimit", role=dataType) public class DataLimit extends Object implements org.ivoa.vodml.jpa.JPAManipulations
A limit on some data size, either in rows or in bytes. dataType: DataLimit
  • Field Details

    • value

      @VoDml(id="TAPRegExt:DataLimit.value", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer value
      . : Attribute value : multiplicity 1
    • unit

      @VoDml(id="TAPRegExt:DataLimit.unit", role=attribute, type="TAPRegExt:DataLimit_unit", typeRole=enumeration) protected DataLimit_unit unit
      The unit of the limit specified. : Attribute unit : multiplicity 1
  • Constructor Details

    • DataLimit

      public DataLimit()
      Creates a new DataLimit
    • DataLimit

      public DataLimit(Integer value, DataLimit_unit unit)
      full parameter constructor.
      Parameters:
      value - .
      unit - The unit of the limit specified.
    • DataLimit

      public DataLimit(DataLimit other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • updateUsing

      public void updateUsing(DataLimit 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.
    • getValue

      public Integer getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

      public void setValue(Integer pValue)
      Set value Attribute.
      Parameters:
      pValue - value to set
    • withValue

      public DataLimit withValue(Integer pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      DataLimit
    • getUnit

      public DataLimit_unit getUnit()
      Returns unit Attribute.
      Returns:
      unit Attribute
    • setUnit

      public void setUnit(DataLimit_unit pUnit)
      Set unit Attribute.
      Parameters:
      pUnit - value to set
    • withUnit

      public DataLimit withUnit(DataLimit_unit pUnit)
      fluent setter for unit Attribute.
      Parameters:
      pUnit - value to set
      Returns:
      DataLimit
    • createDataLimit

      public static DataLimit createDataLimit(Consumer<DataLimit.DataLimitBuilder> f)
      create a DataLimit 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