@Entity public class DerivationEvent extends EventBase implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<DerivedUnit> |
derivatives |
protected java.util.Set<SpecimenOrObservationBase> |
originals |
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
DerivationEvent()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDerivative(DerivedUnit derivative)
Adds a new output specimen or observation for this derivation event.
|
void |
addOriginal(SpecimenOrObservationBase original)
Adds a new input specimen or observation for this derviation event.
|
java.lang.Object |
clone()
Clones this derivation event.
|
java.util.Set<DerivedUnit> |
getDerivatives()
The specimen or observations that are the output for this derviation event.
|
Institution |
getInstitution()
#4498
|
java.util.Set<SpecimenOrObservationBase> |
getOriginals()
The specimen or observations that are the input for this derviation event.
|
DerivationEventType |
getType()
Returns the derivation event type
|
static DerivationEvent |
NewInstance()
Deprecated.
Use
NewInstance(DerivationEventType) or any other
factory method instead to make sure,
the derivation event type is always set. |
static DerivationEvent |
NewInstance(DerivationEventType type)
Factory method
|
static DerivationEvent |
NewSimpleInstance(SpecimenOrObservationBase original,
DerivedUnit derivative,
DerivationEventType type)
Factory method
|
void |
removeDerivative(DerivedUnit derivative)
Removes an output specimen or observation for this derviation event.
|
void |
removeOriginal(SpecimenOrObservationBase original)
Removes an input specimen or observation for this derviation event.
|
void |
setInstitution(Institution institution) |
void |
setType(DerivationEventType type) |
getActor, getDescription, getTimeperiod, setActor, setDescription, setTimeperiod
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
@IndexedEmbedded(depth=3) protected java.util.Set<SpecimenOrObservationBase> originals
protected java.util.Set<DerivedUnit> derivatives
@Deprecated public static DerivationEvent NewInstance()
NewInstance(DerivationEventType)
or any other
factory method instead to make sure,
the derivation event type is always set.public static DerivationEvent NewInstance(DerivationEventType type)
public static DerivationEvent NewSimpleInstance(SpecimenOrObservationBase original, DerivedUnit derivative, DerivationEventType type)
public java.util.Set<SpecimenOrObservationBase> getOriginals()
public void addOriginal(SpecimenOrObservationBase original)
getOriginals()
public void removeOriginal(SpecimenOrObservationBase original)
getOriginals()
public java.util.Set<DerivedUnit> getDerivatives()
public void addDerivative(DerivedUnit derivative)
getDerivatives()
public void removeDerivative(DerivedUnit derivative)
getDerivatives()
public Institution getInstitution()
public void setInstitution(Institution institution)
public DerivationEventType getType()
public void setType(DerivationEventType type)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EventBase
.clone
in class EventBase
java.lang.CloneNotSupportedException
EventBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.