Package org.ivoa.dm.proposal.prop
Class TargetObservation
java.lang.Object
org.ivoa.dm.proposal.prop.Observation
org.ivoa.dm.proposal.prop.TargetObservation
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:TargetObservation",
role=objectType)
public class TargetObservation
extends Observation
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
an observation of the scientific target .
objectType: TargetObservation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for TargetObservation, mainly for use in the functional builder pattern. -
Field Summary
Fields inherited from class org.ivoa.dm.proposal.prop.Observation
_id, constraints, field, target, technicalGoal
-
Constructor Summary
ConstructorDescriptionCreates a new TargetObservationTargetObservation
(List<Target> target, Field field, TechnicalGoal technicalGoal, List<ObservingConstraint> constraints) full parameter constructor.TargetObservation
(Observation superinstance) Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
static TargetObservation
create a TargetObservation in functional builder style.void
void
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
updates any cloned references that are contained within the hierarchy.void
updateUsing
(TargetObservation other) Update this object with the content of the given object.Methods inherited from class org.ivoa.dm.proposal.prop.Observation
addToConstraints, getConstraints, getField, getId, getTarget, getTechnicalGoal, removeFromConstraints, replaceInConstraints, setConstraints, setField, setTarget, setTechnicalGoal, updateUsing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
-
Constructor Details
-
TargetObservation
public TargetObservation()Creates a new TargetObservation -
TargetObservation
public TargetObservation(List<Target> target, Field field, TechnicalGoal technicalGoal, List<ObservingConstraint> constraints) full parameter constructor.- Parameters:
target
- The actual target of the observation.field
- The Field for the observation.technicalGoal
- The technical goals of the observation.constraints
- any constraints on the observation.
-
TargetObservation
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
TargetObservation
Constructor from supertype instance.- Parameters:
superinstance
- The supertype.
-
-
Method Details
-
copyMe
- Specified by:
copyMe
in classObservation
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy.- Overrides:
updateClonedReferences
in classObservation
-
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.
-
createTargetObservation
public static TargetObservation createTargetObservation(Consumer<TargetObservation.TargetObservationBuilder> f) create a TargetObservation in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
forceLoad
in classObservation
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
jpaClone
in classObservation
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
persistRefs
in classObservation
-