@Test public void Dateからconvertテスト() throws Exception { SimpleDateFormat sdf = new SimpleDateFormat(); sdf.applyPattern("yyyy/MM/dd HH:mm:ss.SSS"); String ymdhmss = "2011/11/11 13:45:56.789"; Date d = sdf.parse(ymdhmss); assertEquals(sdf.parse(ymdhmss), new TimestampConverter().convert(d)); }
public Timestamp convert(java.sql.Date d) { return new Timestamp(d.getTime()); }
TimestampConverter implements TypeConverter<Timestamp> { public Timestamp convert(java.sql.Date d) { return new Timestamp(d.getTime()); } }
TimestampConverter implements TypeConverter<Timestamp> { public Timestamp convert(java.sql.Date d) { return new Timestamp(d.getTime()); } TimestampConverter(); }
TimestampConverter implements TypeConverter<Timestamp> { public Timestamp convert(java.sql.Date d) { return new Timestamp(d.getTime()); } TimestampConverter(); Timestamp convert(java.sql.Date d); Timestamp convert(java.util.Date d); Timestamp convert(String v); }
TimestampConverter implements TypeConverter<Timestamp> { public Timestamp convert(java.sql.Date d) { return new Timestamp(d.getTime()); } TimestampConverter(); Timestamp convert(java.sql.Date d); Timestamp convert(java.util.Date d); Timestamp convert(String v);  }