Package org.ivoa.dm.regtap
Class STCSpatial
java.lang.Object
org.ivoa.dm.regtap.STCSpatial
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="RegTAP:STCSpatial",
role=objectType)
public class STCSpatial
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The spatial coverage of resources.
objectType: STCSpatial
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for STCSpatial, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new STCSpatialSTCSpatial
(String coverage, String ref_system_name) full parameter constructor.STCSpatial
(STCSpatial other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic STCSpatial
create a STCSpatial in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns coverage Attribute.getId()
Returns ref_system_name Attribute.void
setCoverage
(String pCoverage) Set coverage Attribute.void
setRef_system_name
(String pRef_system_name) Set ref_system_name Attribute.void
updateUsing
(STCSpatial other) Update this object with the content of the given object.withCoverage
(String pCoverage) fluent setter for coverage Attribute.withRef_system_name
(String pRef_system_name) fluent setter for ref_system_name Attribute.
-
Field Details
-
_id
inserted database key -
coverage
@VoDml(id="RegTAP:STCSpatial.coverage", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String coverageA geometry representing the area a resource contains data for; this should be tight at least with a resolution of degrees. : Attribute coverage : multiplicity 1 -
ref_system_name
@VoDml(id="RegTAP:STCSpatial.ref_system_name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String ref_system_nameThe reference frame coverage is written in. This is currently reserved and fixed to NULL. Clients should always add a constraint to NULL for this to avoid matching non-celestial resources later. : Attribute ref_system_name : multiplicity 1
-
-
Constructor Details
-
STCSpatial
public STCSpatial()Creates a new STCSpatial -
STCSpatial
full parameter constructor.- Parameters:
coverage
- A geometry representing the area a resource contains data for; this should be tight at least with a resolution of degrees.ref_system_name
- The reference frame coverage is written in. This is currently reserved and fixed to NULL. Clients should always add a constraint to NULL for this to avoid matching non-celestial resources later.
-
STCSpatial
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.
-
getCoverage
Returns coverage Attribute.- Returns:
- coverage Attribute
-
setCoverage
Set coverage Attribute.- Parameters:
pCoverage
- value to set
-
withCoverage
fluent setter for coverage Attribute.- Parameters:
pCoverage
- value to set- Returns:
- STCSpatial
-
getRef_system_name
Returns ref_system_name Attribute.- Returns:
- ref_system_name Attribute
-
setRef_system_name
Set ref_system_name Attribute.- Parameters:
pRef_system_name
- value to set
-
withRef_system_name
fluent setter for ref_system_name Attribute.- Parameters:
pRef_system_name
- value to set- Returns:
- STCSpatial
-
createSTCSpatial
create a STCSpatial 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>
-