litesoft
Diff Revisions
859
vs
860
for /trunk/Java/core/Anywhere/src/org/litesoft/codec/SimpleDateTypedTerminatingCodec.java
|
@@ -8,20 +8,20 @@ |
8 |
8 |
|
/** |
9 |
9 |
|
* Convert Timestamp value to/from a self-terminating string representation |
10 |
10 |
|
*/ |
11 |
|
- |
public class SimpleDateTypedTerminatingCodec extends AbstractTypedTerminatingCodec<SimpleDate> |
|
11 |
+ |
public class SimpleDateTypedTerminatingCodec extends AbstractTypedTerminatingCodec<CalendarYMD> |
12 |
12 |
|
{ |
13 |
13 |
|
public static final SimpleDateTypedTerminatingCodec INSTANCE = new SimpleDateTypedTerminatingCodec(); |
14 |
14 |
|
|
15 |
15 |
|
@Override |
16 |
|
- |
protected @NotNull void encodeNonNull( CharSink pCharSink, SimpleDate pValue ) |
|
16 |
+ |
protected @NotNull void encodeNonNull( CharSink pCharSink, CalendarYMD pValue ) |
17 |
17 |
|
{ |
18 |
18 |
|
NonNullStringTerminatingCodec.INSTANCE.encode( pCharSink, pValue.toSQLvalue() ); |
19 |
19 |
|
} |
20 |
20 |
|
|
21 |
21 |
|
@Override |
22 |
|
- |
protected @NotNull SimpleDate decodeNonNull( CharSource pCharSource ) |
|
22 |
+ |
protected @NotNull CalendarYMD decodeNonNull( CharSource pCharSource ) |
23 |
23 |
|
{ |
24 |
|
- |
return SimpleDate.fromSQLvalue( NonNullStringTerminatingCodec.INSTANCE.decode( pCharSource ) ); |
|
24 |
+ |
return CalendarYMD.fromSQLvalue( NonNullStringTerminatingCodec.INSTANCE.decode( pCharSource ) ); |
25 |
25 |
|
} |
26 |
26 |
|
} |
27 |
27 |
|
|