Package org.jooq

Examples of org.jooq.ExecuteContext.sql()


        DataType<?>[] paramTypes = dataTypes(query.getParams().values().toArray(new Field[0]));

        try {
            listener.renderStart(ctx);
            // [#1520] TODO: Should the number of bind values be checked, here?
            ctx.sql(create.render(query));
            listener.renderEnd(ctx);

            listener.prepareStart(ctx);
            ctx.statement(connection.prepareStatement(ctx.sql()));
            listener.prepareEnd(ctx);
View Full Code Here


            // [#1520] TODO: Should the number of bind values be checked, here?
            ctx.sql(create.render(query));
            listener.renderEnd(ctx);

            listener.prepareStart(ctx);
            ctx.statement(connection.prepareStatement(ctx.sql()));
            listener.prepareEnd(ctx);

            for (Object[] bindValues : allBindValues) {
                listener.bindStart(ctx);
View Full Code Here

                batchSQL[i] = DSL.using(configuration).renderInlined(queries[i]);
                listener.renderEnd(ctx);
            }

            for (String sql : batchSQL) {
                ctx.sql(sql);
                listener.prepareStart(ctx);
                ctx.statement().addBatch(sql);
                listener.prepareEnd(ctx);
                ctx.sql(null);
            }
View Full Code Here

            for (String sql : batchSQL) {
                ctx.sql(sql);
                listener.prepareStart(ctx);
                ctx.statement().addBatch(sql);
                listener.prepareEnd(ctx);
                ctx.sql(null);
            }

            listener.executeStart(ctx);

            int[] result = ctx.statement().executeBatch();
View Full Code Here

        try {
            Connection connection = configuration.getConnection();

            listener.renderStart(ctx);
            ctx.sql(create(configuration).render(this));
            listener.renderEnd(ctx);

            listener.prepareStart(ctx);
            ctx.statement(connection.prepareCall(ctx.sql()));
            listener.prepareEnd(ctx);
View Full Code Here

            listener.renderStart(ctx);
            ctx.sql(create(configuration).render(this));
            listener.renderEnd(ctx);

            listener.prepareStart(ctx);
            ctx.statement(connection.prepareCall(ctx.sql()));
            listener.prepareEnd(ctx);

            listener.bindStart(ctx);
            create(configuration).bind(this, ctx.statement());
            registerOutParameters(configuration, (CallableStatement) ctx.statement());
View Full Code Here

            fetchOutParameters(ctx);
            return 0;
        }
        catch (SQLException e) {
            throw translate("AbstractRoutine.executeCallableStatement", ctx.sql(), e);
        }
        finally {
            Util.safeClose(listener, ctx);
        }
    }
View Full Code Here

            attach(configuration);

            int result = 0;
            try {
                listener.renderStart(ctx);
                ctx.sql(getSQL());
                listener.renderEnd(ctx);

                listener.prepareStart(ctx);
                prepare(ctx);
                listener.prepareEnd(ctx);
View Full Code Here

                result = execute(ctx, listener);
                return result;
            }
            catch (SQLException e) {
                throw Util.translate("AbstractQuery.execute", ctx.sql(), e);
            }
            finally {
                if (!keepStatementOpen()) {
                    Util.safeClose(listener, ctx);
                }
View Full Code Here

            ctx.resultSet(rs);
            return new CursorImpl<Record>(ctx, listener, fields).fetch();
        }
        catch (SQLException e) {
            throw Util.translate("Factory.fetch", ctx.sql(), e);
        }
    }

    // -------------------------------------------------------------------------
    // XXX Global Condition factory
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.