Examples of StatementEvent


Examples of javax.sql.StatementEvent

     */
    public void testStatementEventPooledConnectionPreparedStatement() {
        assertNotNull(st);

        try {
            new StatementEvent(null, null);
            fail("should throw IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // expected
        }
    }
View Full Code Here

Examples of javax.sql.StatementEvent

    /**
     * @tests serialization/deserialization compatibility with RI.
     */
    public void testSerializationCompatibility() throws Exception {
        StatementEvent st3 = new StatementEvent(pc, null, new SQLException(
                "test message"));
        SerializationTest.verifyGolden(this, st3, STATEMENTEVENT_COMPARATOR);
    }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.dbcopy.event.StatementEvent

            listener.recordCopied(event);
        }
    }
   
    private void sendStatementEvent(String sql, String[] vals) {
        StatementEvent event =
            new StatementEvent(sql, StatementEvent.INSERT_RECORD_TYPE);
        event.setBindValues(vals);
        Iterator<CopyTableListener> i = listeners.iterator();
        while (i.hasNext()) {
            CopyTableListener listener = i.next();
            listener.statementExecuted(event);
        }       
View Full Code Here

Examples of org.jboss.mbui.gui.behaviour.StatementEvent


                    if(selection!=null) {
                        // create a select statement
                        coordinator.fireEventFromSource(
                                new StatementEvent(
                                        GlobalQNames.SELECT_ID,
                                        "selected.entity",
                                        selection.get("entity.key").asString()),   // synthetic key (convention), see LoadResourceProcedure
                                getInteractionUnit().getId());


                    }
                    else
                    {
                        // clear the select statement
                        coordinator.fireEventFromSource(
                                new StatementEvent(
                                        GlobalQNames.SELECT_ID,
                                        "selected.entity",
                                        null),
                                getInteractionUnit().getId());
                    }
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementEvent


                    if(selection!=null) {
                        // create a select statement
                        coordinator.fireEventFromSource(
                                new StatementEvent(
                                        CommonQNames.SELECT_ID,
                                        "selected.entity",
                                        selection.get("entity.key").asString()),   // synthetic key (convention), see LoadResourceProcedure
                                getInteractionUnit().getId());


                    }
                    else
                    {
                        // clear the select statement
                        coordinator.fireEventFromSource(
                                new StatementEvent(
                                        CommonQNames.SELECT_ID,
                                        "selected.entity",
                                        null),
                                getInteractionUnit().getId());
                    }
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementEvent

                    String selection = comboBox.getValue(comboBox.getSelectedIndex());

                    if (selection != null && !selection.equals("")) {
                        // create a select statement
                        eventBus.fireEventFromSource(
                                new StatementEvent(
                                        CommonQNames.SELECT_ID,
                                        "selected.entity",
                                        selection),   // synthetic key (convention), see LoadResourceProcedure
                                getInteractionUnit().getId());

                        previousSelection = selection;

                    } else {
                        // clear the select statement
                        eventBus.fireEventFromSource(
                                new StatementEvent(
                                        CommonQNames.SELECT_ID,
                                        "selected.entity",
                                        null),
                                getInteractionUnit().getId());
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementEvent

        setCommand(new ModelDrivenCommand() {
            @Override
            public void execute(Dialog dialog, Object data) {

                StatementEvent event = (StatementEvent)data;

                QName sourceId = (QName)event.getSource();
                String key = event.getKey();
                String value = event.getValue();


                if(value!=null)
                    coordinator.setStatement(sourceId, key, value);
                else
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementEvent


                    if(selection!=null) {
                        // create a select statement
                        coordinator.fireEventFromSource(
                                new StatementEvent(
                                        CommonQNames.SELECT_ID,
                                        "selected.entity",
                                        selection.get("entity.key").asString()),   // synthetic key (convention), see LoadResourceProcedure
                                getInteractionUnit().getId());


                    }
                    else
                    {
                        // clear the select statement
                        coordinator.fireEventFromSource(
                                new StatementEvent(
                                        CommonQNames.SELECT_ID,
                                        "selected.entity",
                                        null),
                                getInteractionUnit().getId());
                    }
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementEvent

     * @param context
     */
    private void clearReset(final OperationContext context) {
        // clear the select statement
        context.getCoordinator().fireEvent(
                new StatementEvent(
                        CommonQNames.SELECT_ID,
                        "selected.entity",
                        null)
        );

View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementEvent

     * @param context
     */
    private void clearReset(final OperationContext context) {
        // clear the select statement
        context.getCoordinator().fireEvent(
                new StatementEvent(
                        CommonQNames.SELECT_ID,
                        "selected.entity",
                        null)
        );

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.