Examples of Query()


Examples of com.googlecode.gql4j.GqlQuery.query()

  @Override
  public List<BlobInfoDTO> load(String filterStr) throws YaacException {
    // step 1 : parse query
    String strQuery = "select * from " + Blobstore.BLOB_INFO_KIND + " " + filterStr;
    GqlQuery gql = new GqlQuery(strQuery);
    Query query = gql.query();
   
    logger.info("loading blobs, filter = " + filterStr);
    logger.info("parsed query = " + strQuery);
   
    // step 2 : validate query
View Full Code Here

Examples of com.googlecode.objectify.Objectify.query()

     * @return Collection of Message
     */
    public Collection<Message> getAll() {
        final Objectify service = getService();

        return(service.query(Message.class).list());
    }

    /**
     * @param message
     */
 
View Full Code Here

Examples of com.haulmont.yarg.util.db.QueryRunner.query()

                } else {
                    resultingParams.addAll(queryParameter.getMultipleValues());
                }
            }

            resList = runner.query(pack.getQuery(), resultingParams.toArray(), new ResultSetHandler<List>() {
                @Override
                public List handle(ResultSet rs) throws SQLException {
                    List<Object[]> resList = new ArrayList<Object[]>();

                    while (rs.next()) {
View Full Code Here

Examples of com.hazelcast.query.impl.IndexService.query()

        List<Integer> initialPartitions = mapService.getOwnedPartitions();
        IndexService indexService = mapService.getMapContainer(name).getIndexService();
        Set<QueryableEntry> entries = null;
        // TODO: fix
        if (!getNodeEngine().getPartitionService().hasOnGoingMigration()) {
            entries = indexService.query(predicate);
        }
        result = new QueryResult();
        if (entries != null) {
            for (QueryableEntry entry : entries) {
                result.add(new QueryResultEntryImpl(entry.getKeyData(), entry.getKeyData(), entry.getValueData()));
View Full Code Here

Examples of com.iCo6.util.org.apache.commons.dbutils.QueryRunner.query()

                QueryRunner run = new QueryRunner();

                try {
                    try{
                        run.query(old, "SELECT * FROM " + table, new ResultSetHandler(){
                            public Object handle(ResultSet rs) throws SQLException {
                                Account current = null;
                                Boolean next = rs.next();

                                if(next)
View Full Code Here

Examples of com.inmethod.grid.IDataSource.query()

      IDataSource dataSource = getDataSource();

      int oldItemCount = realItemCount;

      // query for items
      dataSource.query(wrapQuery(query), queryResult);

      // process the QueryResult
      queryResult.process(dataSource);

      // check for situation when we didn't get any items, but we know the real count
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.query()

        if(reopen){
            sessionContainer.close();
            sessionContainer = getContainerForFile(testFile);
        }

        List list = sessionContainer.query(ObjectA.class);
        if(list.size()!=1){
            throw new RuntimeException();
        }
        if(list.get(0).getClass() != ObjectA.class){
            throw new RuntimeException();
View Full Code Here

Examples of com.mobixess.jodb.soda.api.ObjectContainer.query()

            enableIndex(objectContainer);
        }
        fillTestData(objectContainer);
        benchmarkResults._refillTime = System.currentTimeMillis() - startTime;
        //form query for all elements
        Query query = objectContainer.query();
        query.constrain(BenchmarkObject.class);
        query.descend("_val1").constrain(Integer.MIN_VALUE).greater();
        query.descend("_val1").constrain(Integer.MAX_VALUE).smaller();
        if(sort){
            benchmarkResults._sorted = true;
View Full Code Here

Examples of com.opengamma.engine.marketdata.MarketDataSnapshot.query()

                 snapshot.query(ImmutableSet.of(SPEC1, SPEC2, SPEC3)));
  }

  private static MarketDataSnapshot historicalSnapshot1() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(1d);
    when(snapshot.query(SPEC2)).thenReturn(2d);
    when(snapshot.query(SPEC3)).thenReturn(4d);
    return snapshot;
  }
View Full Code Here

Examples of com.opensymphony.workflow.Workflow.query()

      protected Workflow createWorkflow(String caller) throws WorkflowException {
        Workflow workflow = (Workflow) ctl.getMock();

        workflow.setConfiguration(OsWorkflowTemplateTests.this.configuration);
        ctl.setVoidCallable();
        workflow.query(query);
        ctl.setReturnValue(mockResult);
        ctl.replay();

        return workflow;
      }
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.