Package org.dbwiki.data.time

Examples of org.dbwiki.data.time.Version.number()


      // generate a timestamp for the schema root
      int timestamp = -1;
      String makeTimestamp =
          "INSERT INTO " + dbName + RelationTimesequence + "(" +
              RelTimesequenceColStart + ", " +
              RelTimesequenceColStop + ") VALUES(" + version.number() + " , -1)";
      statement.execute(makeTimestamp, Statement.RETURN_GENERATED_KEYS);
      ResultSet rs = statement.getGeneratedKeys();
      if (rs.next()) {
        timestamp = rs.getInt(1);
        rs.close();
View Full Code Here


    int intervalIndex = 0;
    int versionIndex = 0;
   
    while ((intervalIndex < intervals.length) && (versionIndex < _versions.size())) {
      Version version = _versions.get(versionIndex);
      int versionNumber = version.number();
      if (version.provenance().type() == Provenance.ProvenanceTypeDelete) {
        versionNumber--;
        if (intervals[intervalIndex].end() == versionNumber) {
          return true;
        }
View Full Code Here

            version = versionIndex.getVersionAt(org.dbwiki.lib.DateTime.getDate(dateString));
          } catch (java.text.ParseException perseException) {
            throw new WikiQueryException(WikiQueryException.InvalidQueryStatement, "Invalid date expression: " + dateString);
          }
          if (version != null) {
            timestamp = timestamp + version.number();
          } else {
            timestamp = timestamp + "0";
          }
        } else {
          timestamp = timestamp + timestampToken.value();
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.