stmt.close();
}
public void store(Connection con) throws org.dbwiki.exception.WikiException {
try {
Version version = this.getLastVersion();
PreparedStatement statement = storeUpdate(con,version);
/*
PreparedStatement statement = con.prepareStatement(_insertSQL);
statement.setInt(1, version.number());
statement.setString(2, version.name());
Provenance provenance = version.provenance();
statement.setShort(3, provenance.type());
if (provenance.user() != null) {
statement.setInt(4, provenance.user().id());
} else {
statement.setInt(4, User.UnknownUserID);
}
if (provenance.identifier() != null) {
statement.setInt(5, ((NodeIdentifier)provenance.identifier()).nodeID());
} else {
statement.setInt(5, RelVersionColNodeValImport);
}
if (provenance.isCopy()) {
statement.setString(6, ((ProvenanceCopy)provenance).sourceURL());
} else if (provenance.isImport()) {
statement.setString(6, ((ProvenanceImport)provenance).sourceURL());
} else {
statement.setString(6, null);
}
*/
statement.setLong(7, version.time());
statement.execute();
statement.close();
} catch (java.sql.SQLException exception) {
throw new WikiFatalException(exception);
}