Package org.ivoa.dm.demodm.catalog
Class AstroObject
java.lang.Object
org.ivoa.dm.demodm.catalog.AstroObject
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
AbstractSource
@Entity
@VoDml(id="DemoDM:catalog.AstroObject",
role=objectType)
public abstract class AstroObject
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Generic base class for all astronomical objects.
objectType: AstroObject
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AstroObjectAstroObject(String objectType) full parameter constructor.AstroObject(AstroObject other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract AstroObjectcopyMe()make a clone of the object taking into account current polymorhic type.voidgetId()Returns objectType Attribute.voidsetObjectType(String pObjectType) Set objectType Attribute.voidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(AstroObject other) Update this object with the content of the given object.withObjectType(String pObjectType) fluent setter for objectType 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 -
objectType
@VoDml(id="DemoDM:catalog.AstroObject.objectType", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String objectType. : Attribute objectType : multiplicity 0..1
-
-
Constructor Details
-
AstroObject
public AstroObject()Creates a new AstroObject -
AstroObject
full parameter constructor.- Parameters:
objectType- .
-
AstroObject
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
-
copyMe
make a clone of the object taking into account current polymorhic type.- Returns:
- the cloned object.
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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.
-
getObjectType
Returns objectType Attribute.- Returns:
- objectType Attribute
-
setObjectType
Set objectType Attribute.- Parameters:
pObjectType- value to set
-
withObjectType
fluent setter for objectType Attribute.- Parameters:
pObjectType- value to set- Returns:
- AstroObject
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-