Package org.ivoa.dm.executionbroker
Class EnumValueUpdate
java.lang.Object
org.ivoa.dm.executionbroker.AbstractUpdate
org.ivoa.dm.executionbroker.EnumValueUpdate
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:EnumValueUpdate",
role=objectType)
public class EnumValueUpdate
extends AbstractUpdate
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple enum value update.
objectType: EnumValueUpdate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for EnumValueUpdate, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.AbstractUpdate
AbstractUpdate.AbstractUpdateBuilder -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.AbstractUpdate
_id, kind, path -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EnumValueUpdateEnumValueUpdate(String value, String kind, String path) full parameter constructor.EnumValueUpdate(AbstractUpdate superinstance, String value) Constructor from supertype instance.EnumValueUpdate(EnumValueUpdate other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static EnumValueUpdatecreate a EnumValueUpdate in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetValue()Returns value Attribute.voidSet value Attribute.voidupdateUsing(EnumValueUpdate other) Update this object with the content of the given object.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:EnumValueUpdate.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String valueThe enum value to use. : Attribute value : multiplicity 1
-
-
Constructor Details
-
EnumValueUpdate
public EnumValueUpdate()Creates a new EnumValueUpdate -
EnumValueUpdate
full parameter constructor.- Parameters:
value- The enum value to use.kind- The kind of update.path- The path this update applies to.
-
EnumValueUpdate
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
EnumValueUpdate
Constructor from supertype instance.- Parameters:
superinstance- The supertype.value- The enum value to use.
-
-
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:
- EnumValueUpdate
-
createEnumValueUpdate
public static EnumValueUpdate createEnumValueUpdate(Consumer<EnumValueUpdate.EnumValueUpdateBuilder> f) create a EnumValueUpdate 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
-