com.jpattern.orm.persistor.type.ext
Class UtilDateToSqlTimestampWrapper
java.lang.Object
com.jpattern.orm.persistor.type.ext.UtilDateToSqlTimestampWrapper
- All Implemented Interfaces:
- ExtendedTypeWrapper<Date,Timestamp>, TypeWrapper<Date,Timestamp>
public class UtilDateToSqlTimestampWrapper
- extends Object
- implements ExtendedTypeWrapper<Date,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 |
UtilDateToSqlTimestampWrapper
public UtilDateToSqlTimestampWrapper()
jdbcType
public Class<Timestamp> jdbcType()
- Specified by:
jdbcType in interface TypeWrapper<Date,Timestamp>
propertyType
public Class<Date> propertyType()
- Specified by:
propertyType in interface TypeWrapper<Date,Timestamp>
wrap
public Date wrap(Timestamp value)
- Specified by:
wrap in interface TypeWrapper<Date,Timestamp>
unWrap
public Timestamp unWrap(Date value)
- Specified by:
unWrap in interface TypeWrapper<Date,Timestamp>
clone
public Date clone(Date source)
- Description copied from interface:
TypeWrapper
- Return a new instance equivalent to the source
- Specified by:
clone in interface TypeWrapper<Date,Timestamp>
- Returns:
Copyright © 2013. All Rights Reserved.