org.pojava.persistence.adaptor
Class UtilDateSqlAdaptor

java.lang.Object
  extended by org.pojava.transformation.BindingAdaptor<Date,Timestamp>
      extended by org.pojava.persistence.adaptor.UtilDateSqlAdaptor

public class UtilDateSqlAdaptor
extends org.pojava.transformation.BindingAdaptor<Date,Timestamp>

Adaptor for managing Java to JDBC for a Timestamp or Date value mapped to a DateTime value.

Author:
John Pile

Constructor Summary
UtilDateSqlAdaptor()
           
 
Method Summary
 org.pojava.lang.Binding<Date> inbound(org.pojava.lang.Binding<Timestamp> inBinding)
          Translate the binding from the data source towards Java bean.
 Class<Date> inboundType()
          The type the translator will produce for the bean.
 org.pojava.lang.Binding<Timestamp> outbound(org.pojava.lang.Binding<Date> outBinding)
          Translate the binding from the java bean to the data source.
 Class<Timestamp> 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

UtilDateSqlAdaptor

public UtilDateSqlAdaptor()
Method Detail

inboundType

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

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

outboundType

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

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

inbound

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

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

outbound

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

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


Copyright © 2011. All Rights Reserved.