code: public <A> List<A> addToBatchGetKeys(Class<A> klass){
          this.addToBatch();
  
          if (this.currentBatchRecords == 0) {
              return this.connection.getKeys(klass);
          } else {
              return Collections.emptyList();
          }
      }
docs: Adds a set of parameters to this <code>Query</code>
  object's batch of commands and returns any generated keys. <br/>
  
  If maxBatchRecords is more than 0, executeBatch is called upon adding that many
  commands to the batch. This method will return any generated keys if <code>fetchGeneratedKeys</code> is set. <br/>
  
  The current number of batched commands is accessible via the <code>getCurrentBatchRecords()</code>
  method.