Examples of DateTimeColumn


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

Examples of org.apache.jena.jdbc.results.metadata.columns.DateTimeColumn

        if (dtUri.equals(XSD.date.toString())) {
            // Date column
            return new DateColumn(var, nullable);
        } else if (dtUri.equals(XSD.dateTime.toString())) {
            // Date time column
            return new DateTimeColumn(var, nullable);
        } else if (dtUri.equals(XSD.decimal.toString())) {
            // Decimal column
            return new DecimalColumn(var, nullable);
        } else if (dtUri.equals(XSD.duration.toString())) {
            // JDBC has no notion of durations so return as a string
View Full Code Here

Examples of org.openrdf.sail.rdbms.algebra.DateTimeColumn

  }

  @Override
  public void meet(Var node) {
    if (node.getValue() == null) {
      result = new DateTimeColumn(node);
    }
    else {
      result = valueOf(node.getValue());
    }
  }
View Full Code Here

Examples of org.openrdf.sail.rdbms.algebra.DateTimeColumn

  }

  @Override
  public void meet(Var node) {
    if (node.getValue() == null) {
      result = new DateTimeColumn(node);
    }
    else {
      result = valueOf(node.getValue());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.