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

java.lang.Object
  extended by com.jpattern.orm.persistor.type.ext.JodaLocalDateToSqlTimestampWrapper
All Implemented Interfaces:
ExtendedTypeWrapper<org.joda.time.LocalDate,Timestamp>, TypeWrapper<org.joda.time.LocalDate,Timestamp>

public class JodaLocalDateToSqlTimestampWrapper
extends Object
implements ExtendedTypeWrapper<org.joda.time.LocalDate,Timestamp>

Author:
Francesco Cina' Mar 27, 2012

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

Constructor Detail

JodaLocalDateToSqlTimestampWrapper

public JodaLocalDateToSqlTimestampWrapper()
Method Detail

jdbcType

public Class<Timestamp> jdbcType()
Specified by:
jdbcType in interface TypeWrapper<org.joda.time.LocalDate,Timestamp>

propertyType

public Class<org.joda.time.LocalDate> propertyType()
Specified by:
propertyType in interface TypeWrapper<org.joda.time.LocalDate,Timestamp>

wrap

public org.joda.time.LocalDate wrap(Timestamp value)
Specified by:
wrap in interface TypeWrapper<org.joda.time.LocalDate,Timestamp>

unWrap

public Timestamp unWrap(org.joda.time.LocalDate value)
Specified by:
unWrap in interface TypeWrapper<org.joda.time.LocalDate,Timestamp>

clone

public org.joda.time.LocalDate clone(org.joda.time.LocalDate source)
Description copied from interface: TypeWrapper
Return a new instance equivalent to the source

Specified by:
clone in interface TypeWrapper<org.joda.time.LocalDate,Timestamp>
Returns:


Copyright © 2013. All Rights Reserved.