* @param attributeName name of attribute in same entity to consider in order to determine uniqueness
* @return number of matching objects
*/
public static Integer objectCountUniqueWithQualifierAndAttribute(EOEditingContext ec, String entityName, EOQualifier qualifier, String attributeName) {
EOEntity entity = EOUtilities.entityNamed(ec, entityName);
EOAttribute attribute = entity.attributeNamed(attributeName);
EOAttribute aggregateAttribute = EOEnterpriseObjectClazz.objectCountUniqueAttribute(attribute);
return (Integer)_aggregateFunctionWithQualifierAndAggregateAttribute(ec, entityName, qualifier, aggregateAttribute);
}
/**