Package org.ivoa.dm.demodm.catalog
Class TwoMassSource
java.lang.Object
org.ivoa.dm.demodm.catalog.AstroObject
org.ivoa.dm.demodm.catalog.AbstractSource
org.ivoa.dm.demodm.catalog.TwoMassSource
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="DemoDM:catalog.TwoMassSource",
role=objectType)
public class TwoMassSource
extends AbstractSource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
.
objectType: TwoMassSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for TwoMassSource, 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 TwoMassSourceTwoMassSource(AbstractSource superinstance, GenericEllipse positionError) Constructor from supertype instance.TwoMassSource(GenericEllipse positionError, String name, String description, SkyCoordinate position, SourceClassification classification, List<LuminosityMeasurement> luminosity, String objectType) full parameter constructor.TwoMassSource(TwoMassSource other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static TwoMassSourcecreate a TwoMassSource 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(TwoMassSource 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
-
TwoMassSource
public TwoMassSource()Creates a new TwoMassSource -
TwoMassSource
public TwoMassSource(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- .
-
TwoMassSource
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
TwoMassSource
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:
- TwoMassSource
-
createTwoMassSource
create a TwoMassSource 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>
-