}
// UPDATE DATASTORE SET DATA=? WHERE ID=?
conn.executeStmt(updateDataSQL, new Object[]{wrapper, tempId});
now = System.currentTimeMillis();
long length = in.getPosition();
DataIdentifier identifier = new DataIdentifier(digest.digest());
usesIdentifier(identifier);
id = identifier.toString();
// UPDATE DATASTORE SET ID=?, LENGTH=?, LAST_MODIFIED=?
// WHERE ID=?
// AND NOT EXISTS(SELECT ID FROM DATASTORE WHERE ID=?)
PreparedStatement prep = conn.executeStmt(updateSQL, new Object[]{
id, new Long(length), new Long(now),