Package org.ivoa.dm.demodm.catalog
Class Source
java.lang.Object
org.ivoa.dm.demodm.catalog.AstroObject
org.ivoa.dm.demodm.catalog.AbstractSource
org.ivoa.dm.demodm.catalog.Source
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="DemoDM:catalog.Source",
role=objectType)
public class Source
extends AbstractSource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
.
objectType: Source
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Source, mainly for use in the functional builder pattern. -
Field Summary
Fields inherited from class org.ivoa.dm.demodm.catalog.AbstractSource
classification, description, luminosity, name, position, positionErrorFields inherited from class org.ivoa.dm.demodm.catalog.AstroObject
_id, objectType -
Constructor Summary
ConstructorsConstructorDescriptionSource()Creates a new SourceSource(AbstractSource superinstance, GenericEllipse positionError) Constructor from supertype instance.Source(GenericEllipse positionError, String name, String description, SkyCoordinate position, SourceClassification classification, List<LuminosityMeasurement> luminosity, String objectType) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Sourcecreate a Source in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidvoidsetPositionError(GenericEllipse pPositionError) Set positionError Attribute.voidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(Source other) Update this object with the content of the given object.withPositionError(GenericEllipse pPositionError) fluent setter for positionError Attribute.Methods inherited from class org.ivoa.dm.demodm.catalog.AbstractSource
addToLuminosity, getClassification, getDescription, getLuminosity, getName, getPosition, removeFromLuminosity, replaceInLuminosity, setClassification, setDescription, setLuminosity, setName, setPosition, updateUsing, withClassification, withDescription, withName, withPositionMethods inherited from class org.ivoa.dm.demodm.catalog.AstroObject
getId, getObjectType, setObjectType, updateUsing, withObjectTypeMethods 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
getId
-
Constructor Details
-
Source
public Source()Creates a new Source -
Source
public Source(GenericEllipse positionError, String name, String description, SkyCoordinate position, SourceClassification classification, List<LuminosityMeasurement> luminosity, String objectType) full parameter constructor.- Parameters:
positionError- .name- .description- .position- .classification- .luminosity- .objectType- .
-
Source
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
Source
Constructor from supertype instance.- Parameters:
superinstance- The supertype.positionError- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMein classAbstractSource- Returns:
- the cloned object.
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy.- Overrides:
updateClonedReferencesin classAbstractSource
-
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.
-
getPositionError
-
setPositionError
Set positionError Attribute.- Parameters:
pPositionError- value to set
-
withPositionError
fluent setter for positionError Attribute.- Parameters:
pPositionError- value to set- Returns:
- Source
-
createSource
create a Source 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- Overrides:
forceLoadin classAbstractSource
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-