Package org.ivoa.dm.executionbroker
Class AbstractUpdate
java.lang.Object
org.ivoa.dm.executionbroker.AbstractUpdate
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
EnumValueUpdate,IntegerDeltaUpdate,IntegerValueUpdate,StringValueUpdate
@Entity
@VoDml(id="execbroker:AbstractUpdate",
role=objectType)
public class AbstractUpdate
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Abstract base class for updates. This includes the `type` discriminator and the target `path` to update.
objectType: AbstractUpdate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for AbstractUpdate, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AbstractUpdateAbstractUpdate(String kind, String path) full parameter constructor.AbstractUpdate(AbstractUpdate other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static AbstractUpdatecreate a AbstractUpdate in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()getKind()Returns kind Attribute.getPath()Returns path Attribute.voidSet kind Attribute.voidSet path Attribute.voidupdateUsing(AbstractUpdate other) Update this object with the content of the given object.fluent setter for kind Attribute.fluent setter for path Attribute.
-
Field Details
-
_id
inserted database key -
kind
@VoDml(id="execbroker:AbstractUpdate.kind", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String kindThe kind of update. : Attribute kind : multiplicity 1 -
path
@VoDml(id="execbroker:AbstractUpdate.path", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String pathThe path this update applies to. : Attribute path : multiplicity 1
-
-
Constructor Details
-
AbstractUpdate
public AbstractUpdate()Creates a new AbstractUpdate -
AbstractUpdate
full parameter constructor.- Parameters:
kind- The kind of update.path- The path this update applies to.
-
AbstractUpdate
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
copyMe
make a clone of the object taking into account current polymorhic type.- 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.
-
getKind
Returns kind Attribute.- Returns:
- kind Attribute
-
setKind
Set kind Attribute.- Parameters:
pKind- value to set
-
withKind
fluent setter for kind Attribute.- Parameters:
pKind- value to set- Returns:
- AbstractUpdate
-
getPath
Returns path Attribute.- Returns:
- path Attribute
-
setPath
Set path Attribute.- Parameters:
pPath- value to set
-
withPath
fluent setter for path Attribute.- Parameters:
pPath- value to set- Returns:
- AbstractUpdate
-
createAbstractUpdate
create a AbstractUpdate 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-