Package er.extensions.eof.qualifiers

Examples of er.extensions.eof.qualifiers.ERXInQualifier


    String key = qual.key();
    Object value = NSTranslator.instance.toNeutralValue(qual.value(), entity.attributeNamed(key));
   
    if (operator.equals(EOKeyValueQualifier.QualifierOperatorEqual)) {
      if (qual instanceof ERXInQualifier) {
        ERXInQualifier inQualifier = (ERXInQualifier) qual;
        List<ClauseType> clauses = new ArrayList<ClauseType>();
       
        for (Object o : inQualifier.values()) {
          clauses.add(comparison(entity, key, ComparisonOperator.EQUAL, o));
        }
        return joinWithOrOperator(clauses);
      } else {
        return comparison(entity, key, ComparisonOperator.EQUAL, value);
View Full Code Here


            NSArray primaryKeys = primaryKeys();
            NSArray primaryKeysToFetch = primaryKeys.subarrayWithRange(range);

            log.debug("Of primaryKey count: " + primaryKeys.count() + " fetching range: " + range + " which is: " + primaryKeysToFetch.count());

            ERXInQualifier qual = new ERXInQualifier(primaryKeyAttributeName, primaryKeysToFetch);
            EOFetchSpecification batchFS = new EOFetchSpecification(fetchSpecification.entityName(), qual, fetchSpecification.sortOrderings());
            if (fetchSpecification.prefetchingRelationshipKeyPaths() != null) {
              batchFS.setPrefetchingRelationshipKeyPaths(fetchSpecification.prefetchingRelationshipKeyPaths());
            }
            batchFS.setRefreshesRefetchedObjects(fetchSpecification.refreshesRefetchedObjects());
View Full Code Here

   * @param values
   *            the values
   * @return an EOKeyValueQualifier
   */
  public static ERXKeyValueQualifier hasValues(String key, NSArray values) {
    return new ERXInQualifier(key, values);
  }
View Full Code Here

TOP

Related Classes of er.extensions.eof.qualifiers.ERXInQualifier

Copyright © 2018 www.massapicom. 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.