@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 SqlDateConverter().convert(d)); }
public Date convert(Timestamp t) { return new java.sql.Date(t.getTime()); }
SqlDateConverter implements TypeConverter<Date> { public Date convert(Timestamp t) { return new java.sql.Date(t.getTime()); } }
SqlDateConverter implements TypeConverter<Date> { public Date convert(Timestamp t) { return new java.sql.Date(t.getTime()); } SqlDateConverter(); }
SqlDateConverter implements TypeConverter<Date> { public Date convert(Timestamp t) { return new java.sql.Date(t.getTime()); } SqlDateConverter(); Date convert(Timestamp t); Date convert(java.util.Date d); Date convert(String v); }
SqlDateConverter implements TypeConverter<Date> { public Date convert(Timestamp t) { return new java.sql.Date(t.getTime()); } SqlDateConverter(); Date convert(Timestamp t); Date convert(java.util.Date d); Date convert(String v);  }