Package org.ivoa.dm.regtap
Class STCTemporal
java.lang.Object
org.ivoa.dm.regtap.STCTemporal
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="RegTAP:STCTemporal",
role=objectType)
public class STCTemporal
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The temporal coverage of resources, given as one or more intervals.
objectType: STCTemporal
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for STCTemporal, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new STCTemporalSTCTemporal
(Double time_start, Double time_end) full parameter constructor.STCTemporal
(STCTemporal other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic STCTemporal
create a STCTemporal in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
getId()
Returns time_end Attribute.Returns time_start Attribute.void
setTime_end
(Double pTime_end) Set time_end Attribute.void
setTime_start
(Double pTime_start) Set time_start Attribute.void
updateUsing
(STCTemporal other) Update this object with the content of the given object.withTime_end
(Double pTime_end) fluent setter for time_end Attribute.withTime_start
(Double pTime_start) fluent setter for time_start Attribute.
-
Field Details
-
_id
inserted database key -
time_start
@VoDml(id="RegTAP:STCTemporal.time_start", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double time_startLower limit of a time interval covered by the resource in MJD. : Attribute time_start : multiplicity 1 -
time_end
@VoDml(id="RegTAP:STCTemporal.time_end", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double time_endUpper limit of a time interval covered by the resource in MJD. : Attribute time_end : multiplicity 1
-
-
Constructor Details
-
STCTemporal
public STCTemporal()Creates a new STCTemporal -
STCTemporal
full parameter constructor.- Parameters:
time_start
- Lower limit of a time interval covered by the resource in MJD.time_end
- Upper limit of a time interval covered by the resource in MJD.
-
STCTemporal
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.
-
getTime_start
Returns time_start Attribute.- Returns:
- time_start Attribute
-
setTime_start
Set time_start Attribute.- Parameters:
pTime_start
- value to set
-
withTime_start
fluent setter for time_start Attribute.- Parameters:
pTime_start
- value to set- Returns:
- STCTemporal
-
getTime_end
Returns time_end Attribute.- Returns:
- time_end Attribute
-
setTime_end
Set time_end Attribute.- Parameters:
pTime_end
- value to set
-
withTime_end
fluent setter for time_end Attribute.- Parameters:
pTime_end
- value to set- Returns:
- STCTemporal
-
createSTCTemporal
create a STCTemporal 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>
-