本文整理匯總了Java中org.apache.ibatis.session.SqlSession.insert方法的典型用法代碼示例。如果您正苦於以下問題:Java SqlSession.insert方法的具體用法?Java SqlSession.insert怎麽用?Java SqlSession.insert使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.ibatis.session.SqlSession
的用法示例。
在下文中一共展示了SqlSession.insert方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: insertCard
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
@Override
public void insertCard(Cardcase cardinfo) {
SqlSession os = sqlSessionFactory.openSession();
os.insert("insertCard",cardinfo);
os.close();
}
示例2: insert
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean insert(SqlSession sqlSession, SubmissionEntity entity) {
return sqlSession.insert("submission.insertSubmission", entity) == 1;
}
示例3: add
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean add(SqlSession sqlSession, ProblemUserEntity entity) {
return sqlSession.insert("problemUser.insert", entity) == 1;
}
示例4: insertFollow
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
@Override
public void insertFollow(Map followinfo) throws Exception {
SqlSession os = sqlSessionFactory.openSession();
os.insert("insertFollow", followinfo);
os.close();
}
示例5: insertArticlecontent
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
@Override
public void insertArticlecontent(Map articlecontentmap) {
SqlSession os = sqlSessionFactory.openSession();
os.insert("insertArticlecontent", articlecontentmap);
os.close();
}
示例6: insertCollect
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
@Override
public void insertCollect(Map collectinfo) throws Exception {
SqlSession os = sqlSessionFactory.openSession();
os.insert("insertCollect",collectinfo);
os.close();
}
示例7: insertClassify
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
@Override
public void insertClassify(Articleclassify articleclassify) {
SqlSession os = sqlSessionFactory.openSession();
os.insert("insertClassify", articleclassify);
os.close();
}
示例8: add
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean add(SqlSession session, ContestProblemEntity entity) {
return session.insert("contestProblem.insertContestProblem", entity) == 1;
}
示例9: createGroup
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean createGroup(SqlSession sqlSession,GroupEntity groupEntity){
return sqlSession.insert("group.createGroup",groupEntity) == 1;
}
示例10: insertArticletag
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
@Override
public void insertArticletag(Articletag article_tag) {
SqlSession os = sqlSessionFactory.openSession();
os.insert("insertArticletag", article_tag);
os.close();
}
示例11: addProblem
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean addProblem(SqlSession sqlSession, ProblemEntity problemEntity) {
// 添加問題
int insertNum = sqlSession.insert("problem.insertProblem",problemEntity);
return insertNum == 1;
}
示例12: addAttachment
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean addAttachment(SqlSession sqlSession,AttachmentEntity attachmentEntity) {
int insertNum = sqlSession.insert("attachment.addAttachment",attachmentEntity);
return insertNum == 1;
}
示例13: addContest
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean addContest(SqlSession sqlSession,ContestEntity contestEntity){
return sqlSession.insert("contest.addContest",contestEntity) == 1;
}
示例14: add
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
public boolean add(SqlSession sqlSession, ContestUserEntity contestUserInfoEntity){
return sqlSession.insert("contestUser.insert",contestUserInfoEntity) == 1;
}
示例15: insertUserlogin
import org.apache.ibatis.session.SqlSession; //導入方法依賴的package包/類
@Override
public void insertUserlogin(Userlogin userlogin) {
SqlSession os = sqlSessionFactory.openSession();
os.insert("insertUserlogin", userlogin);
os.close();
}