return jdbcTemplate.update("UPDATE topics SET deleted='t',sticky='f' WHERE id=? AND NOT deleted", msgid)>0;
}
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public void undelete(Topic message) {
DeleteInfo deleteInfo = deleteInfoDao.getDeleteInfo(message.getId(), true);
if (deleteInfo!=null && deleteInfo.getBonus()!=0) {
userDao.changeScore(message.getUid(), -deleteInfo.getBonus());
}
jdbcTemplate.update(updateUndeleteMessage, message.getId());
jdbcTemplate.update(updateUneleteInfo, message.getId());
}