Class IntegerValueUpdate

java.lang.Object
org.ivoa.dm.executionbroker.AbstractUpdate
org.ivoa.dm.executionbroker.IntegerValueUpdate
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:IntegerValueUpdate", role=objectType) public class IntegerValueUpdate extends AbstractUpdate implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple integer value update. objectType: IntegerValueUpdate
  • Field Details

    • value

      @VoDml(id="execbroker:IntegerValueUpdate.value", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer value
      The integer value to use. : Attribute value : multiplicity 1
    • units

      @VoDml(id="execbroker:IntegerValueUpdate.units", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String units
      The units to use for the value. : Attribute units : multiplicity 1
  • Constructor Details

    • IntegerValueUpdate

      public IntegerValueUpdate()
      Creates a new IntegerValueUpdate
    • IntegerValueUpdate

      public IntegerValueUpdate(Integer value, String units, String kind, String path)
      full parameter constructor.
      Parameters:
      value - The integer value to use.
      units - The units to use for the value.
      kind - The kind of update.
      path - The path this update applies to.
    • IntegerValueUpdate

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

      public IntegerValueUpdate(AbstractUpdate superinstance, Integer value, String units)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      value - The integer value to use.
      units - The units to use for the value.
  • Method Details

    • copyMe

      public AbstractUpdate copyMe()
      make a clone of the object taking into account current polymorhic type.
      Overrides:
      copyMe in class AbstractUpdate
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(IntegerValueUpdate 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 IntegerValueUpdate withValue(Integer pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      IntegerValueUpdate
    • getUnits

      public String getUnits()
      Returns units Attribute.
      Returns:
      units Attribute
    • setUnits

      public void setUnits(String pUnits)
      Set units Attribute.
      Parameters:
      pUnits - value to set
    • withUnits

      public IntegerValueUpdate withUnits(String pUnits)
      fluent setter for units Attribute.
      Parameters:
      pUnits - value to set
      Returns:
      IntegerValueUpdate
    • createIntegerValueUpdate

      public static IntegerValueUpdate createIntegerValueUpdate(Consumer<IntegerValueUpdate.IntegerValueUpdateBuilder> f)
      create a IntegerValueUpdate 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
      Overrides:
      forceLoad in class AbstractUpdate
    • delete

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