@Override
	public void updateItem(Gift gift) {
		long id = gift.getId();
		String title = gift.getTitle();
		String description = gift.getDescription();
		String owner = gift.getOwner();
		long touchCount = gift.getTouchCount();
		String dataurl = gift.getDataUrl();
		String voteurl = gift.getVotedUserUrl();
		
		String sql="UPDATE gift SET title=?, descrip=?, owner=?, dataurl=?, touchcnt=?, voteurl=? WHERE id = ?";
		
		Connection conn = null;
		try {
			conn = dataSource.getConnection();
			PreparedStatement ps = conn.prepareStatement(sql);
			ps.setString(1, title);
			ps.setString(2, description);
			ps.setString(3, owner);
			ps.setString(4, dataurl);
			ps.setLong(5, touchCount);
			ps.setString(6, voteurl);
			ps.setLong(7, id);
			ps.executeUpdate();
			ps.close();
 
		} catch (SQLException e) {
			throw new RuntimeException(e);
 
		} finally {
			if (conn != null) {
				try {
					conn.close();
				} catch (SQLException e) {}
			}
		}
	}