Package org.ivoa.dm.executionbroker
Class IvoaObsCoreItem
java.lang.Object
org.ivoa.dm.executionbroker.IvoaObsCoreItem
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:IvoaObsCoreItem",
role=objectType)
public class IvoaObsCoreItem
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A row of ObsCore metadata about the resource.
objectType: IvoaObsCoreItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for IvoaObsCoreItem, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IvoaObsCoreItemIvoaObsCoreItem(String obs_id, String obs_collection, String obs_publisher_did, String obs_creator_did, String dataproduct_type, Integer calib_level, String access_url, String access_format) full parameter constructor.IvoaObsCoreItem(IvoaObsCoreItem other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic IvoaObsCoreItemcreate a IvoaObsCoreItem in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns access_format Attribute.Returns access_url Attribute.Returns calib_level Attribute.Returns dataproduct_type Attribute.getId()Returns obs_collection Attribute.Returns obs_creator_did Attribute.Returns obs_id Attribute.Returns obs_publisher_did Attribute.voidsetAccess_format(String pAccess_format) Set access_format Attribute.voidsetAccess_url(String pAccess_url) Set access_url Attribute.voidsetCalib_level(Integer pCalib_level) Set calib_level Attribute.voidsetDataproduct_type(String pDataproduct_type) Set dataproduct_type Attribute.voidsetObs_collection(String pObs_collection) Set obs_collection Attribute.voidsetObs_creator_did(String pObs_creator_did) Set obs_creator_did Attribute.voidSet obs_id Attribute.voidsetObs_publisher_did(String pObs_publisher_did) Set obs_publisher_did Attribute.voidupdateUsing(IvoaObsCoreItem other) Update this object with the content of the given object.withAccess_format(String pAccess_format) fluent setter for access_format Attribute.withAccess_url(String pAccess_url) fluent setter for access_url Attribute.withCalib_level(Integer pCalib_level) fluent setter for calib_level Attribute.withDataproduct_type(String pDataproduct_type) fluent setter for dataproduct_type Attribute.withObs_collection(String pObs_collection) fluent setter for obs_collection Attribute.withObs_creator_did(String pObs_creator_did) fluent setter for obs_creator_did Attribute.withObs_id(String pObs_id) fluent setter for obs_id Attribute.withObs_publisher_did(String pObs_publisher_did) fluent setter for obs_publisher_did Attribute.
-
Field Details
-
_id
inserted database key -
obs_id
@VoDml(id="execbroker:IvoaObsCoreItem.obs_id", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String obs_id. : Attribute obs_id : multiplicity 1 -
obs_collection
@VoDml(id="execbroker:IvoaObsCoreItem.obs_collection", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String obs_collection. : Attribute obs_collection : multiplicity 1 -
obs_publisher_did
@VoDml(id="execbroker:IvoaObsCoreItem.obs_publisher_did", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String obs_publisher_did. : Attribute obs_publisher_did : multiplicity 1 -
obs_creator_did
@VoDml(id="execbroker:IvoaObsCoreItem.obs_creator_did", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String obs_creator_did. : Attribute obs_creator_did : multiplicity 1 -
dataproduct_type
@VoDml(id="execbroker:IvoaObsCoreItem.dataproduct_type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String dataproduct_type. : Attribute dataproduct_type : multiplicity 1 -
calib_level
@VoDml(id="execbroker:IvoaObsCoreItem.calib_level", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer calib_level. : Attribute calib_level : multiplicity 1 -
access_url
@VoDml(id="execbroker:IvoaObsCoreItem.access_url", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String access_url. : Attribute access_url : multiplicity 1 -
access_format
@VoDml(id="execbroker:IvoaObsCoreItem.access_format", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String access_format. : Attribute access_format : multiplicity 1
-
-
Constructor Details
-
IvoaObsCoreItem
public IvoaObsCoreItem()Creates a new IvoaObsCoreItem -
IvoaObsCoreItem
public IvoaObsCoreItem(String obs_id, String obs_collection, String obs_publisher_did, String obs_creator_did, String dataproduct_type, Integer calib_level, String access_url, String access_format) full parameter constructor.- Parameters:
obs_id- .obs_collection- .obs_publisher_did- .obs_creator_did- .dataproduct_type- .calib_level- .access_url- .access_format- .
-
IvoaObsCoreItem
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.
-
getObs_id
Returns obs_id Attribute.- Returns:
- obs_id Attribute
-
setObs_id
Set obs_id Attribute.- Parameters:
pObs_id- value to set
-
withObs_id
fluent setter for obs_id Attribute.- Parameters:
pObs_id- value to set- Returns:
- IvoaObsCoreItem
-
getObs_collection
Returns obs_collection Attribute.- Returns:
- obs_collection Attribute
-
setObs_collection
Set obs_collection Attribute.- Parameters:
pObs_collection- value to set
-
withObs_collection
fluent setter for obs_collection Attribute.- Parameters:
pObs_collection- value to set- Returns:
- IvoaObsCoreItem
-
getObs_publisher_did
Returns obs_publisher_did Attribute.- Returns:
- obs_publisher_did Attribute
-
setObs_publisher_did
Set obs_publisher_did Attribute.- Parameters:
pObs_publisher_did- value to set
-
withObs_publisher_did
fluent setter for obs_publisher_did Attribute.- Parameters:
pObs_publisher_did- value to set- Returns:
- IvoaObsCoreItem
-
getObs_creator_did
Returns obs_creator_did Attribute.- Returns:
- obs_creator_did Attribute
-
setObs_creator_did
Set obs_creator_did Attribute.- Parameters:
pObs_creator_did- value to set
-
withObs_creator_did
fluent setter for obs_creator_did Attribute.- Parameters:
pObs_creator_did- value to set- Returns:
- IvoaObsCoreItem
-
getDataproduct_type
Returns dataproduct_type Attribute.- Returns:
- dataproduct_type Attribute
-
setDataproduct_type
Set dataproduct_type Attribute.- Parameters:
pDataproduct_type- value to set
-
withDataproduct_type
fluent setter for dataproduct_type Attribute.- Parameters:
pDataproduct_type- value to set- Returns:
- IvoaObsCoreItem
-
getCalib_level
Returns calib_level Attribute.- Returns:
- calib_level Attribute
-
setCalib_level
Set calib_level Attribute.- Parameters:
pCalib_level- value to set
-
withCalib_level
fluent setter for calib_level Attribute.- Parameters:
pCalib_level- value to set- Returns:
- IvoaObsCoreItem
-
getAccess_url
Returns access_url Attribute.- Returns:
- access_url Attribute
-
setAccess_url
Set access_url Attribute.- Parameters:
pAccess_url- value to set
-
withAccess_url
fluent setter for access_url Attribute.- Parameters:
pAccess_url- value to set- Returns:
- IvoaObsCoreItem
-
getAccess_format
Returns access_format Attribute.- Returns:
- access_format Attribute
-
setAccess_format
Set access_format Attribute.- Parameters:
pAccess_format- value to set
-
withAccess_format
fluent setter for access_format Attribute.- Parameters:
pAccess_format- value to set- Returns:
- IvoaObsCoreItem
-
createIvoaObsCoreItem
public static IvoaObsCoreItem createIvoaObsCoreItem(Consumer<IvoaObsCoreItem.IvoaObsCoreItemBuilder> f) create a IvoaObsCoreItem 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>
-