org.pojava.persistence.adaptor
Class BigDecimalAdaptor

java.lang.Object
  extended by org.pojava.transformation.BindingAdaptor<BigDecimal,BigDecimal>
      extended by org.pojava.persistence.adaptor.BigDecimalAdaptor

public class BigDecimalAdaptor
extends org.pojava.transformation.BindingAdaptor<BigDecimal,BigDecimal>

Adaptor for managing translations for values of type double.

Author:
John Pile

Constructor Summary
BigDecimalAdaptor()
           
 
Method Summary
 org.pojava.lang.Binding<BigDecimal> inbound(org.pojava.lang.Binding<BigDecimal> inBinding)
          Translate the binding from the data source towards Java bean.
 Class<BigDecimal> inboundType()
          The type the translator will produce for the bean.
 org.pojava.lang.Binding<BigDecimal> outbound(org.pojava.lang.Binding<BigDecimal> outBinding)
          Translate the binding from the java bean to the data source.
 Class<BigDecimal> outboundType()
          The type the translator will produce for the JDBC driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimalAdaptor

public BigDecimalAdaptor()
Method Detail

inboundType

public Class<BigDecimal> inboundType()
The type the translator will produce for the bean.

Specified by:
inboundType in class org.pojava.transformation.BindingAdaptor<BigDecimal,BigDecimal>

outboundType

public Class<BigDecimal> outboundType()
The type the translator will produce for the JDBC driver.

Specified by:
outboundType in class org.pojava.transformation.BindingAdaptor<BigDecimal,BigDecimal>

inbound

public org.pojava.lang.Binding<BigDecimal> inbound(org.pojava.lang.Binding<BigDecimal> inBinding)
Translate the binding from the data source towards Java bean.

Specified by:
inbound in class org.pojava.transformation.BindingAdaptor<BigDecimal,BigDecimal>

outbound

public org.pojava.lang.Binding<BigDecimal> outbound(org.pojava.lang.Binding<BigDecimal> outBinding)
Translate the binding from the java bean to the data source.

Specified by:
outbound in class org.pojava.transformation.BindingAdaptor<BigDecimal,BigDecimal>


Copyright © 2011. All Rights Reserved.