Subversion Repository Public Repository

litesoft

Diff Revisions 65 vs 66 for /trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/temporal/SimpleTime.java

Diff revisions: vs.
  @@ -4,12 +4,14 @@
4 4 import java.util.*;
5 5
6 6 import org.litesoft.core.simpletypes.temporal.nonpublic.*;
7 + import org.litesoft.core.*;
7 8
8 9 /**
9 10 * A Simple Time object with variable resolution from the Hour thru the Millisecond.
10 11 */
11 12 public final class SimpleTime extends AbstractWithTimeRes<SimpleTime> implements CalendarSupport.Chunk,
12 - TimeWithResolutionAccessor
13 + TimeWithResolutionAccessor,
14 + SQLtimeable
13 15 {
14 16 private int mHour, mMin, mSec, mMilliSec;
15 17
  @@ -489,6 +491,12 @@
489 491 return minLength( pMinLength, Integer.toString( pValue ) );
490 492 }
491 493
494 + @Override
495 + public Object toSQLvalue()
496 + {
497 + return new java.sql.Date( getSqlTimeOffset() );
498 + }
499 +
492 500 public static String toString( SimpleTime pTime )
493 501 {
494 502 return (pTime != null) ? pTime.toString() : null;