Examples of execute()


Examples of com.mxgraph.layout.mxIGraphLayout.execute()

          graph.getModel().beginUpdate();
          try
          {
            long t0 = System.currentTimeMillis();
            layout.execute(cell);
            status("Layout: " + (System.currentTimeMillis() - t0)
                + " ms");
          }
          finally
          {
View Full Code Here

Examples of com.mxgraph.layout.mxOrganicLayout.execute()

          generator.getSimpleRandomGraph(aGraph, nodeCount, edgeCount, allowSelfLoops, allowMultipleEdges, forceConnected);

          mxGraphStructure.setDefaultGraphStyle(aGraph, false);
          mxOrganicLayout layout = new mxOrganicLayout(graph);
          layout.execute(graph.getDefaultParent());
          graph.getModel().endUpdate();
          setVisible(false);
        }
      });
      closeButton.addActionListener(new ActionListener()
View Full Code Here

Examples of com.mxgraph.layout.mxParallelEdgeLayout.execute()

      morph.startAnimation();
    } else {
      currentGraph.getModel().endUpdate();
    }
    mxParallelEdgeLayout paralLay = new mxParallelEdgeLayout(currentGraph);
    paralLay.execute(currentGraph.getDefaultParent());
    // sometimes layout can put vertex out of minimap, that should fix it
    double x = 0, y = 0;
    boolean init = false;
    for (Object o : currentGraph.getChildCells(currentGraph.getDefaultParent())) {
      mxCell cell = (mxCell) o;
View Full Code Here

Examples of com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange.execute()

      if (change instanceof mxAtomicGraphModelChange)
      {
        mxAtomicGraphModelChange ac = (mxAtomicGraphModelChange) change;

        ac.setModel(model);
        ac.execute();

        // Workaround for references not being resolved if cells have
        // been removed from the model prior to being referenced. This
        // adds removed cells in the codec object lookup table.
        if (ac instanceof mxChildChange
View Full Code Here

Examples of com.mysema.query.jpa.codegen.HibernateDomainExporter.execute()

        File gen = new File("target/" + getClass().getSimpleName());
        FileUtils.delete(gen);
        Configuration config = new Configuration();
        config.addFile(new File("src/test/resources/com/mysema/query/jpa/domain8/domain.hbm.xml"));
        HibernateDomainExporter exporter = new HibernateDomainExporter("Q", gen, config);
        exporter.execute();
       
        assertTrue(new File(gen, "com/mysema/query/jpa/domain8/QA.java").exists());
        assertTrue(new File(gen, "com/mysema/query/jpa/domain8/QB.java").exists());

        CompileUtils.compile(gen.getAbsolutePath());
View Full Code Here

Examples of com.mysema.query.jpa.codegen.JPADomainExporter.execute()

        // Now we can get the persistence unit's metamodel and export it to Querydsl query types.
        Metamodel configuration = emf.getMetamodel();
        JPADomainExporter exporter = new JPADomainExporter(namePrefix, nameSuffix, new File(targetFolder), configuration);
        try {
            exporter.execute();
        } catch (IOException e) {
            throw new RuntimeException("Error in JPADomainExporter", e);
        }
    }
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLDeleteClause.execute()

        insert(survey).values(3, "B","C").execute();

        SQLDeleteClause delete = delete(survey);
        delete.where(survey.name.eq("A")).addBatch();
        delete.where(survey.name.eq("B")).addBatch();
        assertEquals(2, delete.execute());
    }

    @Test
    @ExcludeIn({CUBRID, SQLITE})
    public void Batch_Templates() throws SQLException{
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLInsertClause.execute()

        // insert
        SQLInsertClause insert = new SQLInsertClause(connection, configuration, person);
        insert.set(person.id, 10);
        insert.set(person.firstname, "Bob");
        insert.set(person.gender, Gender.MALE);
        assertEquals(1l, insert.execute());

        // query
        SQLQuery query = new SQLQuery(connection, configuration);
        assertEquals(Gender.MALE, query.from(person).where(person.id.eq(10)).uniqueResult(person.gender));
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLMergeClause.execute()

            .keys(survey.id)
            .set(survey.id, 6)
            .set(survey.name, "6")
            .addBatch();

        assertEquals(2, merge.execute());

        assertEquals(1l, query().from(survey).where(survey.name.eq("5")).count());
        assertEquals(1l, query().from(survey).where(survey.name.eq("6")).count());
    }
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLUpdateClause.execute()

        insert(survey).values(3, "B","C").execute();

        SQLUpdateClause update = update(survey);
        update.set(survey.name, "AA").where(survey.name.eq("A")).addBatch();
        update.set(survey.name, "BB").where(survey.name.eq("B")).addBatch();
        assertEquals(2, update.execute());
    }

    @Test
    public void Batch_Templates() throws SQLException{
        insert(survey).values(2, "A","B").execute();
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.