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

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

public class JodaLocalDateTimeToSqlTimestampWrapper
extends Object
implements ExtendedTypeWrapper<org.joda.time.LocalDateTime,Timestamp>

Author:
Francesco Cina' Mar 27, 2012

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

Constructor Detail

JodaLocalDateTimeToSqlTimestampWrapper

public JodaLocalDateTimeToSqlTimestampWrapper()
Method Detail

jdbcType

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

propertyType

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

wrap

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

unWrap

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

clone

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

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


Copyright © 2013. All Rights Reserved.