Examples of execute()


Examples of org.gvt.command.LayoutCommand.execute()

      main.lockWithMessage("Performing layout ...");
      CompoundModel root = (CompoundModel)((ChsRootEditPart) main.getViewer().
          getRootEditPart().getChildren().get(0)).getModel();

      LayoutCommand command = new LayoutCommand(main, new SpringLayout(root));
      command.execute();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.gvt.command.RemoveCompoundCommand.execute()

      // if selected one is a node or compound delete is called
      if (childEditPart instanceof ChsCompoundEditPart)
      {
        RemoveCompoundCommand command = new RemoveCompoundCommand();
        command.setCompound((CompoundModel) childEditPart.getModel());
        command.execute();
      }
    }
  }
}
View Full Code Here

Examples of org.h2.jdbc.JdbcPreparedStatement.execute()

            Prepared prepared = p.prep;
            JdbcPreparedStatement prep = prepared.prep;
            server.trace(prepared.sql);
            try {
                prep.setMaxRows(maxRows);
                boolean result = prep.execute();
                if (result) {
                    try {
                        ResultSet rs = prep.getResultSet();
                        ResultSetMetaData meta = rs.getMetaData();
                        sendRowDescription(meta);
View Full Code Here

Examples of org.h2.jdbc.JdbcStatement.execute()

                    if (s == null) {
                        break;
                    }
                    s = getSQL(s);
                    stat = (JdbcStatement) conn.createStatement();
                    boolean result = stat.execute(s);
                    if (result) {
                        ResultSet rs = stat.getResultSet();
                        ResultSetMetaData meta = rs.getMetaData();
                        try {
                            sendRowDescription(meta);
View Full Code Here

Examples of org.h2.test.db.Db.execute()

     */
    private void testIn() throws SQLException {
        Db db = new Db(conn);
        db.execute("create table test0(a int, b int, c int)");
        db.execute("create index idx_1 on test0(a)");
        db.execute("create index idx_2 on test0(b, a)");
        db.execute("create table test1(a int, b int, c int)");
        db.execute("insert into test0 select x / 100, mod(x / 10, 10), mod(x, 10) from system_range(0, 999)");
        db.execute("update test0 set a = null where a = 9");
        db.execute("update test0 set b = null where b = 9");
        db.execute("update test0 set c = null where c = 9");
View Full Code Here

Examples of org.h2.test.db.Db.Prepared.execute()

                "select a from test1 where a <? and a not in(" +
                "select c from test1 where b <=10 and a in(" +
                "select a from test1 where b =1 or b =2 and b not in(2))) or c <>a) " +
                "and c in(0, 10) and c in(10, 0, 0) order by 1, 2, 3");
        p.set(1);
        p.execute();

        Random seedGenerator = new Random();
        String[] columns = new String[] { "a", "b", "c" };
        String[] values = new String[] { null, "0", "0", "1", "2", "10", "a", "?" };
        String[] compares = new String[] { "in(", "not in(", "=", "=", ">",
View Full Code Here

Examples of org.h2.util.Task.execute()

                stat2.executeQuery("CALL SLEEP(100)");
                Thread.sleep(10);
                stat2.executeQuery("CALL SLEEP(100)");
            }
        };
        t.execute();
        Thread.sleep(50);
        stat1.execute("SHUTDOWN");
        conn1.close();
        try {
            conn2.close();
View Full Code Here

Examples of org.hibernate.bytecode.buildtime.Instrumenter.execute()

      }
    }

    Instrumenter instrumenter = resolveInstrumenter( provider, new LoggingBridge() );
    try {
      instrumenter.execute( collectFilesToProcess() );
    }
    catch Throwable t ) {
      throw new MojoExecutionException( "Error executing instrumentation", t );
    }
  }
View Full Code Here

Examples of org.hibernate.search.test.performance.util.BatchSupport.execute()

    log( "starting initialize database" );

    initDatabaseStopWatch.start();

    BatchSupport batchSupport = new BatchSupport( sf );
    batchSupport.execute( "insert into author(id, name) values(?, ?)", initialAutorCount,
        new BatchCallback() {
          @Override
          public void initStatement(PreparedStatement ps, long id) throws SQLException {
            ps.setLong( 1, id );
            ps.setString( 2, "autor" + id );
View Full Code Here

Examples of org.hibernate.search.testsupport.concurrency.ConcurrentRunner.execute()

      @Override
      public Runnable createRunnable(int i) throws Exception {
        return new SerializingThread( serializer, SerializationTest.buildWorks() );
      }
    });
    runner.execute();
  }

  @Test
  public void concurrentDeserialization() throws Exception {
    final LuceneWorkSerializer serializer = extractSerializer();
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.