Package net.jextra.fauxjo.coercer
Interface TypeCoercer<T>
-
- All Known Implementing Classes:
BigDecimalCoercer,BigIntegerCoercer,ByteCoercer,DateCoercer,DoubleCoercer,FloatCoercer,InstantCoercer,IntegerCoercer,LongCoercer,ObjectCoercer,ShortCoercer,StringCoercer,TimeCoercer,TimestampCoercer,UtilDateCoercer,UuidCoercer
public interface TypeCoercer<T>Coerces one value type to another value type. These are used when the column type from the databas does not "exactly" match the bean's field type and vice versa.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectconvertTo(T value, Class<?> targetClass)
-
-
-
Field Detail
-
ERROR_MSG
static final String ERROR_MSG
- See Also:
- Constant Field Values
-
-
Method Detail
-
convertTo
Object convertTo(T value, Class<?> targetClass) throws FauxjoException
- Throws:
FauxjoException
-
-