本文整理汇总了Java中org.apache.ibatis.session.SqlSession.delete方法的典型用法代码示例。如果您正苦于以下问题:Java SqlSession.delete方法的具体用法?Java SqlSession.delete怎么用?Java SqlSession.delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ibatis.session.SqlSession
的用法示例。
在下文中一共展示了SqlSession.delete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deletePraise
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
/**
* 取消点赞
*/
@Override
public void deletePraise(Map praiseid) throws Exception {
SqlSession os = sqlSessionFactory.openSession();
os.delete("deletePraise",praiseid);
os.close();
}
示例2: deleteCollect
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
@Override
public int deleteCollect(Map collectid) throws Exception {
SqlSession os = sqlSessionFactory.openSession();
int i = os.delete("deleteCollect",collectid);
os.close();
return i;
}
示例3: deleteMember
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
public boolean deleteMember(SqlSession sqlSession, GroupUserEntity entity) {
return sqlSession.delete("groupUser.deleteMember", entity) == 1;
}
示例4: deleteOne
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
public boolean deleteOne(SqlSession sqlSession, int aid) {
return sqlSession.delete("announcement.deleteOne", aid) == 1;
}
示例5: deleteOneTestCaseByTid
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
public boolean deleteOneTestCaseByTid(SqlSession sqlSession, int tid) {
int deleteNum = sqlSession.delete("testCases.deleteOneTestCaseByTid", tid);
return deleteNum == 1;
//假如需要删除一道的题目,需要根据pid来删除所有的TestCase
}
示例6: deleteContestProblem
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
public boolean deleteContestProblem(SqlSession sqlSession, ContestProblemEntity entity) {
return sqlSession.delete("contestProblem.deleteContestProblem", entity) == 1;
}
示例7: deleteProblemTags
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
public boolean deleteProblemTags(SqlSession sqlSession, int pid) {
return sqlSession.delete("tagProblem.deleteProblemTags", pid) > 0;
}
示例8: deleteContestByCid
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
public boolean deleteContestByCid(SqlSession sqlSession,int cid){
int deleteNum = sqlSession.delete("contest.deleteContestByCid",cid);
return deleteNum == 1;
}
示例9: delete
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
public boolean delete(SqlSession sqlSession, ProblemModeratorEntity entity) {
return sqlSession.delete("problemModerator.delete", entity) == 1;
}
示例10: deleteClassify
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
@Override
public void deleteClassify(Map map) {
SqlSession os = sqlSessionFactory.openSession();
os.delete("deleteClassify", map);
os.close();
}
示例11: deleteCard
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
@Override
public void deleteCard(Map map) {
SqlSession os = sqlSessionFactory.openSession();
os.delete("deleteCard", map);
os.close();
}
示例12: deletePraiseByArticleId
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
@Override
public void deletePraiseByArticleId(String article_id) throws Exception {
SqlSession os = sqlSessionFactory.openSession();
os.delete("deletePraiseByArticleId", article_id);
os.close();
}
示例13: deleteComment
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
@Override
public void deleteComment(String comment_id) throws Exception {
SqlSession os = sqlSessionFactory.openSession();
os.delete("deleteComment", comment_id);
os.close();
}
示例14: deleteCommentByArticleid
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
@Override
public void deleteCommentByArticleid(String article_id) throws Exception {
SqlSession os = sqlSessionFactory.openSession();
os.delete("deleteCommentByArticleid", article_id);
os.close();
}
示例15: deleteClassify
import org.apache.ibatis.session.SqlSession; //导入方法依赖的package包/类
@Override
public void deleteClassify(String classify_id) {
SqlSession os = sqlSessionFactory.openSession();
os.delete("deleteClassify", classify_id);
os.close();
}