|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.cs.core.db.Util
public final class Util
Handy utility class for working with databases.
Field Summary | |
---|---|
static boolean |
USEMILLISECONDS
|
Method Summary | |
---|---|
static java.lang.String |
formatJdbcDate(java.util.Date date)
Given a Date, return a string in the standard jdbc form: yyyy-MM-dd HH:mm:ss.SSS This method should only be used by write operations. |
static java.util.Date |
parseJdbcDate(java.lang.String string)
Given an input string in JDBC form, parse it and return a date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean USEMILLISECONDS
Method Detail |
---|
public static java.lang.String formatJdbcDate(java.util.Date date)
date
- input date
public static java.util.Date parseJdbcDate(java.lang.String string)
string
- jdbc date string in the form yyyy-MM-dd HH:mm:ss
java.lang.IllegalArgumentException
- on failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |