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

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

public class IntegerToBigDecimalWrapper
extends Object
implements ExtendedTypeWrapper<Integer,BigDecimal>

Author:
Francesco Cina' Apr 1, 2012

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

Constructor Detail

IntegerToBigDecimalWrapper

public IntegerToBigDecimalWrapper()
Method Detail

jdbcType

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

propertyType

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

wrap

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

unWrap

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

clone

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

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


Copyright © 2013. All Rights Reserved.