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

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

public class ShortToBigDecimalWrapper
extends Object
implements ExtendedTypeWrapper<Short,BigDecimal>

Author:
Francesco Cina' Apr 1, 2012

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

Constructor Detail

ShortToBigDecimalWrapper

public ShortToBigDecimalWrapper()
Method Detail

jdbcType

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

propertyType

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

wrap

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

unWrap

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

clone

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

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


Copyright © 2013. All Rights Reserved.