Examples of insertInto()


Examples of org.apache.tools.ant.gui.core.ProjectSelectionMenu.insertInto()

                f.getContentPane().add(BorderLayout.NORTH,
                context.getActions().createToolBar());
               
                // Add the project selection menu.
                ProjectSelectionMenu ps = new ProjectSelectionMenu(context);
                ps.insertInto(menu);
               
                // Add debugging items.
                if(settings.isDebugMode()) {
                    context.getEventBus().addMember(
                    EventBus.VETOING, new EventDebugMonitor());
View Full Code Here

Examples of org.jooq.DSLContext.insertInto()

    public void testInsertReturning() {

        // Note: INSERT .. RETURNING is hard to mock for all dialects...
        DSLContext e = DSL.using(new MockConnection(new InsertReturning()), SQLDialect.POSTGRES);

        InsertResultStep<Table1Record> query = e
            .insertInto(TABLE1, FIELD_ID1)
            .values(1)
            .returning();

        assertEquals(1, query.execute());
View Full Code Here

Examples of org.jooq.DSLContext.insertInto()

        try {

            // Inserting is just as easy as selecting
            Tools.title("Inserting a new AUTHOR");
            Tools.print(
                dsl.insertInto(AUTHOR, AUTHOR.ID, AUTHOR.FIRST_NAME, AUTHOR.LAST_NAME)
                   .values(3, "Alfred", "Hitchcock")
                   .execute()
            );

            // But the Java compiler will actively check your statements. The
View Full Code Here

Examples of org.jooq.util.h2.H2Factory.insertInto()

    }

    public static void pCreateAuthorByName(Connection connection, String firstName, String lastName) {
        H2Factory create = create(connection);

        create.insertInto(T_AUTHOR)
              .set(TAuthor.ID, create.select(max(TAuthor.ID).add(1)).from(T_AUTHOR).<Integer>asField())
              .set(TAuthor.FIRST_NAME, firstName)
              .set(TAuthor.LAST_NAME, lastName)
              .execute();
    }
View Full Code Here

Examples of org.jooq.util.maven.example.mysql.Test2Factory.insertInto()

        Test2Factory create = new Test2Factory(connection);

        create.delete(T_BOOLEANS).execute();

        assertEquals(1,
        create.insertInto(T_BOOLEANS)
              .set(T_BOOLEANS.ID, 1)
              .set(T_BOOLEANS.ONE_ZERO, Boolean_10._0)
              .set(T_BOOLEANS.TRUE_FALSE_LC, BooleanTrueFalseLc.true_)
              .set(T_BOOLEANS.TRUE_FALSE_UC, BooleanTrueFalseUc.FALSE)
              .set(T_BOOLEANS.Y_N_LC, BooleanYnLc.y)
View Full Code Here

Examples of sun.tools.tree.UplevelReference.insertInto()

        if (target.getClassDefinition() == this) {
            throw new CompilerError("addReference "+target);
        }
        referencesMustNotBeFrozen();
        UplevelReference r = new UplevelReference(this, target);
        references = r.insertInto(references);
        return r;
    }

    /**
     * Return the list of all uplevel references.
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.