"UPDATE partition_dimension_metadata set name=?,index_uri=?,db_type=? where id=?",
new int[]{Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.INTEGER});
int rows = j.update(creatorFactory
.newPreparedStatementCreator(parameters));
if (rows != 1)
throw new HiveRuntimeException("Unable to update Partition Dimension for id: " + partitionDimension.getId());
// dependencies
for (Resource r : partitionDimension.getResources())
new ResourceDao(getDataSource()).update(r);
}