Package org.ivoa.dm.executionbroker
Class IvoaDataResource
java.lang.Object
org.ivoa.dm.executionbroker.AbstractComponent
org.ivoa.dm.executionbroker.LifecycleComponent
org.ivoa.dm.executionbroker.AbstractDataResource
org.ivoa.dm.executionbroker.IvoaDataResource
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
SkaoDataResource
@Entity
@VoDml(id="execbroker:IvoaDataResource",
role=objectType)
public class IvoaDataResource
extends AbstractDataResource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Metadata describing an IVOA data resource.
objectType: IvoaDataResource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for IvoaDataResource, mainly for use in the functional builder pattern. -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.LifecycleComponent
phase, scheduleFields inherited from class org.ivoa.dm.executionbroker.AbstractComponent
_id, kind, meta -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IvoaDataResourceIvoaDataResource(AbstractDataResource superinstance, IvoaDataResourceBlock ivoa) Constructor from supertype instance.IvoaDataResource(IvoaDataResource other) Copy Constructor.IvoaDataResource(IvoaDataResourceBlock ivoa, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static IvoaDataResourcecreate a IvoaDataResource in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetIvoa()Returns ivoa Attribute.voidsetIvoa(IvoaDataResourceBlock pIvoa) Set ivoa Attribute.voidupdateUsing(IvoaDataResource other) Update this object with the content of the given object.withIvoa(IvoaDataResourceBlock pIvoa) fluent setter for ivoa Attribute.Methods inherited from class org.ivoa.dm.executionbroker.AbstractDataResource
updateUsingMethods inherited from class org.ivoa.dm.executionbroker.LifecycleComponent
getPhase, getSchedule, setPhase, setSchedule, updateUsing, withPhase, withScheduleMethods inherited from class org.ivoa.dm.executionbroker.AbstractComponent
getId, getKind, getMeta, setKind, setMeta, updateUsing, withKind, withMetaMethods 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
getId
-
Field Details
-
ivoa
@VoDml(id="execbroker:IvoaDataResource.ivoa", role=composition, type="execbroker:IvoaDataResourceBlock", typeRole=objectType) protected IvoaDataResourceBlock ivoa. composition ivoa : ( Multiplicity : 1 )
-
-
Constructor Details
-
IvoaDataResource
public IvoaDataResource()Creates a new IvoaDataResource -
IvoaDataResource
public IvoaDataResource(IvoaDataResourceBlock ivoa, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta) full parameter constructor.- Parameters:
ivoa- .phase- The lifecycle phase.schedule- The lifecycle schedule.kind- The component type identifier.meta- The component metadata.
-
IvoaDataResource
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
IvoaDataResource
Constructor from supertype instance.- Parameters:
superinstance- The supertype.ivoa- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMein classAbstractDataResource- 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.
-
getIvoa
Returns ivoa Attribute.- Returns:
- ivoa Attribute
-
setIvoa
Set ivoa Attribute.- Parameters:
pIvoa- value to set
-
withIvoa
fluent setter for ivoa Attribute.- Parameters:
pIvoa- value to set- Returns:
- IvoaDataResource
-
createIvoaDataResource
public static IvoaDataResource createIvoaDataResource(Consumer<IvoaDataResource.IvoaDataResourceBuilder> f) create a IvoaDataResource 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- Overrides:
forceLoadin classAbstractDataResource
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-