Package org.ivoa.dm.executionbroker
Class AbstractOption
java.lang.Object
org.ivoa.dm.executionbroker.AbstractOption
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
EnumValueOption,IntegerDeltaOption,IntegerValueOption,StringValueOption
@Entity
@VoDml(id="execbroker:AbstractOption",
role=objectType)
public class AbstractOption
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Abstract base class for describing options. This includes the `type` discriminator and the target `path` to update.
objectType: AbstractOption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for AbstractOption, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AbstractOptionAbstractOption(String kind, String path) full parameter constructor.AbstractOption(AbstractOption other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static AbstractOptioncreate a AbstractOption 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(AbstractOption 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:AbstractOption.kind", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String kindThe kind of option. : Attribute kind : multiplicity 1 -
path
@VoDml(id="execbroker:AbstractOption.path", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String pathThe path this option applies to. : Attribute path : multiplicity 1
-
-
Constructor Details
-
AbstractOption
public AbstractOption()Creates a new AbstractOption -
AbstractOption
full parameter constructor.- Parameters:
kind- The kind of option.path- The path this option applies to.
-
AbstractOption
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:
- AbstractOption
-
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:
- AbstractOption
-
createAbstractOption
create a AbstractOption 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>
-