|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ds.fw.types.FwSimpleObject
|
+--com.ds.fw.types.data.FwTimestamp
| Field Summary | |
com.ds.fw.types.data.FwDateIF |
_date
|
com.ds.fw.types.data.FwTimeIF |
_time
|
| Constructor Summary | |
FwTimestamp()
|
|
| Method Summary | |
com.ds.fw.types.data.FwDateIF |
_getDate()
Gets the date |
com.ds.fw.types.data.FwTimeIF |
_getTime()
Gets the time |
void |
addHours(int n)
Adds hours to the FwTimestamp object |
void |
addMilliseconds(int n)
Adds milliseconds to the FwTimestamp object |
void |
addMinutes(int n)
Adds minutes to the FwTimestamp object |
void |
addSeconds(int n)
Adds seconds to the FwTimestamp object |
void |
beNow()
Sets the date and time to the current |
void |
changeTimeZone(java.lang.String oldId,
java.lang.String newId)
Change the time zone |
int |
compareTo(java.lang.Object e)
Compare the date and the time of two FwTimestampIF |
static com.ds.fw.types.data.FwTimestampIF |
createNow()
Create a new date with the current date and time. |
boolean |
equals(java.lang.Object o)
Compares if two objects of this type are equals |
com.ds.fw.types.data.FwDateIF |
getDate()
Gets the copy of the date |
int |
getDay()
Gets the day |
int |
getHour()
Gets the hour |
java.util.Date |
getJavaDate()
Gets the date |
java.util.Date |
getJavaDate(java.util.Calendar c,
boolean millis)
Gets the date |
java.util.Date |
getJavaDateWithoutMilliseconds()
Gets the date |
int |
getMillisecond()
Gets the milliseconds |
int |
getMinute()
Gets the minute |
int |
getMonth()
Gets the month |
int |
getSecond()
Gets the seconds |
com.ds.fw.types.data.FwTimeIF |
getTime()
Gets the copy of the time |
int |
getYear()
Gets the year |
int |
hashCode()
Generate an unique code for the date and the time |
boolean |
isAfter(com.ds.fw.types.data.FwTimestampIF ts)
Check if the date and the time are after the date and the time of the given as parameter FwTimestampIF |
boolean |
isBefore(com.ds.fw.types.data.FwTimestampIF ts)
Check if the date and time are before the date and the time of the given as parameter FwTimestampIF |
void |
postCopy()
This should never be called directly from a client. |
void |
setDay(int o)
Sets the day |
void |
setHour(int o)
Sets the hour |
void |
setJavaDate(java.util.Date d)
Sets the date |
void |
setJavaDate(java.util.Date d,
java.util.Calendar c)
Sets the date |
void |
setMillisecond(int o)
Sets the milliseconds |
void |
setMinute(int o)
Sets the minutes |
void |
setMonth(int o)
Sets the month |
void |
setSecond(int o)
Sets the seconds |
void |
setYear(int o)
Sets the year |
long |
subtract(com.ds.fw.types.data.FwTimestampIF ts)
Gets the difference between two FwTimestamp objects. |
java.lang.String |
toStringValue()
Return a string representation of FwTimestamp |
| Methods inherited from class com.ds.fw.types.FwSimpleObject |
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ds.fw.types.FwSimpleObjectIF |
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, toString |
| Field Detail |
public com.ds.fw.types.data.FwDateIF _date
public com.ds.fw.types.data.FwTimeIF _time
| Constructor Detail |
public FwTimestamp()
| Method Detail |
public static com.ds.fw.types.data.FwTimestampIF createNow()
public com.ds.fw.types.data.FwDateIF _getDate()
_getDate in interface FwTimestampIFpublic com.ds.fw.types.data.FwTimeIF _getTime()
_getTime in interface FwTimestampIFpublic int getDay()
getDay in interface FwTimestampIFpublic void setDay(int o)
setDay in interface FwTimestampIFo - - the new daypublic int getMonth()
getMonth in interface FwTimestampIFpublic void setMonth(int o)
setMonth in interface FwTimestampIFo - - the new monthpublic int getYear()
getYear in interface FwTimestampIFpublic void setYear(int o)
setYear in interface FwTimestampIFo - - the new yearpublic int getHour()
getHour in interface FwTimestampIFpublic void setHour(int o)
setHour in interface FwTimestampIFo - - the new hourpublic int getMinute()
getMinute in interface FwTimestampIFpublic void setMinute(int o)
setMinute in interface FwTimestampIFo - - the value for the minutespublic int getSecond()
getSecond in interface FwTimestampIFpublic void setSecond(int o)
setSecond in interface FwTimestampIFo - - the new value for the secondspublic int getMillisecond()
getMillisecond in interface FwTimestampIFpublic void setMillisecond(int o)
setMillisecond in interface FwTimestampIFo - - the new value for the millisecondspublic void beNow()
beNow in interface FwTimestampIFpublic java.util.Date getJavaDate()
getJavaDate in interface FwTimestampIFpublic java.util.Date getJavaDateWithoutMilliseconds()
getJavaDateWithoutMilliseconds in interface FwTimestampIF
public java.util.Date getJavaDate(java.util.Calendar c,
boolean millis)
c - - a calendar objectmillis - - if true the return date is with milliseconds included
public void setJavaDate(java.util.Date d)
setJavaDate in interface FwTimestampIFd - - the new date
public void setJavaDate(java.util.Date d,
java.util.Calendar c)
d - - the new datec - - a calendar object
public void changeTimeZone(java.lang.String oldId,
java.lang.String newId)
changeTimeZone in interface FwTimestampIFoldId - newId - public com.ds.fw.types.data.FwDateIF getDate()
getDate in interface FwTimestampIFpublic com.ds.fw.types.data.FwTimeIF getTime()
getTime in interface FwTimestampIFpublic void postCopy()
FwCopyableIF
postCopy in interface FwSimpleObjectIFpostCopy in class FwSimpleObjectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto -
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isBefore(com.ds.fw.types.data.FwTimestampIF ts)
isBefore in interface FwTimestampIFts -
public boolean isAfter(com.ds.fw.types.data.FwTimestampIF ts)
isAfter in interface FwTimestampIFts -
public int compareTo(java.lang.Object e)
compareTo in interface java.lang.Comparablee -
public java.lang.String toStringValue()
toStringValue in interface FwSimpleObjectIFtoStringValue in class FwSimpleObjectpublic void addMilliseconds(int n)
addMilliseconds in interface FwTimestampIFn - - the number of the milliseconds which we want to addpublic void addSeconds(int n)
addSeconds in interface FwTimestampIFn - - the number of the seconds which we want to addpublic void addMinutes(int n)
addMinutes in interface FwTimestampIFn - - the number of the minutes which we want to addpublic void addHours(int n)
addHours in interface FwTimestampIFn - - the number of the hours which we want to addpublic long subtract(com.ds.fw.types.data.FwTimestampIF ts)
subtract in interface FwTimestampIFts -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||