public PartitioningPolicy buildPolicy() {
RangePartitioningPolicy policy = new RangePartitioningPolicy();
super.buildPolicy(policy);
for (RangePartitionMetadata partition : getPartitions()) {
policy.addPartition(new RangePartition(partition.getConnectionPool(), getPartitionValueType().getName(), partition.getStartValue(), partition.getEndValue()));
}
return policy;
}