Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.litesoft.rest.adapters;

import java.sql.*;

public class XmlToJavaBindingAdapterSQL
{
    public static Date parseDate( String s )
    {
        return Date.valueOf( s );
    }

    public static String printDate( Date pSqlDate )
    {
        return pSqlDate.toString();
    }

    public static Time parseTime( String s )
    {
        return Time.valueOf( s );
    }

    public static String printTime( Time pSqlTime )
    {
        return pSqlTime.toString();
    }

    public static Timestamp parseTimestamp( String s )
    {
        return Timestamp.valueOf( s );
    }

    public static String printTimestamp( Timestamp pTimestamp )
    {
        return pTimestamp.toString();
    }
}

Commits for litesoft/trunk/Java/Rest/RestfulDTOs/DTOsupport/src/org/litesoft/rest/adapters/XmlToJavaBindingAdapterSQL.java

Diff revisions: vs.
Revision Author Commited Message
793 GeorgeS picture GeorgeS Sun 12 Aug, 2012 22:56:28 +0000