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

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

public class DoubleToBigDecimalWrapper
extends Object
implements ExtendedTypeWrapper<Double,BigDecimal>

Author:
Francesco Cina' Apr 1, 2012

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

Constructor Detail

DoubleToBigDecimalWrapper

public DoubleToBigDecimalWrapper()
Method Detail

jdbcType

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

propertyType

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

wrap

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

unWrap

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

clone

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

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


Copyright © 2013. All Rights Reserved.