Examples of Ask


Examples of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.Ask

    return d;
  }

  public Object visit(final ASTAskQuery node, final Object data) {
    final Ask a = new Ask(this.prefix);

    this.handleWhereClause(node, a);
    this.handleDatasetClause(node, a);

    return a;
View Full Code Here

Examples of net.ex337.scriptus.model.api.functions.Ask

    if(msg == null){
      throw new WrappedException(new ScriptusRuntimeException("invalid args to ask function, format: ask(question, [{who:who, timeout:duration}]"));
    }

    ContinuationPending pending = Context.getCurrentContext().captureContinuation();
    pending.setApplicationState(new Ask(msg, who, timeout, rnd.nextLong()));
    throw pending;
  }
View Full Code Here

Examples of org.apache.openjpa.trader.domain.Ask

        }
    }
   
    @Override
    public Ask ask(Trader trader, Stock stock, int volume, double price) {
        Ask ask = new Ask(trader, stock, price, volume);
        _asks.add(ask);
        log("Added " + ask + " " + counter++);
        return ask;
    }
View Full Code Here

Examples of org.apache.openjpa.trader.domain.Ask

   
   
    public Ask ask(Trader trader, Stock stock, int volume, double price) {
        EntityManager em = getEntityManager();
        begin();
        Ask ask = new Ask(trader, stock, price, volume);
        em.persist(ask);
        commit();
        return ask;
    }
View Full Code Here

Examples of org.apache.openjpa.trader.domain.Ask

    }
   
    public Trade trade(Match match) {
        EntityManager em = getEntityManager();
        begin();
        Ask ask = em.merge(match.getAsk());
        Bid bid = em.merge(match.getBid());
        Trade trade = new Trade(ask, bid);
        em.persist(trade);
        commit();
        return trade;
View Full Code Here

Examples of org.jrdf.query.expression.Ask

    private Expression analyseAskClause(AAskQueryStart node) {
        try {
            super.caseAAskQueryStart(node);
            VariableCollector variableCollector = new AttributeCollectorImpl();
            WhereAnalyser analyzer = analyseWhereClause(node.getWhereClause(), variableCollector);
            return new Ask(analyzer.getExpression(), variableCollector);
        } catch (ParserException e) {
            exception = e;
            return null;
        }
    }
View Full Code Here

Examples of org.nutz.dao.test.meta.issue338.Ask

   
    @Test
    public void test_deleteWith_many() {
        dao.create(Ask.class, true);
        dao.create(AskReply.class, true);
        Ask ask = new Ask();
        ask.setTemptitle("ABC");
        ask.setTitle("ABC");
       
        List<AskReply> askReplies = new ArrayList<AskReply>();
        askReplies.add(new AskReply(ask.getAskId()));
        askReplies.add(new AskReply(ask.getAskId()));
        ask.setReplys(askReplies);
       
        dao.insertWith(ask, "replys");
       
        ask.setReplys(null);
        dao.deleteWith(ask, "replys");
        assertEquals(2, dao.count(AskReply.class));
       
        ask = dao.fetchLinks(ask, null);
        dao.deleteWith(ask, "replys");
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.