Examples of DynamicQuery


Examples of org.apache.juddi.query.util.DynamicQuery

      return keysIn;
   
    if (names == null || names.size() == 0)
      return keysIn;
   
    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendConditions(dynamicQry, fq, names);
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);

    return getQueryResult(em, dynamicQry, keysIn, entityAlias + "." + keyName);
  }
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

    List<?> restrictionList = keysIn;
    List<?> curResult = null;
    for (KeyedReferenceGroup keyedRefGroup : keyedRefGroups) {
      String curTModelKey = keyedRefGroup.getTModelKey();
     
      DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
      appendConditions(dynamicQry, fq, keyedRefGroup);
      if (restrictions != null && restrictions.length > 0)
        dynamicQry.AND().pad().appendGroupedAnd(restrictions);
     

      if (fq.isOrLikeKeys()) {
        if (!curTModelKey.equals(prevTModelKey)) {
          if (count != 0) {
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

   
    List<String> tmodelKeys = tModels.getTModelKey();
    if (tmodelKeys == null || tmodelKeys.size() == 0)
      return keysIn;
   
    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendConditions(dynamicQry, fq, tmodelKeys);
   
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);
   
    return getQueryResult(em, dynamicQry, keysIn, ENTITY_ALIAS + "." + KEY_NAME);
  }
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

   
    // If keysIn is null or empty, then nothing to fetch.
    if ((keysIn == null) || (keysIn.size() == 0))
      return Collections.emptyList();

    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendSortTables(dynamicQry);
    dynamicQry.appendInListWithAnd(ENTITY_ALIAS + "." + KEY_NAME, keysIn);
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);
   
    appendSortCriteria(dynamicQry, fq);

    log.debug(dynamicQry);
   
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

   
    List<KeyedReference> keyedRefs = identifiers.getKeyedReference();
    if (keyedRefs == null || keyedRefs.size() == 0)
      return keysIn;
   
    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendConditions(dynamicQry, fq, keyedRefs);
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);

    return getQueryResult(em, dynamicQry, keysIn, entityAlias + "." + keyName);
  }
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

   
    List<DiscoveryURL> discURLlist = discURLs.getDiscoveryURL();
    if (discURLlist == null || discURLlist.size() == 0)
      return keysIn;
   
    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendConditions(dynamicQry, fq, discURLlist);
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);

    return getQueryResult(em, dynamicQry, keysIn, ENTITY_ALIAS + "." + KEY_NAME);
  }
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

        keyedRefs.add((KeyedReference)elem);
    }
    if (keyedRefs.size() == 0)
      return keysIn;   
   
    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendConditions(dynamicQry, fq, keyedRefs);
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);

    return getQueryResult(em, dynamicQry, keysIn, entityAlias + "." + keyName);
  }
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

   
    // If keysIn is null or empty, then nothing to fetch.
    if ((keysIn == null) || (keysIn.size() == 0))
      return Collections.emptyList();

    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendSortTables(dynamicQry);
    dynamicQry.appendInListWithAnd(ENTITY_ALIAS + "." + KEY_NAME, keysIn);
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);

    appendSortCriteria(dynamicQry, fq);

    log.debug(dynamicQry);
   
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

   
    List<String> tmodelKeys = tModels.getTModelKey();
    if (tmodelKeys == null || tmodelKeys.size() == 0)
      return keysIn;
   
    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendConditions(dynamicQry, fq, tmodelKeys);
    if (parentKey != null && parentKey.length() > 0)
      dynamicQry.AND().pad().appendGroupedAnd(new DynamicQuery.Parameter(BindingTemplateQuery.ENTITY_ALIAS + "." + BindingTemplateQuery.KEY_NAME_PARENT, parentKey, DynamicQuery.PREDICATE_EQUALS));
   
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);
   
    return getQueryResult(em, dynamicQry, keysIn, ENTITY_ALIAS + "." + KEY_NAME);
  }
View Full Code Here

Examples of org.apache.juddi.query.util.DynamicQuery

      return keysIn;
   
    if (name == null)
      return keysIn;
   
    DynamicQuery dynamicQry = new DynamicQuery(selectSQL);
    appendConditions(dynamicQry, fq, name);
    // Since this is a tModel, don't need to search the lazily deleted ones.
    dynamicQry.AND().pad().appendGroupedAnd(new DynamicQuery.Parameter(ENTITY_ALIAS + ".deleted", new Boolean(false), DynamicQuery.PREDICATE_EQUALS));
    if (restrictions != null && restrictions.length > 0)
      dynamicQry.AND().pad().appendGroupedAnd(restrictions);
   
    return getQueryResult(em, dynamicQry, keysIn, ENTITY_ALIAS + "." + KEY_NAME);
  }
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.