code: public void restoreTable(String tableName, String tempTableName) throws SQLException {
          LOG.debug("Restore table {} from {}", tableName, tempTableName);
          try {
              this.setForeignKeyCheckEnabled(false);
              this.truncateTable(tableName);
              final String sql = "INSERT INTO " + tableName + " SELECT * FROM " + tempTableName + ";";
              this.executeUpdate(sql);
          } finally {
              this.setForeignKeyCheckEnabled(true);
          }
      }
docs: Restores table content.
  
  @param tableName     table to be restored
  @param tempTableName temporary table name
  
  @throws SQLException for any issue