Package org.ivoa.dm.demodm.catalog
Class SDSSSource
java.lang.Object
org.ivoa.dm.demodm.catalog.AstroObject
org.ivoa.dm.demodm.catalog.AbstractSource
org.ivoa.dm.demodm.catalog.SDSSSource
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="DemoDM:catalog.SDSSSource",
role=objectType)
public class SDSSSource
extends AbstractSource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
.
objectType: SDSSSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SDSSSource, 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
ConstructorsConstructorDescriptionCreates a new SDSSSourceSDSSSource(AbstractSource superinstance, AlignedEllipse positionError) Constructor from supertype instance.SDSSSource(AlignedEllipse positionError, String name, String description, SkyCoordinate position, SourceClassification classification, List<LuminosityMeasurement> luminosity, String objectType) full parameter constructor.SDSSSource(SDSSSource other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static SDSSSourcecreate a SDSSSource in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidvoidsetPositionError(AlignedEllipse pPositionError) Set positionError Attribute.voidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(SDSSSource other) Update this object with the content of the given object.withPositionError(AlignedEllipse 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
-
SDSSSource
public SDSSSource()Creates a new SDSSSource -
SDSSSource
public SDSSSource(AlignedEllipse 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- .
-
SDSSSource
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
SDSSSource
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:
- SDSSSource
-
createSDSSSource
create a SDSSSource 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>
-