Package org.ivoa.dm.executionbroker
Class IvoaDataResourceBlock
java.lang.Object
org.ivoa.dm.executionbroker.IvoaDataResourceBlock
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:IvoaDataResourceBlock",
role=objectType)
public class IvoaDataResourceBlock
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The IVOA metadata for the resource.
objectType: IvoaDataResourceBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for IvoaDataResourceBlock, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected IvoaDataLinkItemThe DataLink metadata about the resource.protected StringThe IVOA data identifier (DID).protected IvoaObsCoreItemThe ObsCore metadata about the resource. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IvoaDataResourceBlockIvoaDataResourceBlock(String ivoid, IvoaObsCoreItem obscore, IvoaDataLinkItem datalink) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic IvoaDataResourceBlockcreate a IvoaDataResourceBlock in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns datalink Attribute.getId()getIvoid()Returns ivoid Attribute.Returns obscore Attribute.voidsetDatalink(IvoaDataLinkItem pDatalink) Set datalink Attribute.voidSet ivoid Attribute.voidsetObscore(IvoaObsCoreItem pObscore) Set obscore Attribute.voidupdateUsing(IvoaDataResourceBlock other) Update this object with the content of the given object.withDatalink(IvoaDataLinkItem pDatalink) fluent setter for datalink Attribute.fluent setter for ivoid Attribute.withObscore(IvoaObsCoreItem pObscore) fluent setter for obscore Attribute.
-
Field Details
-
_id
inserted database key -
ivoid
@VoDml(id="execbroker:IvoaDataResourceBlock.ivoid", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String ivoidThe IVOA data identifier (DID). : Attribute ivoid : multiplicity 1 -
obscore
@VoDml(id="execbroker:IvoaDataResourceBlock.obscore", role=composition, type="execbroker:IvoaObsCoreItem", typeRole=objectType) protected IvoaObsCoreItem obscoreThe ObsCore metadata about the resource. composition obscore : ( Multiplicity : 1 ) -
datalink
@VoDml(id="execbroker:IvoaDataResourceBlock.datalink", role=composition, type="execbroker:IvoaDataLinkItem", typeRole=objectType) protected IvoaDataLinkItem datalinkThe DataLink metadata about the resource. composition datalink : ( Multiplicity : 1 )
-
-
Constructor Details
-
IvoaDataResourceBlock
public IvoaDataResourceBlock()Creates a new IvoaDataResourceBlock -
IvoaDataResourceBlock
full parameter constructor.- Parameters:
ivoid- The IVOA data identifier (DID).obscore- The ObsCore metadata about the resource.datalink- The DataLink metadata about the resource.
-
IvoaDataResourceBlock
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
-
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.
-
getIvoid
Returns ivoid Attribute.- Returns:
- ivoid Attribute
-
setIvoid
Set ivoid Attribute.- Parameters:
pIvoid- value to set
-
withIvoid
fluent setter for ivoid Attribute.- Parameters:
pIvoid- value to set- Returns:
- IvoaDataResourceBlock
-
getObscore
Returns obscore Attribute.- Returns:
- obscore Attribute
-
setObscore
Set obscore Attribute.- Parameters:
pObscore- value to set
-
withObscore
fluent setter for obscore Attribute.- Parameters:
pObscore- value to set- Returns:
- IvoaDataResourceBlock
-
getDatalink
Returns datalink Attribute.- Returns:
- datalink Attribute
-
setDatalink
Set datalink Attribute.- Parameters:
pDatalink- value to set
-
withDatalink
fluent setter for datalink Attribute.- Parameters:
pDatalink- value to set- Returns:
- IvoaDataResourceBlock
-
createIvoaDataResourceBlock
public static IvoaDataResourceBlock createIvoaDataResourceBlock(Consumer<IvoaDataResourceBlock.IvoaDataResourceBlockBuilder> f) create a IvoaDataResourceBlock 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>
-