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

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

public class JodaDateTimeToSqlTimestampWrapper
extends Object
implements ExtendedTypeWrapper<org.joda.time.DateTime,Timestamp>

Author:
Francesco Cina' Mar 27, 2012

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

Constructor Detail

JodaDateTimeToSqlTimestampWrapper

public JodaDateTimeToSqlTimestampWrapper()
Method Detail

jdbcType

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

propertyType

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

wrap

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

unWrap

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

clone

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

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


Copyright © 2013. All Rights Reserved.