com.pow2.util
Class SQLUtil

java.lang.Object
  extended bycom.pow2.util.SQLUtil

public class SQLUtil
extends Object

SQL Util class.


Constructor Summary
SQLUtil()
           
 
Method Summary
static Date getDate(String dateString)
          Get a Date object from the input date string representation.
static Date getDate(String dateString, String format)
          Get a Date object from the input date string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLUtil

public SQLUtil()
Method Detail

getDate

public static Date getDate(String dateString)
Get a Date object from the input date string representation.
The date representation has got the "dd/MM/yyyy" format.

Parameters:
dateString - the date string representation
Returns:
the Date object builded from the input date string

getDate

public static Date getDate(String dateString,
                           String format)
Get a Date object from the input date string representation.

Parameters:
dateString - the date string representation
format - the SimpleDateFormat format. See java.text.SimpleDateFormat api for further informations.
Returns:
the Date object builded from the input date string


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.