com.jpattern.orm.persistor.type.ext
Class JodaDateTimeToSqlTimestampWrapper
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JodaDateTimeToSqlTimestampWrapper
public JodaDateTimeToSqlTimestampWrapper()
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.