Package jodd.typeconverter.impl

Examples of jodd.typeconverter.impl.SqlTimestampConverter


    register(BigInteger[].class, new ArrayConverter<BigInteger>(this, BigInteger.class));

    register(java.util.Date.class, new DateConverter());
    register(java.sql.Date.class, new SqlDateConverter());
    register(Time.class, new SqlTimeConverter());
    register(Timestamp.class, new SqlTimestampConverter());
    register(Calendar.class, new CalendarConverter());
    register(GregorianCalendar.class, new CalendarConverter());
    register(JDateTime.class, new JDateTimeConverter());

    register(File.class, new FileConverter());
View Full Code Here



    Timestamp st = new Timestamp(123, 4, 5, 6, 7, 8, 500000000);
    jdt = Convert.toJDateTime(st);
    assertEquals("2023-05-05 06:07:08.500", jdt.toString());
    SqlTimestampConverter sqlTimestampConverter = new SqlTimestampConverter();
    Timestamp st2 = sqlTimestampConverter.convert(jdt);
    assertEquals(123, st2.getYear());
    assertEquals(4, st2.getMonth());
    assertEquals(5, st2.getDate());
    assertEquals(6, st2.getHours());
    assertEquals(7, st2.getMinutes());
View Full Code Here

    register(BigInteger[].class, new ArrayConverter<BigInteger>(this, BigInteger.class));

    register(java.util.Date.class, new DateConverter());
    register(java.sql.Date.class, new SqlDateConverter());
    register(Time.class, new SqlTimeConverter());
    register(Timestamp.class, new SqlTimestampConverter());
    register(Calendar.class, new CalendarConverter());
    register(GregorianCalendar.class, new CalendarConverter());
    register(JDateTime.class, new JDateTimeConverter());

    register(File.class, new FileConverter());
View Full Code Here

TOP

Related Classes of jodd.typeconverter.impl.SqlTimestampConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.