org.fluentjdbc.DatabaseBulkQueriable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-jdbc Show documentation
Show all versions of fluent-jdbc Show documentation
A Java library used to execute JDBC statements and build SQL
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