@Override
  public void setCatName(String catName) {
    partitionSpec.setCatName(catName);
    for (Partition partition : partitionSpec.getPartitionList().getPartitions()) {
      partition.setCatName(catName);
    }
  }
PartitionSpecProxy implementation that composes a List of Partitions.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/partition/spec/PartitionListComposingSpecProxy.java