public <T> int[][] execute(ParameterizedBatchCommand<T> command) throws MetaException {
    if (!shouldExecute(command)) {
      return null;
    }
    try {      
      int maxBatchSize = MetastoreConf.getIntVar(conf, MetastoreConf.ConfVars.JDBC_MAX_BATCH_SIZE);
      return getJdbcTemplate().getJdbcTemplate().batchUpdate(
          command.getParameterizedQueryString(databaseProduct),
          command.getQueryParameters(),
          maxBatchSize,
          command.getPreparedStatementSetter()
      );      
    } catch (Exception e) {
      handleError(command, e);
      throw e;
    }
  }
Executes a {@link org.springframework.jdbc.core.JdbcTemplate#batchUpdate(String, Collection, int, ParameterizedPreparedStatementSetter)} 
call using the query string obtained from {@link ParameterizedBatchCommand#getParameterizedQueryString(DatabaseProduct)},
the parameters obtained from {@link ParameterizedBatchCommand#getQueryParameters()}, and the
{@link org.springframework.jdbc.core.PreparedStatementSetter} obtained from 
{@link ParameterizedBatchCommand#getPreparedStatementSetter()} methods. The batchSize is coming from the 
{@link Configuration} object.

@param command The {@link ParameterizedBatchCommand} to execute.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/MultiDataSourceJdbcResource.java