Examples of fire()


Examples of org.lealone.dbobject.table.Table.fire()

        tableFilter.reset();
        RowList rows = new RowList(session);
        try {
            Table table = tableFilter.getTable();
            session.getUser().checkRight(table, Right.UPDATE);
            table.fire(session, Trigger.UPDATE, true);
            table.lock(session, true, false);
            int columnCount = table.getColumns().length;
            // get the old rows, compute the new rows
            setCurrentRowNumber(0);
            int count = 0;
View Full Code Here

Examples of org.lealone.dbobject.table.Table.fire()

                    Row o = rows.next();
                    Row n = rows.next();
                    table.fireAfterRow(session, o, n, false);
                }
            }
            table.fire(session, Trigger.UPDATE, false);
            return count;
        } finally {
            rows.close();
        }
    }
View Full Code Here

Examples of org.lealone.dbobject.table.Table.fire()

    public int update() {
        tableFilter.startQuery(session);
        tableFilter.reset();
        Table table = tableFilter.getTable();
        session.getUser().checkRight(table, Right.DELETE);
        table.fire(session, Trigger.DELETE, true);
        table.lock(session, true, false);
        RowList rows = new RowList(session);
        int limitRows = -1;
        if (limitExpr != null) {
            Value v = limitExpr.getValue(session);
View Full Code Here

Examples of org.lealone.dbobject.table.Table.fire()

                for (rows.reset(); rows.hasNext();) {
                    Row row = rows.next();
                    table.fireAfterRow(session, row, null, false);
                }
            }
            table.fire(session, Trigger.DELETE, false);
            return count;
        } finally {
            rows.close();
        }
    }
View Full Code Here

Examples of org.persvr.remote.Client.fire()

      // if it is not IE8, we do not want to have multiple connections
      HttpSession session = req.getSession(true);
      Client otherConnection = (Client) session.getAttribute("org.persvr.channel");
      if (otherConnection != null && otherConnection != eventStream) {
        //TODO: Send reconnect advice
        otherConnection.fire(new ConnectionConflict()); // if there is another connection, we need to notify it
      }
      session.setAttribute("org.persvr.channel",eventStream);
    }
    else
      resp.setHeader("XDomainRequestAllowed", "1"); // allow this so we can support streaming in IE8
View Full Code Here

Examples of org.springframework.richclient.util.EventListenerListHelper.fire()

    if (oldValue != newValue) {
      EventListenerListHelper propertyChangeListeners = getPropertyChangeListeners(propertyName);
      if (propertyChangeListeners.hasListeners()) {
        PropertyChangeEvent event = new PropertyChangeEvent(delegateFor, propertyName, Boolean
            .valueOf(oldValue), Boolean.valueOf(newValue));
        propertyChangeListeners.fire("propertyChange", event);
      }
    }
  }

  protected EventListenerListHelper getPropertyChangeListeners(String propertyName) {
View Full Code Here

Examples of org.squirrelframework.foundation.fsm.UntypedStateMachine.fire()

        builder.externalTransition().from("A").to("B").on(FSMEvent.ToB).callMethod("fromAToB");
        builder.onEntry("B").callMethod("ontoB");
       
        // 4. Use State Machine
        UntypedStateMachine fsm = builder.newStateMachine("A");
        fsm.fire(FSMEvent.ToB, 10);
       
        System.out.println("Current state is "+fsm.getCurrentState());
    }
}
View Full Code Here

Examples of ptolemy.actor.Actor.fire()

                Actor actor = interruptEvent.actor();

                if (actor != null) {
                    if (actor.prefire()) {
                        actor.fire();

                        if (!actor.postfire()) {
                            _disableActor(actor);
                        }
                    }
View Full Code Here

Examples of ptolemy.actor.Actor.fire()

                        }

                        // This event  can be processed immediately.
                        _eventQueue.take();

                        actor.fire();

                        // Actor stops executing, i.e. finishing
                        _displaySchedule(((Nameable) actor).getName(),
                                getModelTime().getDoubleValue(),
                                ScheduleListener.TASK_SLEEPING);
View Full Code Here

Examples of ptolemy.actor.Actor.fire()

                    }

                    _eventQueue.take();

                    Actor actor = event.actor();
                    actor.fire();

                    // Actor stops executing, i.e. finishing
                    _displaySchedule(((Nameable) actor).getName(),
                            getModelTime().getDoubleValue(),
                            ScheduleListener.TASK_SLEEPING);
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.