Interface DateObject

All Superinterfaces:
AtomicObject, ChronologicObject, DataObject, PropertyHandler
All Known Implementing Classes:
DateObjectImpl

public interface DateObject extends ChronologicObject
A DateObject represents a Date as value. The native object is java.sql.Date and not java.util.Date because of java.util.Date also includes time informations. Consquently, this class contains only the date without any time information. To have the same feature as java.util.Date use the TimeStampObject instead.

A detailed description can be found in the DateClass.

Attention:

 Date date = new Date();
 setNativeDate(date);
 date == getNativeDate(); // can fail, because of internal reformating
 date.equals(getNativeDate()) //can also fail, because the time information could be removed
 
Author:
Rainer Maximini
See Also: