Package org.ivoa.dm.regtap
Class STCSpectral
java.lang.Object
org.ivoa.dm.regtap.STCSpectral
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="RegTAP:STCSpectral",
role=objectType)
public class STCSpectral
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The spectral coverage of resources, given as one or more intervals.
objectType: STCSpectral
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for STCSpectral, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
inserted database keyprotected Double
Upper limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter).protected Double
Lower limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter). -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new STCSpectralSTCSpectral
(Double spectral_start, Double spectral_end) full parameter constructor.STCSpectral
(STCSpectral other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic STCSpectral
create a STCSpectral in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
getId()
Returns spectral_end Attribute.Returns spectral_start Attribute.void
setSpectral_end
(Double pSpectral_end) Set spectral_end Attribute.void
setSpectral_start
(Double pSpectral_start) Set spectral_start Attribute.void
updateUsing
(STCSpectral other) Update this object with the content of the given object.withSpectral_end
(Double pSpectral_end) fluent setter for spectral_end Attribute.withSpectral_start
(Double pSpectral_start) fluent setter for spectral_start Attribute.
-
Field Details
-
_id
inserted database key -
spectral_start
@VoDml(id="RegTAP:STCSpectral.spectral_start", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double spectral_startLower limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter). : Attribute spectral_start : multiplicity 1 -
spectral_end
@VoDml(id="RegTAP:STCSpectral.spectral_end", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double spectral_endUpper limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter). : Attribute spectral_end : multiplicity 1
-
-
Constructor Details
-
STCSpectral
public STCSpectral()Creates a new STCSpectral -
STCSpectral
full parameter constructor.- Parameters:
spectral_start
- Lower limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter).spectral_end
- Upper limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter).
-
STCSpectral
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:
getId
in 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.
-
getSpectral_start
Returns spectral_start Attribute.- Returns:
- spectral_start Attribute
-
setSpectral_start
Set spectral_start Attribute.- Parameters:
pSpectral_start
- value to set
-
withSpectral_start
fluent setter for spectral_start Attribute.- Parameters:
pSpectral_start
- value to set- Returns:
- STCSpectral
-
getSpectral_end
Returns spectral_end Attribute.- Returns:
- spectral_end Attribute
-
setSpectral_end
Set spectral_end Attribute.- Parameters:
pSpectral_end
- value to set
-
withSpectral_end
fluent setter for spectral_end Attribute.- Parameters:
pSpectral_end
- value to set- Returns:
- STCSpectral
-
createSTCSpectral
create a STCSpectral in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-