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 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()getPath()Returns path Attribute.voidSet path Attribute.voidupdateUsing(AbstractUpdate other) Update this object with the content of the given object.fluent setter for path Attribute.
-
Field Details
-
_id
inserted database key -
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:
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.
-
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>
-