Examples of addQuery()


Examples of edu.brown.workload.TransactionTrace.addQuery()

        Statement catalog_stmt = this.getStatement(catalog_proc, "GetData");
        Object query_params[] = new Object[] { 1l, 1l, 4l, 0l, 5l };
       
        TransactionTrace txn_trace = new TransactionTrace(1001l, catalog_proc, txn_params);
        QueryTrace query_trace = new QueryTrace(catalog_stmt, query_params, 0);
        txn_trace.addQuery(query_trace);
        txn_trace.stop();
       
        p_estimator.getAllPartitions(partitions, txn_trace);
        assertNotNull(partitions);
        assertEquals(partitions.toString(), 1, partitions.size());
View Full Code Here

Examples of factOrFiction.views.IQueryAdapter.addQuery()

  public void run(IAction action) {
    IQueryAdapter adapter = (IQueryAdapter)view.getAdapter(IQueryAdapter.class);
   
    if(adapter!=null) {
      if(action.isChecked())
        adapter.addQuery(query);
      else
        adapter.removeQuery(query);
    }
  }
View Full Code Here

Examples of it.eng.qbe.query.catalogue.QueryCatalogue.addQuery()

   
      for(int i = 0; i < queriesJSON.length(); i++) {
        queryJSON = queriesJSON.getJSONObject(i);
        query = SerializerFactory.getDeserializer("application/json").deserializeQuery(queryJSON, getDataSource());
               
        catalogue.addQuery(query);
      }
    } catch (Throwable e) {
      throw new SpagoBIEngineRuntimeException("Impossible to deserialize catalogue", e);
    }
   
View Full Code Here

Examples of org.apache.cayenne.map.DataMap.addQuery()

            query = new EOSQLQuery(entity, queryPlist);
        } else {
            query = new EOQuery(entity, queryPlist);
        }
        query.setName(entity.qualifiedQueryName(queryName));
        dataMap.addQuery(query);
       
        return query;
    }

    /**
 
View Full Code Here

Examples of org.apache.cayenne.query.QueryChain.addQuery()

        Artist a1 = context.newObject(Artist.class);
        a1.setArtistName("X");
        context.commitChanges();

        QueryChain chain = new QueryChain();
        chain.addQuery(new SelectQuery(Artist.class));
        chain.addQuery(new SelectQuery(Artist.class));

        QueryResponse r = context.performGenericQuery(chain);

        // data comes back as datarows
View Full Code Here

Examples of org.apache.cayenne.query.QueryChain.addQuery()

        a1.setArtistName("X");
        context.commitChanges();

        QueryChain chain = new QueryChain();
        chain.addQuery(new SelectQuery(Artist.class));
        chain.addQuery(new SelectQuery(Artist.class));

        QueryResponse r = context.performGenericQuery(chain);

        // data comes back as datarows
        assertEquals(2, r.size());
View Full Code Here

Examples of org.apache.cayenne.query.QueryChain.addQuery()

        deleteTestData();
    }
   
    public void testMatchingOnSuperAttributes() {
        QueryChain insert = new QueryChain();
        insert
                .addQuery(new SQLTemplate(
                        AbstractPerson.class,
                        "INSERT INTO PERSON (PERSON_ID, NAME, PERSON_TYPE) VALUES (1, 'E1', 'EE')"));
        insert
                .addQuery(new SQLTemplate(
View Full Code Here

Examples of org.apache.cayenne.query.QueryChain.addQuery()

        QueryChain insert = new QueryChain();
        insert
                .addQuery(new SQLTemplate(
                        AbstractPerson.class,
                        "INSERT INTO PERSON (PERSON_ID, NAME, PERSON_TYPE) VALUES (1, 'E1', 'EE')"));
        insert
                .addQuery(new SQLTemplate(
                        AbstractPerson.class,
                        "INSERT INTO PERSON (PERSON_ID, NAME, PERSON_TYPE) VALUES (2, 'E2', 'EM')"));
        createDataContext().performGenericQuery(insert);
       
View Full Code Here

Examples of org.apache.cayenne.query.QueryChain.addQuery()

        assertEquals("E2", results.get(0).getName());
    }
   
    public void testMatchingOnSuperAttributesWithPrefetch() {
        QueryChain insert = new QueryChain();
        insert
                .addQuery(new SQLTemplate(
                        AbstractPerson.class,
                        "INSERT INTO PERSON (PERSON_ID, NAME, PERSON_TYPE) VALUES (1, 'E1', 'EE')"));
        insert
                .addQuery(new SQLTemplate(
View Full Code Here

Examples of org.apache.cayenne.query.QueryChain.addQuery()

        QueryChain insert = new QueryChain();
        insert
                .addQuery(new SQLTemplate(
                        AbstractPerson.class,
                        "INSERT INTO PERSON (PERSON_ID, NAME, PERSON_TYPE) VALUES (1, 'E1', 'EE')"));
        insert
                .addQuery(new SQLTemplate(
                        AbstractPerson.class,
                        "INSERT INTO PERSON (PERSON_ID, NAME, PERSON_TYPE) VALUES (2, 'E2', 'EM')"));
        createDataContext().performGenericQuery(insert);
       
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.