| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.oda.flatfile.util.DateUtil
public final class DateUtil
A utility class. The convert method converts the source object into an Date object given specified type. If no reasonable conversion can be made, throw a OdaException.
| Constructor Summary | |
|---|---|
| DateUtil() | |
| Method Summary | |
|---|---|
| static java.util.Date | toDate(java.lang.Object source)Number -> Date new Date((long)Number) String -> Date toDate(String) | 
| static java.util.Date | toDate(java.lang.String source,
       java.util.Locale locale)A temp solution to the adoption of ICU4J to BIRT. | 
| static java.util.Date | toDate(java.lang.String source,
       com.ibm.icu.util.ULocale locale)convert String with the specified locale to java.util.Date | 
| static java.sql.Date | toSqlDate(java.lang.Object source)Date -> Time String -> Time | 
| static java.sql.Time | toSqlTime(java.lang.Object source)Date -> Time String -> Time | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DateUtil()
| Method Detail | 
|---|
public static java.util.Date toDate(java.lang.Object source)
                             throws OdaException
source - 
OdaException
public static java.sql.Time toSqlTime(java.lang.Object source)
                               throws OdaException
source - 
OdaException
public static java.sql.Date toSqlDate(java.lang.Object source)
                               throws OdaException
source - 
OdaException
public static java.util.Date toDate(java.lang.String source,
                                    java.util.Locale locale)
                             throws OdaException
source - the String to be convertlocate - the locate of the string
OdaException
public static java.util.Date toDate(java.lang.String source,
                                    com.ibm.icu.util.ULocale locale)
                             throws OdaException
source - the String to be convertlocate - the locate of the string
OdaException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||