Examples of QueryEngine


Examples of org.apache.cayenne.access.QueryEngine

        }

        // resolve entity
        if (query.getRoot() instanceof String) {

            QueryEngine parent = path.firstInstanceOf(QueryEngine.class);

            if (parent != null) {
                return parent.getEntityResolver().getObjEntity((String) query.getRoot());
            }
        }

        return null;
    }
View Full Code Here

Examples of org.apache.cayenne.access.QueryEngine

        }

        // resolve entity
        if (query.getRoot() instanceof String) {

            QueryEngine parent = path.firstInstanceOf(QueryEngine.class);

            if (parent != null) {
                return parent.getEntityResolver().getObjEntity((String) query.getRoot());
            }
        }

        return null;
    }
View Full Code Here

Examples of org.apache.cayenne.access.QueryEngine

        }

        // resolve entity
        if (query.getRoot() instanceof String) {

            QueryEngine parent = path.firstInstanceOf(QueryEngine.class);

            if (parent != null) {
                return parent.getEntityResolver().getObjEntity((String) query.getRoot());
            }
        }

        return null;
    }
View Full Code Here

Examples of org.apache.clerezza.rdf.core.sparql.QueryEngine

   *            the default graph against which to execute the query if not
   *            FROM clause is present
   * @return the resulting ResultSet, Graph or Boolean value
   */
  public Object executeSparqlQuery(Query query, TripleCollection defaultGraph) {
    final QueryEngine queryEngine = this.queryEngine;
    if (queryEngine != null) {
      return queryEngine.execute(this, defaultGraph, query);
    } else {
      throw new NoQueryEngineException();
    }
  }
View Full Code Here

Examples of org.apache.clerezza.rdf.core.sparql.QueryEngine

   *            FROM clause is present
   * @return the resulting ResultSet
   */
  public ResultSet executeSparqlQuery(SelectQuery query,
      TripleCollection defaultGraph) {
    final QueryEngine queryEngine = this.queryEngine;
    if (queryEngine != null) {
      return (ResultSet) queryEngine.execute(this, defaultGraph, query);
    } else {
      throw new NoQueryEngineException();
    }
  }
View Full Code Here

Examples of org.apache.clerezza.rdf.core.sparql.QueryEngine

   *            FROM clause is present
   * @return the boolean value this query evaluates to
   */
  public boolean executeSparqlQuery(AskQuery query,
      TripleCollection defaultGraph) {
    final QueryEngine queryEngine = this.queryEngine;
    if (queryEngine != null) {
      return (Boolean) queryEngine.execute(this, defaultGraph, query);
    } else {
      throw new NoQueryEngineException();
    }
  }
View Full Code Here

Examples of org.apache.clerezza.rdf.core.sparql.QueryEngine

   *            FROM clause is present
   * @return the resulting Graph
   */
  public Graph executeSparqlQuery(DescribeQuery query,
      TripleCollection defaultGraph) {
    final QueryEngine queryEngine = this.queryEngine;
    if (queryEngine != null) {
      return (Graph) queryEngine.execute(this, defaultGraph, query);
    } else {
      throw new NoQueryEngineException();
    }
  }
View Full Code Here

Examples of org.apache.clerezza.rdf.core.sparql.QueryEngine

   *            FROM clause is present
   * @return the resulting Graph
   */
  public Graph executeSparqlQuery(ConstructQuery query,
      TripleCollection defaultGraph) {
    final QueryEngine queryEngine = this.queryEngine;
    if (queryEngine != null) {
      return (Graph) queryEngine.execute(this, defaultGraph, query);
    } else {
      throw new NoQueryEngineException();
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.core.query.lucene.join.QueryEngine

        long time = System.nanoTime();
        final QueryResult result = sessionContext.getSessionState().perform(
                new SessionOperation<QueryResult>() {
                    public QueryResult perform(SessionContext context)
                            throws RepositoryException {
                        final QueryEngine engine = new QueryEngine(
                                sessionContext.getSessionImpl(), lqf, variables);
                        return engine.execute(getColumns(), getSource(),
                                getConstraint(), getOrderings(), offset, limit);
                    }

                    public String toString() {
                        return "query.execute(" + statement + ")";
View Full Code Here

Examples of org.apache.jackrabbit.core.query.lucene.join.QueryEngine

                variables);
        setInitialized();
    }

    public QueryResult execute() throws RepositoryException {
        QueryEngine engine = new QueryEngine(
                sessionContext.getSessionImpl(), lqf, variables);
        return engine.execute(
                getColumns(), getSource(), getConstraint(),
                getOrderings(), offset, limit);
    }
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.