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