code: public void commit() {
          if (checkSession()) {
              return;
          }
  
          if (log.isDebugEnabled()) {
              log.debug(String.format("Committing transactional %s@%x",
                      sqlSession.getClass().getSimpleName(),
                      sqlSession.hashCode()));
          }
  
          sqlSession.commit();
      }
docs: Flushes batch statements and commits database connection.
  Note that database connection will not be committed if no updates/deletes/inserts were called.
  To force the commit call {@link #commit(boolean)}