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

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

public class ByteToBigDecimalWrapper
extends Object
implements ExtendedTypeWrapper<Byte,BigDecimal>

Author:
Francesco Cina' Apr 1, 2012

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

Constructor Detail

ByteToBigDecimalWrapper

public ByteToBigDecimalWrapper()
Method Detail

jdbcType

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

propertyType

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

wrap

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

unWrap

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

clone

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

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


Copyright © 2013. All Rights Reserved.