public class PgStatGetActivity extends org.jooq.impl.AbstractRoutine<java.lang.Void> {
private static final long serialVersionUID = -2107175210;
/**
* The parameter <code>pg_catalog.pg_stat_get_activity.pid</code>.
*/
public static final org.jooq.Parameter<java.lang.Integer> PID = createParameter("pid", org.jooq.impl.SQLDataType.INTEGER);
/**
* The parameter <code>pg_catalog.pg_stat_get_activity.datid</code>.
*/
public static final org.jooq.Parameter<java.lang.Long> DATID = createParameter("datid", org.jooq.impl.SQLDataType.BIGINT);
/**
* The parameter <code>pg_catalog.pg_stat_get_activity.pid</code>.
*/
public static final org.jooq.Parameter<java.lang.Integer> PID = createParameter("pid", org.jooq.impl.SQLDataType.INTEGER);
I am new to jooq and trying to start with the first step of using the DSL to avoid SQL strings in my java code. I used the insertInto() API to create an INSERT statement. I want to "cache" the statement but whenever I add a values() to it, it adds a new VALUES to the statement instead of replacing the existing one. Is there a clear() or reset() function?Also, doesn't jooq have create table and drop table in its DSL?
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/YIGSzwInQkE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am new to jooq and trying to start with the first step of using the DSL to avoid SQL strings in my java code. I used the insertInto() API to create an INSERT statement. I want to "cache" the statement but whenever I add a values() to it, it adds a new VALUES to the statement instead of replacing the existing one. Is there a clear() or reset() function?
Also, doesn't jooq have create table and drop table in its DSL?
--
Thanks Lukas. What happens if I call execute() on the insertInto stmt? Does that "clear" the previous values?
--
I wanted to "cache" the stmt, then do values().execute(). No worries, I can create a new stmt when I need it. I think a clearValues() would be nice to have but it is not a big deal.