Package org.ivoa.dm.executionbroker
Class SkaoDataResource
java.lang.Object
org.ivoa.dm.executionbroker.AbstractComponent
org.ivoa.dm.executionbroker.LifecycleComponent
org.ivoa.dm.executionbroker.AbstractDataResource
org.ivoa.dm.executionbroker.IvoaDataResource
org.ivoa.dm.executionbroker.SkaoDataResource
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:SkaoDataResource",
role=objectType)
public class SkaoDataResource
extends IvoaDataResource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Metadata describing a SKAO data resource in the data lake.
objectType: SkaoDataResource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SkaoDataResource, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.IvoaDataResource
IvoaDataResource.IvoaDataResourceBuilder -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.IvoaDataResource
ivoaFields 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 SkaoDataResourceSkaoDataResource(IvoaDataResource superinstance, SkaoDataResourceBlock skao) Constructor from supertype instance.SkaoDataResource(SkaoDataResource other) Copy Constructor.SkaoDataResource(SkaoDataResourceBlock skao, 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 SkaoDataResourcecreate a SkaoDataResource in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetSkao()Returns skao Attribute.voidsetSkao(SkaoDataResourceBlock pSkao) Set skao Attribute.voidupdateUsing(SkaoDataResource other) Update this object with the content of the given object.withSkao(SkaoDataResourceBlock pSkao) fluent setter for skao Attribute.Methods inherited from class org.ivoa.dm.executionbroker.IvoaDataResource
createIvoaDataResource, getIvoa, setIvoa, updateUsing, withIvoaMethods 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
-
skao
@VoDml(id="execbroker:SkaoDataResource.skao", role=composition, type="execbroker:SkaoDataResourceBlock", typeRole=objectType) protected SkaoDataResourceBlock skao. composition skao : ( Multiplicity : 1 )
-
-
Constructor Details
-
SkaoDataResource
public SkaoDataResource()Creates a new SkaoDataResource -
SkaoDataResource
public SkaoDataResource(SkaoDataResourceBlock skao, IvoaDataResourceBlock ivoa, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta) full parameter constructor.- Parameters:
skao- .ivoa- .phase- The lifecycle phase.schedule- The lifecycle schedule.kind- The component type identifier.meta- The component metadata.
-
SkaoDataResource
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
SkaoDataResource
Constructor from supertype instance.- Parameters:
superinstance- The supertype.skao- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Overrides:
copyMein classIvoaDataResource- 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.
-
getSkao
Returns skao Attribute.- Returns:
- skao Attribute
-
setSkao
Set skao Attribute.- Parameters:
pSkao- value to set
-
withSkao
fluent setter for skao Attribute.- Parameters:
pSkao- value to set- Returns:
- SkaoDataResource
-
createSkaoDataResource
public static SkaoDataResource createSkaoDataResource(Consumer<SkaoDataResource.SkaoDataResourceBuilder> f) create a SkaoDataResource 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 classIvoaDataResource
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Overrides:
deletein classIvoaDataResource
-