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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Point, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Pointcreate a Point in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidorg.ivoa.dm.stc.coords.PointReturns centre Attribute.voidsetCentre(org.ivoa.dm.stc.coords.Point pCentre) Set centre Attribute.voidupdateUsing(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, withNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getIdMethods 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() -
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-