code: public java.sql.Date asExactJavaSqlDate() {
          if (m_usecs != 0) {
              throw new RuntimeException("Can't convert to sql Date from TimestampType with fractional milliseconds");
          }
          return new java.sql.Date(m_date.getTime());
      }
docs: Retrieve a properly typed copy of the Java date for a TimeStamp with millisecond granularity.
  The returned date is a copy; this object will not be affected by
  modifications of the returned instance.
  @return specifically typed copy of underlying Date object.