Search in sources :

Example 1 with InsertSetMoreStep

use of org.jooq.InsertSetMoreStep in project vertx-zero by silentbalanceyh.

the class ActionInsert method insert.

/* T */
<T> T insert(final T entity) {
    Objects.requireNonNull(entity);
    final T inserted = this.uuid(entity);
    final InsertSetMoreStep insertStep = this.context().insertInto(this.analyzer.table()).set(this.newRecord(inserted));
    final int rows = insertStep.execute();
    this.logging("[ Jq ] insert(T) executed rows: {0}", String.valueOf(rows));
    return inserted;
}
Also used : InsertSetMoreStep(org.jooq.InsertSetMoreStep)

Aggregations

InsertSetMoreStep (org.jooq.InsertSetMoreStep)1