Class IntegerDeltaUpdate

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

@Entity @VoDml(id="execbroker:IntegerDeltaUpdate", role=objectType) public class IntegerDeltaUpdate extends AbstractUpdate implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple integer delta update. This increments or decrements the target value by the specified amount. objectType: IntegerDeltaUpdate
  • Field Details

    • delta

      @VoDml(id="execbroker:IntegerDeltaUpdate.delta", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer delta
      The increment or decrement to apply. : Attribute delta : multiplicity 1
    • units

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

    • IntegerDeltaUpdate

      public IntegerDeltaUpdate()
      Creates a new IntegerDeltaUpdate
    • IntegerDeltaUpdate

      public IntegerDeltaUpdate(Integer delta, String units, String kind, String path)
      full parameter constructor.
      Parameters:
      delta - The increment or decrement to apply.
      units - The units to use for the change.
      kind - The kind of update.
      path - The path this update applies to.
    • IntegerDeltaUpdate

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

      public IntegerDeltaUpdate(AbstractUpdate superinstance, Integer delta, String units)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      delta - The increment or decrement to apply.
      units - The units to use for the change.
  • 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(IntegerDeltaUpdate 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.
    • getDelta

      public Integer getDelta()
      Returns delta Attribute.
      Returns:
      delta Attribute
    • setDelta

      public void setDelta(Integer pDelta)
      Set delta Attribute.
      Parameters:
      pDelta - value to set
    • withDelta

      public IntegerDeltaUpdate withDelta(Integer pDelta)
      fluent setter for delta Attribute.
      Parameters:
      pDelta - value to set
      Returns:
      IntegerDeltaUpdate
    • 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 IntegerDeltaUpdate withUnits(String pUnits)
      fluent setter for units Attribute.
      Parameters:
      pUnits - value to set
      Returns:
      IntegerDeltaUpdate
    • createIntegerDeltaUpdate

      public static IntegerDeltaUpdate createIntegerDeltaUpdate(Consumer<IntegerDeltaUpdate.IntegerDeltaUpdateBuilder> f)
      create a IntegerDeltaUpdate 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