litesoft
Diff Revisions
859
vs
861
for /trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/temporal/CalendarYM.java
|
@@ -1,6 +1,15 @@ |
1 |
1 |
|
package org.litesoft.core.simpletypes.temporal; |
2 |
2 |
|
|
3 |
|
- |
public final class CalendarYM extends AbstractCalendarYM<CalendarYM> |
|
3 |
+ |
import org.litesoft.core.*; |
|
4 |
+ |
|
|
5 |
+ |
/** |
|
6 |
+ |
* A partial date that acts as a sort of proxy for a java.util.Date (burying the deprecated method use) providing |
|
7 |
+ |
* varying levels of resolution based on the DateRes. |
|
8 |
+ |
* <p/> |
|
9 |
+ |
* Note: This class supports Gregorian dates only and has no concept of time or TimeZones. As such when working with |
|
10 |
+ |
* Java Util Date(s) (or it's descendants) the local (or "Wall") date is all that is considered! |
|
11 |
+ |
*/ |
|
12 |
+ |
public final class CalendarYM extends AbstractCalendarYM<CalendarYM> implements SQLdateable |
4 |
13 |
|
{ |
5 |
14 |
|
private static final long serialVersionUID = 1L; |
6 |
15 |
|
|
|
@@ -42,4 +51,16 @@ |
42 |
51 |
|
zMutable.normalize(); |
43 |
52 |
|
return new CalendarYM( zMutable.getYear(), zMutable.getMonth() ); |
44 |
53 |
|
} |
|
54 |
+ |
|
|
55 |
+ |
@Override |
|
56 |
+ |
public String toString() |
|
57 |
+ |
{ |
|
58 |
+ |
return super.toString(); //To change body of overridden methods use File | Settings | File Templates. |
|
59 |
+ |
} |
|
60 |
+ |
|
|
61 |
+ |
@Override |
|
62 |
+ |
public String toSQLvalue() |
|
63 |
+ |
{ |
|
64 |
+ |
return null; //To change body of implemented methods use File | Settings | File Templates. |
|
65 |
+ |
} |
45 |
66 |
|
} |