Search in sources :

Example 1 with Batch

use of org.jooq.Batch in project collect by openforis.

the class RecordDao method execute.

public void execute(List<CollectStoreQuery> queries) {
    List<Query> internalQueries = new ArrayList<Query>(queries.size());
    for (CollectStoreQuery recordStoreQuery : queries) {
        internalQueries.add(recordStoreQuery.getInternalQuery());
    }
    Batch batch = dsl().batch(internalQueries);
    batch.execute();
}
Also used : InsertQuery(org.jooq.InsertQuery) UpdateQuery(org.jooq.UpdateQuery) Query(org.jooq.Query) StoreQuery(org.jooq.StoreQuery) SelectQuery(org.jooq.SelectQuery) Batch(org.jooq.Batch) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 Batch (org.jooq.Batch)1 InsertQuery (org.jooq.InsertQuery)1 Query (org.jooq.Query)1 SelectQuery (org.jooq.SelectQuery)1 StoreQuery (org.jooq.StoreQuery)1 UpdateQuery (org.jooq.UpdateQuery)1