Package org.ivoa.dm.executionbroker
Class SkaoReplicaItem
java.lang.Object
org.ivoa.dm.executionbroker.SkaoReplicaItem
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:SkaoReplicaItem",
role=objectType)
public class SkaoReplicaItem
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Metadata about a replica in an RSE.
objectType: SkaoReplicaItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SkaoReplicaItem, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SkaoReplicaItemSkaoReplicaItem(String rsename, String dataurl) full parameter constructor.SkaoReplicaItem(SkaoReplicaItem other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SkaoReplicaItemcreate a SkaoReplicaItem in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns dataurl Attribute.getId()Returns rsename Attribute.voidsetDataurl(String pDataurl) Set dataurl Attribute.voidsetRsename(String pRsename) Set rsename Attribute.voidupdateUsing(SkaoReplicaItem other) Update this object with the content of the given object.withDataurl(String pDataurl) fluent setter for dataurl Attribute.withRsename(String pRsename) fluent setter for rsename Attribute.
-
Field Details
-
_id
inserted database key -
rsename
@VoDml(id="execbroker:SkaoReplicaItem.rsename", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String rsenameThe RSE name. : Attribute rsename : multiplicity 1 -
dataurl
@VoDml(id="execbroker:SkaoReplicaItem.dataurl", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String dataurlThe URL/URI of the object within the RSE. : Attribute dataurl : multiplicity 1
-
-
Constructor Details
-
SkaoReplicaItem
public SkaoReplicaItem()Creates a new SkaoReplicaItem -
SkaoReplicaItem
full parameter constructor.- Parameters:
rsename- The RSE name.dataurl- The URL/URI of the object within the RSE.
-
SkaoReplicaItem
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.
-
getRsename
Returns rsename Attribute.- Returns:
- rsename Attribute
-
setRsename
Set rsename Attribute.- Parameters:
pRsename- value to set
-
withRsename
fluent setter for rsename Attribute.- Parameters:
pRsename- value to set- Returns:
- SkaoReplicaItem
-
getDataurl
Returns dataurl Attribute.- Returns:
- dataurl Attribute
-
setDataurl
Set dataurl Attribute.- Parameters:
pDataurl- value to set
-
withDataurl
fluent setter for dataurl Attribute.- Parameters:
pDataurl- value to set- Returns:
- SkaoReplicaItem
-
createSkaoReplicaItem
public static SkaoReplicaItem createSkaoReplicaItem(Consumer<SkaoReplicaItem.SkaoReplicaItemBuilder> f) create a SkaoReplicaItem 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>
-