Package org.ivoa.dm.proposal.prop
Class SinglePointing
java.lang.Object
org.ivoa.dm.proposal.prop.Field
org.ivoa.dm.proposal.prop.SinglePointing
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity(name="SinglePointing")
@VoDml(id="proposal:SinglePointing",
role=objectType)
public class SinglePointing
extends Field
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Single point on the sky.
objectType: SinglePointing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SinglePointing, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SinglePointingSinglePointing(CelestialPosition centre, String name) full parameter constructor.SinglePointing(Field superinstance, CelestialPosition centre) Constructor from supertype instance.SinglePointing(SinglePointing other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static SinglePointingcreate a SinglePointing in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns centre Attribute.voidsetCentre(CelestialPosition pCentre) Set centre Attribute.voidupdateUsing(SinglePointing other) Update this object with the content of the given object.withCentre(CelestialPosition 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:SinglePointing.centre", role=attribute, type="proposal:CelestialPosition", typeRole=dataType) protected CelestialPosition centreWhere to point. : Attribute centre type proposal:CelestialPosition : multiplicity 1
-
-
Constructor Details
-
SinglePointing
public SinglePointing()Creates a new SinglePointing -
SinglePointing
full parameter constructor.- Parameters:
centre- Where to point.name- .
-
SinglePointing
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
SinglePointing
Constructor from supertype instance.- Parameters:
superinstance- The supertype.centre- Where to point.
-
-
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
Returns centre Attribute.- Returns:
- centre Attribute
-
setCentre
Set centre Attribute.- Parameters:
pCentre- value to set
-
withCentre
fluent setter for centre Attribute.- Parameters:
pCentre- value to set- Returns:
- SinglePointing
-
createSinglePointing
create a SinglePointing 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>
-