Package org.dbwiki.data.time

Examples of org.dbwiki.data.time.TimeInterval


    }
    return false;
  }
 
  private void updateTimestamp(Connection con, TimestampedObject obj, TimeSequence timestamp) throws org.dbwiki.exception.WikiException {
    TimeInterval interval = timestamp.lastInterval();
   
    ResourceIdentifier identifier = obj.identifier();

    if (obj.hasTimestamp() && !interval.isOpen()) {
      new DatabaseWriter(con, this).updateTimestamp(identifier, interval);
    } else {
      new DatabaseWriter(con, this).insertTimestamp(identifier, interval);
    }
    obj.setTimestamp(timestamp);
View Full Code Here


    }
    obj.setTimestamp(timestamp);
  }
 
  private void insertTimestamp(Connection con, DatabaseNode node, TimeSequence timestamp) throws org.dbwiki.exception.WikiException {
    TimeInterval interval = timestamp.lastInterval();

    new DatabaseWriter(con, this).insertTimestamp(node.identifier(), interval);

    node.setTimestamp(timestamp);
  }
View Full Code Here

TOP

Related Classes of org.dbwiki.data.time.TimeInterval

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.