Package com.google.code.or.common.glossary.column

Examples of com.google.code.or.common.glossary.column.DatetimeColumn


      Long l = d.getTime();
      return l;
    }
    else if (s instanceof DatetimeColumn)
    {
      DatetimeColumn dc = (DatetimeColumn) s;
      Date d = dc.getValue();
      Long t1 = (d.getTime()/1000) * 1000; //Bug in OR for DateTIme and Time data-types. MilliSeconds is not available for these columns but is set with currentMillis() wrongly.
      return t1;
    }
    else if (s instanceof DecimalColumn)
    {
      DecimalColumn dc = (DecimalColumn) s;
      _log.info("dc Value is :" + dc.getValue());
      String s1 = dc.getValue().toString(); // Convert to string for preserving precision
      _log.info("Str : " + s1);
      return s1;
    }
    else if (s instanceof DoubleColumn)
    {
      DoubleColumn dc = (DoubleColumn) s;
      Double d = dc.getValue();
      return d;
    }
    else if (s instanceof EnumColumn)
    {
      EnumColumn ec = (EnumColumn) s;
View Full Code Here

TOP

Related Classes of com.google.code.or.common.glossary.column.DatetimeColumn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.