Package org.ivoa.dm.proposal.prop
Class Target
java.lang.Object
org.ivoa.dm.proposal.prop.Target
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
CelestialTarget,SolarSystemTarget
@Entity
@VoDml(id="proposal:Target",
role=objectType)
public abstract class Target
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
A target source.
objectType: Target
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TargetcopyMe()make a clone of the object taking into account current polymorhic type.voidgetId()Returns sourceName Attribute.getXmlId()getter for XMLIDbooleanvoidsetSourceName(String pSourceName) Set sourceName Attribute.voidvoidupdateUsing(Target other) Update this object with the content of the given object.withSourceName(String pSourceName) fluent setter for sourceName Attribute.Methods 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
delete
-
Field Details
-
_id
inserted database key -
sourceName
@VoDml(id="proposal:Target.sourceName", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String sourceNameA common name for the source. : Attribute sourceName : multiplicity 1
-
-
Constructor Details
-
Target
public Target()Creates a new Target -
Target
full parameter constructor.- Parameters:
sourceName- A common name for the source.
-
Target
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
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
copyMe
make a clone of the object taking into account current polymorhic type.- Returns:
- the cloned object.
-
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.
-
getSourceName
Returns sourceName Attribute.- Returns:
- sourceName Attribute
-
setSourceName
Set sourceName Attribute.- Parameters:
pSourceName- value to set
-
withSourceName
fluent setter for sourceName Attribute.- Parameters:
pSourceName- value to set- Returns:
- Target
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-