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

java.lang.Object
  extended by 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

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

Constructor Detail

UtilDateToSqlTimestampWrapper

public UtilDateToSqlTimestampWrapper()
Method Detail

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.