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