code: public void commit(boolean force) {
          if (checkSession()) {
              return;
          }
  
          if (log.isDebugEnabled()) {
              ToStringBuilder tsb = new ToStringBuilder(String.format("Committing transactional %s@%x",
                      sqlSession.getClass().getSimpleName(),sqlSession.hashCode()));
              tsb.append("force", force);
              log.debug(tsb.toString());
          }
  
          sqlSession.commit(force);
      }
docs: Flushes batch statements and commits database connection.
  
  @param force forces connection commit