com.jpattern.orm.persistor.type.ext
Class FloatToBigDecimalWrapper

java.lang.Object
  extended by com.jpattern.orm.persistor.type.ext.FloatToBigDecimalWrapper
All Implemented Interfaces:
ExtendedTypeWrapper<Float,BigDecimal>, TypeWrapper<Float,BigDecimal>

public class FloatToBigDecimalWrapper
extends Object
implements ExtendedTypeWrapper<Float,BigDecimal>

Author:
Francesco Cina' Apr 1, 2012

Constructor Summary
FloatToBigDecimalWrapper()
           
 
Method Summary
 Float clone(Float source)
          Return a new instance equivalent to the source
 Class<BigDecimal> jdbcType()
           
 Class<Float> propertyType()
           
 BigDecimal unWrap(Float value)
           
 Float wrap(BigDecimal value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatToBigDecimalWrapper

public FloatToBigDecimalWrapper()
Method Detail

jdbcType

public Class<BigDecimal> jdbcType()
Specified by:
jdbcType in interface TypeWrapper<Float,BigDecimal>

propertyType

public Class<Float> propertyType()
Specified by:
propertyType in interface TypeWrapper<Float,BigDecimal>

wrap

public Float wrap(BigDecimal value)
Specified by:
wrap in interface TypeWrapper<Float,BigDecimal>

unWrap

public BigDecimal unWrap(Float value)
Specified by:
unWrap in interface TypeWrapper<Float,BigDecimal>

clone

public Float clone(Float source)
Description copied from interface: TypeWrapper
Return a new instance equivalent to the source

Specified by:
clone in interface TypeWrapper<Float,BigDecimal>
Returns:


Copyright © 2013. All Rights Reserved.