@Test public void SqlDateからの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); java.sql.Date sd = new java.sql.Date(d.getTime()); assertEquals("2011/11/11", new StringConverter().convert(sd)); }
public String convert(Integer target) { return target.toString(); }
StringConverter implements TypeConverter<String> { public String convert(Integer target) { return target.toString(); } }
StringConverter implements TypeConverter<String> { public String convert(Integer target) { return target.toString(); } StringConverter(); }
StringConverter implements TypeConverter<String> { public String convert(Integer target) { return target.toString(); } StringConverter(); String convert(Integer target); String convert(Long target); String convert(BigInteger target); String convert(Float target); String convert(Double target); String convert(BigDecimal target); String convert(Date target); String convert(java.sql.Date target); String convert(Timestamp target); }
StringConverter implements TypeConverter<String> { public String convert(Integer target) { return target.toString(); } StringConverter(); String convert(Integer target); String convert(Long target); String convert(BigInteger target); String convert(Float target); String convert(Double target); String convert(BigDecimal target); String convert(Date target); String convert(java.sql.Date target); String convert(Timestamp target);  }