Package ubic.gemma.persistence.util
Class GenericValueObjectConverter<O extends Identifiable,VO extends IdentifiableValueObject<?>>
- java.lang.Object
-
- ubic.gemma.persistence.util.GenericValueObjectConverter<O,VO>
-
- All Implemented Interfaces:
ConditionalConverter
,ConditionalGenericConverter
,GenericConverter
public class GenericValueObjectConverter<O extends Identifiable,VO extends IdentifiableValueObject<?>> extends Object implements ConditionalGenericConverter
Generic value object converter.Performs conversion from entity to value object using a provided
Converter
.- Author:
- poirigui
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
GenericConverter.ConvertiblePair
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
Set<GenericConverter.ConvertiblePair>
getConvertibleTypes()
boolean
matches(TypeDescriptor sourceType, TypeDescriptor targetType)
-
-
-
Method Detail
-
getConvertibleTypes
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
- Specified by:
getConvertibleTypes
in interfaceGenericConverter
-
matches
public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType)
- Specified by:
matches
in interfaceConditionalConverter
-
convert
public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
- Specified by:
convert
in interfaceGenericConverter
-
-