@Override public PartitionKeyGroup deletePartitionKeyGroup(PartitionKeyGroupKey partitionKeyGroupKey){
  partitionKeyGroupHelper.validatePartitionKeyGroupKey(partitionKeyGroupKey);
  PartitionKeyGroupEntity partitionKeyGroupEntity=partitionKeyGroupDaoHelper.getPartitionKeyGroupEntity(partitionKeyGroupKey);
  if (businessObjectFormatDao.getBusinessObjectFormatCount(partitionKeyGroupEntity) > 0L) {
    throw new IllegalArgumentException(String.format("Can not delete \"%s\" partition key group since it is being used by a business object format.",partitionKeyGroupKey.getPartitionKeyGroupName()));
  }
  partitionKeyGroupDao.delete(partitionKeyGroupEntity);
  return createPartitionKeyGroupFromEntity(partitionKeyGroupEntity);
}

@ Override public PartitionKeyGroup deletePartitionKeyGroup ( PartitionKeyGroupKey partitionKeyGroupKey ) { partitionKeyGroupHelper . validatePartitionKeyGroupKey ( partitionKeyGroupKey ) ; PartitionKeyGroupEntity partitionKeyGroupEntity = partitionKeyGroupDaoHelper . getPartitionKeyGroupEntity ( partitionKeyGroupKey ) ; if ( businessObjectFormatDao . getBusinessObjectFormatCount ( partitionKeyGroupEntity ) > 0L ) { throw new IllegalArgumentException ( String . format ( "Can not delete \"%s\" partition key group since it is being used by a business object format." , partitionKeyGroupKey . getPartitionKeyGroupName ( ) ) ) ; } partitionKeyGroupDao . delete ( partitionKeyGroupEntity ) ; return createPartitionKeyGroupFromEntity ( partitionKeyGroupEntity ) ; }
deletes an existing partition key group by key .
