Package org.jooq

Examples of org.jooq.DSLContext.newRecord()


            author.store();
            Tools.print(author);


            Tools.title("Creating a new active record");
            author = dsl.newRecord(AUTHOR);
            author.setId(3);
            author.setFirstName("Alfred");
            author.setLastName("Hitchcock");
            author.store();
            Tools.print(author);
View Full Code Here


            author.store();
            Tools.print(author);


            Tools.title("Refreshing an active record");
            author = dsl.newRecord(AUTHOR);
            author.setId(3);
            author.refresh();
            Tools.print(author);

View Full Code Here

        Field<Long> index = fieldByName(Long.class, "INDEX");
        Field<T> value = (Field<T>) fieldByName(type.getComponentType(), "VALUE");
        Result<Record2<Long, T>> result = create.newResult(index, value);

        for (int i = 0; i < a.length; i++) {
            Record2<Long, T> record = create.newRecord(index, value);
           
            record.setValue(index, i + 1L);
            record.setValue(value, a[i]);
           
            result.add(record);
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.