Examples of ExecuteListener


Examples of org.jooq.ExecuteListener

    @Test
    public void run() {
        Tools.title("Displaying execution time using a custom ExecuteListener");

        ExecuteListener listener = new DefaultExecuteListener() {

            @Override
            public void start(ExecuteContext ctx) {

                // Register the start time to the current context
View Full Code Here

Examples of org.jooq.ExecuteListener

        return 0;
    }

    private final int executeCallableStatement() {
        ExecuteContext ctx = new DefaultExecuteContext(configuration, this);
        ExecuteListener listener = new ExecuteListeners(ctx);

        try {
            Connection connection = ctx.connection();

            listener.renderStart(ctx);
            // [#1520] TODO: Should the number of bind values be checked, here?
            ctx.sql(create(configuration).render(this));
            listener.renderEnd(ctx);

            listener.prepareStart(ctx);
            ctx.statement(connection.prepareCall(ctx.sql()));
            // [#1856] TODO: Add Statement flags like timeout here
            listener.prepareEnd(ctx);

            listener.bindStart(ctx);
            using(configuration).bindContext(ctx.statement()).visit(this);
            registerOutParameters(configuration, (CallableStatement) ctx.statement());
            listener.bindEnd(ctx);

            execute0(ctx, listener);

            /* [pro] xx
            xx xxxxxxx xxx xxxxx xx xxxxxxxxx xxxxxx xxxx xxx xxxx xxxxxxxxx
            xx xxx xxxxxxxxxx xx xxxxxxxx xx xxx xxxxxx
            xx [/pro] */
            Utils.consumeResultSets(ctx, listener, results, null);
            fetchOutParameters(ctx);
            return 0;
        }

        // [#3427] ControlFlowSignals must not be passed on to ExecuteListners
        catch (ControlFlowSignal e) {
            throw e;
        }
        catch (RuntimeException e) {
            ctx.exception(e);
            listener.exception(ctx);
            throw ctx.exception();
        }
        catch (SQLException e) {
            ctx.sqlException(e);
            listener.exception(ctx);
            throw ctx.exception();
        }
        finally {
            Utils.safeClose(listener, ctx);
        }
View Full Code Here

Examples of org.jooq.ExecuteListener

    }

    @Override
    public Cursor<Record> fetchLazy(ResultSet rs, Field<?>... fields) {
        ExecuteContext ctx = new DefaultExecuteContext(configuration());
        ExecuteListener listener = new ExecuteListeners(ctx);

        ctx.resultSet(rs);
        return new CursorImpl<Record>(ctx, listener, fields, null, false, true);
    }
View Full Code Here

Examples of sos.scheduler.editor.conf.listeners.ExecuteListener

  private void refreshJob() {

    if(butProcess.getSelection()) {

      ExecuteListener executeListener = new ExecuteListener(dom, job);
      executeListener.setExecutable(true);           

    } else {

      ExecuteListener executeListener = new ExecuteListener(dom, job);
      executeListener.setExecutable(false);

      ScriptListener scriptlistener = new ScriptListener(dom, job, Editor.SCRIPT, update);

      if(comLanguage.getSelectionIndex() > -1) {             
        scriptlistener.setLanguage(comLanguage.getSelectionIndex());
View Full Code Here

Examples of sos.scheduler.editor.conf.listeners.ExecuteListener

    super(parent, style);
    init = true;
    update = update_;


    listener = new ExecuteListener(dom, job);

    initialize();
    setToolTipText();

View Full Code Here

Examples of sos.scheduler.editor.conf.listeners.ExecuteListener

  public JobAssistentProcessForms(SchedulerDom dom_, ISchedulerUpdate update_, Element job_, int assistentType_) {
    dom = dom_;
    update = update_;
    assistentType = assistentType_;
    executeListener = new ExecuteListener(dom, job_);   
  }
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.