Package org.apache.ibatis.session

Examples of org.apache.ibatis.session.SqlSession.commit()


  public void save(ActionPlanDto actionPlanDto) {
    SqlSession session = mybatis.openSession(false);
    try {
      session.getMapper(ActionPlanMapper.class).insert(actionPlanDto);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here


  public void update(ActionPlanDto actionPlanDto) {
    SqlSession session = mybatis.openSession(false);
    try {
      session.getMapper(ActionPlanMapper.class).update(actionPlanDto);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void delete(String key) {
    SqlSession session = mybatis.openSession(false);
    try {
      session.getMapper(ActionPlanMapper.class).delete(key);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void insert(QualityGateConditionDto newQualityGate) {
    SqlSession session = myBatis.openSession(false);
    try {
      insert(newQualityGate, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void delete(QualityGateConditionDto qGate) {
    SqlSession session = myBatis.openSession(false);
    try {
      delete(qGate, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void update(QualityGateConditionDto qGate) {
    SqlSession session = myBatis.openSession(false);
    try {
      update(qGate, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void deleteConditionsWithInvalidMetrics() {
    SqlSession session = myBatis.openSession(false);
    try {
      deleteConditionsWithInvalidMetrics(session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

      .setUpdatedAt(creationDate);
    SqlSession session = myBatis.openSession(false);
    try {
      PermissionTemplateMapper mapper = session.getMapper(PermissionTemplateMapper.class);
      mapper.insert(permissionTemplate);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
    return permissionTemplate;
  }
View Full Code Here

    try {
      PermissionTemplateMapper mapper = session.getMapper(PermissionTemplateMapper.class);
      mapper.deleteUsersPermissions(templateId);
      mapper.deleteGroupsPermissions(templateId);
      mapper.delete(templateId);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

      .setUpdatedAt(now());
    SqlSession session = myBatis.openSession(false);
    try {
      PermissionTemplateMapper mapper = session.getMapper(PermissionTemplateMapper.class);
      mapper.update(permissionTemplate);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.