Examples of JoinedQueryResult


Examples of com.fathomdb.jpa.impl.JoinedQueryResult

      int modelId = db.mapToValue(modelClass.getItemType());
      int serviceId = db.mapToValue(modelClass.getServiceType());

      String filterKey = null;

      JoinedQueryResult result = db.queries.listItems(serviceId, modelId, projectId, filterKey);

      List<T> items = mapItemsAndTags(project, secretProvider, db, result);
      return applyFilter(items, filter);
    } catch (SQLException e) {
      throw new RepositoryException("Error fetching items", e);
View Full Code Here

Examples of com.fathomdb.jpa.impl.JoinedQueryResult

    DbHelper db = new DbHelper(project);

    try {
      // TODO: Push-down logic for item selection as well

      JoinedQueryResult result = db.listRoots();

      List<ItemBase> roots = mapItemsAndTags(project, secretProvider, db, result);

      for (ItemBase root : roots) {
        // A little bit of paranoia
View Full Code Here

Examples of com.fathomdb.jpa.impl.JoinedQueryResult

      // TODO: Use this logic for item selection as well

      List<Tag> requiredTags = filter.getRequiredTags();

      JoinedQueryResult result;
      if (!requiredTags.isEmpty()) {
        Tag requiredTag = requiredTags.get(0);

        int projectId = db.mapToValue(project);
        result = db.queries.listAllItemsWithTag(projectId, projectId, requiredTag.getKey(),
View Full Code Here

Examples of com.fathomdb.jpa.impl.JoinedQueryResult

    int modelId = db.mapToValue(itemType);
    int serviceId = db.mapToValue(serviceType);

    String filterKey = itemId.getKey();

    JoinedQueryResult result = db.queries.listItems(serviceId, modelId, projectId, filterKey);

    List<T> items = mapItemsAndTags(project, secretProvider, db, result);

    if (items.size() == 0) {
      return 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.