Package org.ivoa.dm.caom2
Class TargetPosition
java.lang.Object
org.ivoa.dm.caom2.TargetPosition
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:TargetPosition",
role=objectType)
public class TargetPosition
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the intended position of the observation
(not the position of the intended or actual target).
objectType: TargetPosition
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for TargetPosition, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TargetPositionTargetPosition(String coordsys, Double equinox, Point coordinates) full parameter constructor.TargetPosition(TargetPosition other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetPositioncreate a TargetPosition in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns coordinates Attribute.Returns coordsys Attribute.Returns equinox Attribute.getId()voidsetCoordinates(Point pCoordinates) Set coordinates Attribute.voidsetCoordsys(String pCoordsys) Set coordsys Attribute.voidsetEquinox(Double pEquinox) Set equinox Attribute.voidupdateUsing(TargetPosition other) Update this object with the content of the given object.withCoordinates(Point pCoordinates) fluent setter for coordinates Attribute.withCoordsys(String pCoordsys) fluent setter for coordsys Attribute.withEquinox(Double pEquinox) fluent setter for equinox Attribute.
-
Field Details
-
_id
inserted database key -
coordsys
@VoDml(id="caom2:TargetPosition.coordsys", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String coordsysthe coordinate system of the coordinates. : Attribute coordsys : multiplicity 1 -
equinox
@VoDml(id="caom2:TargetPosition.equinox", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double equinoxthe equinox of the coordinates. : Attribute equinox : multiplicity 0..1 -
coordinates
@VoDml(id="caom2:TargetPosition.coordinates", role=composition, type="caom2:types.Point", typeRole=objectType) protected Point coordinatesthe coordinates. composition coordinates : ( Multiplicity : 1 )
-
-
Constructor Details
-
TargetPosition
public TargetPosition()Creates a new TargetPosition -
TargetPosition
full parameter constructor.- Parameters:
coordsys- the coordinate system of the coordinates.equinox- the equinox of the coordinates.coordinates- the coordinates.
-
TargetPosition
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.
-
getCoordsys
Returns coordsys Attribute.- Returns:
- coordsys Attribute
-
setCoordsys
Set coordsys Attribute.- Parameters:
pCoordsys- value to set
-
withCoordsys
fluent setter for coordsys Attribute.- Parameters:
pCoordsys- value to set- Returns:
- TargetPosition
-
getEquinox
Returns equinox Attribute.- Returns:
- equinox Attribute
-
setEquinox
Set equinox Attribute.- Parameters:
pEquinox- value to set
-
withEquinox
fluent setter for equinox Attribute.- Parameters:
pEquinox- value to set- Returns:
- TargetPosition
-
getCoordinates
Returns coordinates Attribute.- Returns:
- coordinates Attribute
-
setCoordinates
Set coordinates Attribute.- Parameters:
pCoordinates- value to set
-
withCoordinates
fluent setter for coordinates Attribute.- Parameters:
pCoordinates- value to set- Returns:
- TargetPosition
-
createTargetPosition
create a TargetPosition 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>
-