* Update modified timestamps associated with @node.
*
* @return true if any timestamps were updated
*/
private boolean updateTextNodeTimestamps(Connection con, DatabaseTextNode node, NodeUpdate update, Version version) throws org.dbwiki.exception.WikiException {
DatabaseAttributeNode attribute = ((DatabaseAttributeNode)node.parent());
DatabaseNodeValue values = attribute.value();
if (node.getTimestamp().isCurrent()) {
if (!update.value().equals(node.text())) {
updateTimestamp(con, node, node.getTimestamp().finishAt(version.number() - 1));
for (int iValue = 0; iValue < values.size(); iValue++) {
if (update.value().equals(values.get(iValue).text())) {
DatabaseTextNode text = values.get(iValue);
insertTimestamp(con, text, text.getTimestamp().continueAt(version.number()));
return true;
}
}
attribute.add(update.value(), new TimeSequence(version), node.getpre(),node.getpost());
return true;
}
}
return false;