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
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected ComponentMetadataThe component metadata. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AbstractComponentCopy Constructor.full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractComponentcopyMe()make a clone of the object taking into account current polymorhic type.voidgetId()getMeta()Returns meta Attribute.voidsetMeta(ComponentMetadata pMeta) Set meta Attribute.voidupdateUsing(AbstractComponent other) Update this object with the content of the given object.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 -
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:
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.
-
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
-