本文整理匯總了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();
}