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

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

public class LongToBigDecimalWrapper
extends Object
implements ExtendedTypeWrapper<Long,BigDecimal>

Author:
Francesco Cina' Apr 1, 2012

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

Constructor Detail

LongToBigDecimalWrapper

public LongToBigDecimalWrapper()
Method Detail

jdbcType

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

propertyType

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

wrap

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

unWrap

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

clone

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

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


Copyright © 2013. All Rights Reserved.