public class DerivedUnitConverter<TARGET extends DerivedUnit>
extends java.lang.Object
Constructor and Description |
---|
DerivedUnitConverter(DerivedUnit source) |
DerivedUnitConverter(SpecimenTypeDesignation specimenTypeDesignation) |
Modifier and Type | Method and Description |
---|---|
SpecimenTypeDesignation |
convertTo(java.lang.Class<TARGET> targetType,
SpecimenOrObservationType recordBasis)
converts the
source DerivedUnit this converter has been created
for into a DerivedUnit of the type TARGET . |
boolean |
isSuppoprtedType(java.lang.Class<TARGET> targetType) |
DerivedUnit |
oldDerivedUnit()
Returns the derived unit which was the source entity for the conversion.
|
public DerivedUnitConverter(DerivedUnit source) throws java.lang.Exception
specimenTypeDesignation
- java.lang.Exception
public DerivedUnitConverter(SpecimenTypeDesignation specimenTypeDesignation)
specimenTypeDesignation
- public SpecimenTypeDesignation convertTo(java.lang.Class<TARGET> targetType, SpecimenOrObservationType recordBasis) throws DerivedUnitConversionException
source
DerivedUnit
this converter has been created
for into a DerivedUnit
of the type TARGET
.
If the source
instance was persisted the target instance will also be written
into data base and the source is deleted from there.targetType
- recordBasis
- DerivedUnitConversionException
public boolean isSuppoprtedType(java.lang.Class<TARGET> targetType)
targetType
- public DerivedUnit oldDerivedUnit()
Copyright © 2007-2020 EDIT. All Rights Reserved.