Package org.ivoa.dm.execution
Class DataNode
java.lang.Object
org.ivoa.dm.execution.DataNode
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execution:DataNode",
role=objectType)
public class DataNode
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A Node where data can be stored.
objectType: DataNode
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DataNode, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected PhysicalLocationReferenceObject location : the location of the node.protected Stringthe URL of the storage service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataNodecreate a DataNode in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns location ReferenceReturns storageServiceUrl Attribute.voidsetLocation(PhysicalLocation pLocation) Defines location ReferencevoidsetStorageServiceUrl(String pStorageServiceUrl) Set storageServiceUrl Attribute.voidupdateUsing(DataNode other) Update this object with the content of the given object.withStorageServiceUrl(String pStorageServiceUrl) fluent setter for storageServiceUrl Attribute.
-
Field Details
-
_id
inserted database key -
storageServiceUrl
@VoDml(id="execution:DataNode.storageServiceUrl", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String storageServiceUrlthe URL of the storage service. : Attribute storageServiceUrl type ivoa:anyURI : multiplicity 1 -
location
@VoDml(id="execution:DataNode.location", role=reference, type="execution:PhysicalLocation", typeRole=objectType) protected PhysicalLocation locationReferenceObject location : the location of the node. ( Multiplicity : 1 )
-
-
Constructor Details
-
DataNode
public DataNode()Creates a new DataNode -
DataNode
full parameter constructor.- Parameters:
storageServiceUrl- the URL of the storage service.location- the location of the node.
-
DataNode
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.
-
getStorageServiceUrl
Returns storageServiceUrl Attribute.- Returns:
- storageServiceUrl Attribute
-
setStorageServiceUrl
Set storageServiceUrl Attribute.- Parameters:
pStorageServiceUrl- value to set
-
withStorageServiceUrl
fluent setter for storageServiceUrl Attribute.- Parameters:
pStorageServiceUrl- value to set- Returns:
- DataNode
-
getLocation
Returns location Reference- Returns:
- location Reference
-
setLocation
Defines location Reference- Parameters:
pLocation- reference to set
-
createDataNode
create a DataNode 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>
-