com.kenshoo.jooq.BulkExecutor Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of persistence-layer Show documentation
                Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
                
             The newest version!
        
        package com.kenshoo.jooq;
import org.jooq.Query;
/**
 * Created by khiloj on 3/23/16
 */
public class BulkExecutor {
    public static int updateTillNoRowsAffected(Query q) {
        int totalUpdated = 0;
        int numOfAffectedRows;
        do {
            numOfAffectedRows = q.execute();
            totalUpdated += numOfAffectedRows;
        }
        while (numOfAffectedRows != 0);
        return totalUpdated;
    }
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy