Package org.ivoa.dm.caom2
Class Observable
java.lang.Object
org.ivoa.dm.caom2.Observable
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Observable",
role=objectType)
public class Observable
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of the sample (pixel) values.
objectType: Observable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Observable, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected CalibrationStatusterm describing the calibration of the observable values.protected UCDTermUnified Content Descriptor (UCD) that says what kind of quantity is stored. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ObservableObservable(Observable other) Copy Constructor.Observable(UCDTerm ucd, CalibrationStatus calibration) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Observablecreate a Observable in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns calibration Attribute.getId()getUcd()Returns ucd Attribute.voidsetCalibration(CalibrationStatus pCalibration) Set calibration Attribute.voidSet ucd Attribute.voidupdateUsing(Observable other) Update this object with the content of the given object.withCalibration(CalibrationStatus pCalibration) fluent setter for calibration Attribute.fluent setter for ucd Attribute.
-
Field Details
-
_id
inserted database key -
ucd
@VoDml(id="caom2:Observable.ucd", role=attribute, type="caom2:UCDTerm", typeRole=dataType) protected UCDTerm ucdUnified Content Descriptor (UCD) that says what kind of quantity is stored. : Attribute ucd : multiplicity 1 -
calibration
@VoDml(id="caom2:Observable.calibration", role=attribute, type="caom2:CalibrationStatus", typeRole=dataType) protected CalibrationStatus calibrationterm describing the calibration of the observable values. : Attribute calibration : multiplicity 0..1
-
-
Constructor Details
-
Observable
public Observable()Creates a new Observable -
Observable
full parameter constructor.- Parameters:
ucd- Unified Content Descriptor (UCD) that says what kind of quantity is stored.calibration- term describing the calibration of the observable values.
-
Observable
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
-
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.
-
getUcd
Returns ucd Attribute.- Returns:
- ucd Attribute
-
setUcd
Set ucd Attribute.- Parameters:
pUcd- value to set
-
withUcd
fluent setter for ucd Attribute.- Parameters:
pUcd- value to set- Returns:
- Observable
-
getCalibration
Returns calibration Attribute.- Returns:
- calibration Attribute
-
setCalibration
Set calibration Attribute.- Parameters:
pCalibration- value to set
-
withCalibration
fluent setter for calibration Attribute.- Parameters:
pCalibration- value to set- Returns:
- Observable
-
createObservable
create a Observable 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-