/**
   * Retrieve objects according to the <code>subscriptionsForMessageTypeAndUser</code> fetch
   * specification.
   *
   * @param context The editing context to use
   * @param messageTypeBinding fetch spec parameter
   * @param userBinding fetch spec parameter
   * @return an NSArray of the entities retrieved
   */
  public static NSArray<UserMessageSubscription> subscriptionsForMessageTypeAndUser(
      EOEditingContext context, String messageTypeBinding, org.webcat.core.User userBinding) {
    EOFetchSpecification spec =
        WCFetchSpecification.fetchSpecificationNamed(
            "subscriptionsForMessageTypeAndUser", "UserMessageSubscription");

    NSMutableDictionary<String, Object> bindings = new NSMutableDictionary<String, Object>();

    if (messageTypeBinding != null) {
      bindings.setObjectForKey(messageTypeBinding, "messageType");
    }
    if (userBinding != null) {
      bindings.setObjectForKey(userBinding, "user");
    }
    spec = spec.fetchSpecificationWithQualifierBindings(bindings);

    NSArray<UserMessageSubscription> objects = objectsWithFetchSpecification(context, spec);
    if (log.isDebugEnabled()) {
      log.debug(
          "subscriptionsForMessageTypeAndUser(ec"
              + ", "
              + messageTypeBinding
              + ", "
              + userBinding
              + "): "
              + objects);
    }
    return objects;
  }
 public static NSArray<edu.umich.marketplace.eof.Category> fetchTopCategories(
     EOEditingContext editingContext, NSDictionary<String, Object> bindings) {
   EOFetchSpecification fetchSpec =
       EOFetchSpecification.fetchSpecificationNamed("topCategories", "Category");
   fetchSpec = fetchSpec.fetchSpecificationWithQualifierBindings(bindings);
   return (NSArray<edu.umich.marketplace.eof.Category>)
       editingContext.objectsWithFetchSpecification(fetchSpec);
 }
 public static NSArray<org.pachyderm.foundation.eof.PDBPresentation> fetchAllPresentations(
     EOEditingContext editingContext, NSDictionary<String, Object> bindings) {
   EOFetchSpecification fetchSpec =
       EOFetchSpecification.fetchSpecificationNamed(
           "allPresentations", _PDBPresentation.ENTITY_NAME);
   fetchSpec = fetchSpec.fetchSpecificationWithQualifierBindings(bindings);
   return (NSArray<org.pachyderm.foundation.eof.PDBPresentation>)
       editingContext.objectsWithFetchSpecification(fetchSpec);
 }
 public static NSArray<edu.umich.marketplace.eof.Category> fetchSubCategories(
     EOEditingContext editingContext, edu.umich.marketplace.eof.Category parentBinding) {
   EOFetchSpecification fetchSpec =
       EOFetchSpecification.fetchSpecificationNamed("subCategories", "Category");
   NSMutableDictionary<String, Object> bindings = new NSMutableDictionary<String, Object>();
   bindings.takeValueForKey(parentBinding, "parent");
   fetchSpec = fetchSpec.fetchSpecificationWithQualifierBindings(bindings);
   return (NSArray<edu.umich.marketplace.eof.Category>)
       editingContext.objectsWithFetchSpecification(fetchSpec);
 }
 public static NSArray<org.pachyderm.foundation.eof.PDBPresentation>
     fetchPresentationNamesAndIdentities(EOEditingContext editingContext, String authorBinding) {
   EOFetchSpecification fetchSpec =
       EOFetchSpecification.fetchSpecificationNamed(
           "presentationNamesAndIdentities", _PDBPresentation.ENTITY_NAME);
   NSMutableDictionary<String, Object> bindings = new NSMutableDictionary<String, Object>();
   bindings.takeValueForKey(authorBinding, "author");
   fetchSpec = fetchSpec.fetchSpecificationWithQualifierBindings(bindings);
   return (NSArray<org.pachyderm.foundation.eof.PDBPresentation>)
       editingContext.objectsWithFetchSpecification(fetchSpec);
 }