All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fluentjdbc.DatabaseBulkQueriable Maven / Gradle / Ivy

There is a newer version: 0.5.3
Show newest version
package org.fluentjdbc;

import java.util.List;
import java.util.function.Function;

public interface DatabaseBulkQueriable> {
    SELF where(String field, Function value);

    default SELF whereAll(List fields, Function> values) {
        for (int i = 0, fieldsSize = fields.size(); i < fieldsSize; i++) {
            int index = i;
            where(fields.get(i), o -> values.apply(o).get(index));
        }
        //noinspection unchecked
        return (SELF) this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy