Package org.jooq

Examples of org.jooq.BindContext.visit()


    public void testData() {
        BindContext ctx = create.bindContext(statement);
        ctx.data("key", "value");

        TestDataQueryPart part = new TestDataQueryPart();
        ctx.visit(part);
        assertEquals("value", part.value);
    }

    private static class TestDataQueryPart extends CustomCondition {
View Full Code Here


                else {
                    render.sql(sqlChars[i]);
                }

                if (bind != null) {
                    bind.visit(substitute);
                }
            }

            // [#1432] Inline substitues for {numbered placeholders} outside of string literals
            else if (sqlChars[i] == '{') {
View Full Code Here

                    try {
                        QueryPart substitute = substitutes.get(Integer.valueOf(token));
                        render.visit(substitute);

                        if (bind != null) {
                            bind.visit(substitute);
                        }
                    }

                    // If the above failed, then we're dealing with a {keyword}
                    catch (NumberFormatException e) {
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.