public EOFetchSpecification primaryKeyFetchSpecificationForEntity(EOEditingContext ec, EOQualifier eoqualifier, NSArray sortOrderings, NSArray additionalKeys) {
String entityName = entityName();
EOFetchSpecification fs = new EOFetchSpecification(entityName, eoqualifier, sortOrderings);
fs.setFetchesRawRows(true);
EOEntity entity = entity(ec);
NSMutableArray keys = new NSMutableArray(entity.primaryKeyAttributeNames());
if(additionalKeys != null) {
keys.addObjectsFromArray(additionalKeys);
}
if(entity.restrictingQualifier() != null) {
NSArray restrict = entity.restrictingQualifier().allQualifierKeys().allObjects();