|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.DateUtil
public class DateUtil
Utility methods that will make it easier to handle date values. Especially, dates must be cloned whenver they are returned to or passed from client applications.
| Constructor Summary | |
|---|---|
DateUtil()
|
|
| Method Summary | |
|---|---|
static Date |
copy(Date value)
Get a copy of the date. |
static Date |
parseString(String value)
|
static Date |
setNotNullDate(Date value,
String name)
Make a copy of a Date object. |
static Date |
setNullableDate(Date value,
String name)
Make a copy of a Date object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateUtil()
| Method Detail |
|---|
public static Date setNullableDate(Date value,
String name)
Date object. Null values are allowed.
value - The date to checkname - The name of the attribute to use if an exception is thrown
public static Date setNotNullDate(Date value,
String name)
throws InvalidUseOfNullException
Date object. Null values are not allowed.
value - The date to checkname - The name of the attribute to use if an exception is thrown
InvalidUseOfNullExceptionpublic static Date copy(Date value)
public static Date parseString(String value)
throws InvalidDataException
InvalidDataException
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||