Examples of qualifier()


Examples of com.webobjects.eocontrol.EOFetchSpecification.qualifier()

      if (relationship.isToManyToOne() && destinationEntity.isAbstractEntity() && fetchSpec.prefetchingRelationshipKeyPaths().containsObject(relationship.name())) {
        EOFetchSpecification newFetchSpec = (EOFetchSpecification) fetchSpec.clone();
        String inverseName = relationship.anyInverseRelationship().definition(); // from destination to intermediate
        EOQualifier singleTableRestrict = destinationEntity._singleTableRestrictingQualifier();
        EOQualifier migratedRestrict = EOQualifierSQLGeneration.Support._qualifierMigratedFromEntityRelationshipPath(singleTableRestrict, destinationEntity, inverseName);
        newFetchSpec.setQualifier(new EOAndQualifier(new NSArray(new Object[]{newFetchSpec.qualifier(),migratedRestrict})));
        fetchSpec = newFetchSpec;
      }
    }
    return fetchSpec;
  }
View Full Code Here

Examples of com.webobjects.eocontrol.EOFetchSpecification.qualifier()

          int limit = ERXValueUtilities.intValueWithDefault(context().request().stringFormValueForKey(fetchLimitKey), 200);
          fs.setFetchLimit(limit);
        } else {
          fs = EOFetchSpecification.fetchSpecificationNamed(fsName, entityName);
          NSMutableDictionary bindings = new NSMutableDictionary();
          Enumeration e = fs.qualifier().bindingKeys().objectEnumerator();
          while(e.hasMoreElements()) {
            String key = (String)e.nextElement();
            String formValue = context().request().stringFormValueForKey(key);
            if(formValue != null) {
              bindings.setObjectForKey(formValue, key);
View Full Code Here

Examples of com.webobjects.eocontrol.EOFetchSpecification.qualifier()

        unboundFetchSpec = fetchSpecificationNamed(ec, fetchSpecName);
        if (unboundFetchSpec == null) {
            return null;
        }
        boundFetchSpec = unboundFetchSpec.fetchSpecificationWithQualifierBindings(bindings);
        return objectCountWithQualifier(ec, boundFetchSpec.qualifier());
    }

    /**
     * Constructs a fetch specification that will only fetch the primary
     * keys for a given qualifier.
View Full Code Here

Examples of com.webobjects.eocontrol.EONotQualifier.qualifier()

        EONotQualifier aq = (EONotQualifier) q;
        if (!postOrder) {
          result = traverseNotQualifier(aq) ? Boolean.TRUE : Boolean.FALSE;
        }
        if (result == null || result.booleanValue()) {
          result = traverseQualifier((EOQualifierEvaluation) aq.qualifier(), postOrder) ? Boolean.TRUE : Boolean.FALSE;
        }
        if (postOrder && (result == null || result.booleanValue())) {
          result = traverseNotQualifier(aq) ? Boolean.TRUE : Boolean.FALSE;
        }
      }
View Full Code Here

Examples of com.webobjects.eocontrol.EONotQualifier.qualifier()

                    }
                }
            } else if (q instanceof EONotQualifier) {
                EONotQualifier nq = (EONotQualifier)q;
                cb.traverseNotQualifier((EONotQualifier)q);
                result = traverseQualifier(nq.qualifier(),cb) ? Boolean.TRUE : Boolean.FALSE;
            } else if (q instanceof EOKeyValueQualifier) {
                result=cb.traverseKeyValueQualifier((EOKeyValueQualifier)q) ? Boolean.TRUE : Boolean.FALSE;
            } else if (q instanceof EOKeyComparisonQualifier) {
                result=cb.traverseKeyComparisonQualifier((EOKeyComparisonQualifier)q) ? Boolean.TRUE : Boolean.FALSE;
            } else if (q instanceof BooleanQualifier) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOOrQualifier.qualifier()

        EONotQualifier aq = (EONotQualifier) q;
        if (!postOrder) {
          result = traverseNotQualifier(aq) ? Boolean.TRUE : Boolean.FALSE;
        }
        if (result == null || result.booleanValue()) {
          result = traverseQualifier((EOQualifierEvaluation) aq.qualifier(), postOrder) ? Boolean.TRUE : Boolean.FALSE;
        }
        if (postOrder && (result == null || result.booleanValue())) {
          result = traverseNotQualifier(aq) ? Boolean.TRUE : Boolean.FALSE;
        }
      }
View Full Code Here

Examples of org.agorava.api.oauth.application.OAuthAppSettingsBuilder.qualifier()

                } catch (Exception e) {
                    pp.addDefinitionError(new AgoravaException("Unable to create Settings Builder with class " +
                            builderClass, e));
                }

                builderOAuthApp.qualifier(qual)
                        .params(app.params());

                pp.setProducer(new OAuthAppSettingsProducerWithBuilder(builderOAuthApp, qual));
            } else
                pp.addDefinitionError(new AgoravaException("@OAuthApplication are only supported on Field. Agorava cannot " +
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional.qualifier()

        }

        Class<? extends Annotation> qualifierClass = Default.class;
        if (transactionalAnnotation != null)
        {
            qualifierClass = transactionalAnnotation.qualifier();
        }

        Set<Bean<?>> entityManagerBeans = beanManager.getBeans(EntityManager.class, new AnyLiteral());
        if (entityManagerBeans == null)
        {
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional.qualifier()

        }

        Class<? extends Annotation> qualifierClass = Default.class;
        if (transactionalAnnotation != null)
        {
            qualifierClass = transactionalAnnotation.qualifier();
        }

        Set<Bean<?>> entityManagerBeans = beanManager.getBeans(EntityManager.class, new AnyLiteral());
        if (entityManagerBeans == null)
        {
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.jpa.api.Transactional.qualifier()

        }

        Class<? extends Annotation> qualifierClass = Default.class;
        if (transactionalAnnotation != null)
        {
            qualifierClass = transactionalAnnotation.qualifier();
        }

        Set<Bean<?>> entityManagerBeans = beanManager.getBeans(EntityManager.class, new AnyLiteral());
        if (entityManagerBeans == null)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.