Package org.ivoa.dm.executionbroker
Class AbstractComponent
java.lang.Object
org.ivoa.dm.executionbroker.AbstractComponent
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
AbstractExecutable,AbstractVolumeMount,LifecycleComponent,OfferSetResponse
@Entity
@VoDml(id="execbroker:AbstractComponent",
role=objectType)
public abstract class AbstractComponent
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Abstract base class for all our components.
objectType: AbstractComponent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AbstractComponentAbstractComponent(String kind, ComponentMetadata meta) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractComponentcopyMe()make a clone of the object taking into account current polymorhic type.voidgetId()getKind()Returns kind Attribute.getMeta()Returns meta Attribute.voidSet kind Attribute.voidsetMeta(ComponentMetadata pMeta) Set meta Attribute.voidupdateUsing(AbstractComponent other) Update this object with the content of the given object.fluent setter for kind Attribute.withMeta(ComponentMetadata pMeta) fluent setter for meta Attribute.Methods 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
delete
-
Field Details
-
_id
inserted database key -
kind
@VoDml(id="execbroker:AbstractComponent.kind", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String kindThe component type identifier. : Attribute kind : multiplicity 1 -
meta
@VoDml(id="execbroker:AbstractComponent.meta", role=composition, type="execbroker:ComponentMetadata", typeRole=objectType) protected ComponentMetadata metaThe component metadata. composition meta : ( Multiplicity : 1 )
-
-
Constructor Details
-
AbstractComponent
public AbstractComponent()Creates a new AbstractComponent -
AbstractComponent
full parameter constructor.- Parameters:
kind- The component type identifier.meta- The component metadata.
-
AbstractComponent
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:
- AbstractComponent
-
getMeta
Returns meta Attribute.- Returns:
- meta Attribute
-
setMeta
Set meta Attribute.- Parameters:
pMeta- value to set
-
withMeta
fluent setter for meta Attribute.- Parameters:
pMeta- value to set- Returns:
- AbstractComponent
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-