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