Package org.ivoa.dm.executionbroker
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for IntegerValueUpdate, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.AbstractUpdate
AbstractUpdate.AbstractUpdateBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe units to use for the value.protected IntegerThe integer value to use.Fields inherited from class org.ivoa.dm.executionbroker.AbstractUpdate
_id, kind, path -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IntegerValueUpdateIntegerValueUpdate(Integer value, String units, String kind, String path) full parameter constructor.IntegerValueUpdate(AbstractUpdate superinstance, Integer value, String units) Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static IntegerValueUpdatecreate a IntegerValueUpdate in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetUnits()Returns units Attribute.getValue()Returns value Attribute.voidSet units Attribute.voidSet value Attribute.voidupdateUsing(IntegerValueUpdate other) Update this object with the content of the given object.fluent setter for units Attribute.fluent setter for value Attribute.Methods inherited from class org.ivoa.dm.executionbroker.AbstractUpdate
createAbstractUpdate, getId, getKind, getPath, setKind, setPath, updateUsing, withKind, withPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
-
Field Details
-
value
@VoDml(id="execbroker:IntegerValueUpdate.value", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer valueThe integer value to use. : Attribute value : multiplicity 1 -
units
@VoDml(id="execbroker:IntegerValueUpdate.units", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String unitsThe units to use for the value. : Attribute units : multiplicity 1
-
-
Constructor Details
-
IntegerValueUpdate
public IntegerValueUpdate()Creates a new IntegerValueUpdate -
IntegerValueUpdate
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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
IntegerValueUpdate
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
make a clone of the object taking into account current polymorhic type.- Overrides:
copyMein classAbstractUpdate- Returns:
- the cloned object.
-
updateUsing
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
Returns value Attribute.- Returns:
- value Attribute
-
setValue
Set value Attribute.- Parameters:
pValue- value to set
-
withValue
fluent setter for value Attribute.- Parameters:
pValue- value to set- Returns:
- IntegerValueUpdate
-
getUnits
Returns units Attribute.- Returns:
- units Attribute
-
setUnits
Set units Attribute.- Parameters:
pUnits- value to set
-
withUnits
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations- Overrides:
forceLoadin classAbstractUpdate
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Overrides:
deletein classAbstractUpdate
-