Package com.fathomdb.jpa.impl

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


    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

      // 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

    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

Related Classes of com.fathomdb.jpa.impl.JoinedQueryResult

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.