Package org.ivoa.dm.proposal.prop
Class Point
java.lang.Object
org.ivoa.dm.proposal.prop.Field
org.ivoa.dm.proposal.prop.Point
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:Point",
role=objectType)
public class Point
extends Field
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Single point on the sky.
objectType: Point
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Point, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
make a clone of the object taking into account current polymorhic type.static Point
create a Point in functional builder style.void
org.ivoa.dm.stc.coords.Point
Returns centre Attribute.void
persistRefs
(jakarta.persistence.EntityManager _em) Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.void
setCentre
(org.ivoa.dm.stc.coords.Point pCentre) Set centre Attribute.void
updateUsing
(Point other) Update this object with the content of the given object.withCentre
(org.ivoa.dm.stc.coords.Point pCentre) fluent setter for centre Attribute.Methods inherited from class org.ivoa.dm.proposal.prop.Field
getId, getName, getXmlId, hasNaturalKey, setName, setXmlId, updateUsing, withName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
Methods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement
getXmlId, hasNaturalKey, setXmlId
-
Field Details
-
centre
@VoDml(id="proposal:Point.centre", role=attribute, type="coords:Point", typeRole=dataType) protected org.ivoa.dm.stc.coords.Point centre. : Attribute centre : multiplicity 1
-
-
Constructor Details
-
Point
public Point()Creates a new Point -
Point
full parameter constructor.- Parameters:
centre
- .name
- .
-
Point
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
Point
Constructor from supertype instance.- Parameters:
superinstance
- The supertype.centre
- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type. -
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.
-
getCentre
public org.ivoa.dm.stc.coords.Point getCentre()Returns centre Attribute.- Returns:
- centre Attribute
-
setCentre
public void setCentre(org.ivoa.dm.stc.coords.Point pCentre) Set centre Attribute.- Parameters:
pCentre
- value to set
-
withCentre
fluent setter for centre Attribute.- Parameters:
pCentre
- value to set- Returns:
- Point
-
createPoint
create a Point in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad() -
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
persistRefs
in classField
-