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

org.fluentjdbc.DatabaseQueriable Maven / Gradle / Ivy

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

import javax.annotation.Nullable;
import java.util.Collection;
import java.util.List;

public interface DatabaseQueriable> {

    T whereExpressionWithMultipleParameters(String expression, Collection parameters);

    T whereExpression(String expression, @Nullable Object value);

    T whereExpression(String expression);

    T whereOptional(String fieldName, @Nullable Object value);

    T whereIn(String fieldName, Collection parameters);

    T whereAll(List fields, List values);

    default T where(String fieldName, @Nullable Object value) {
        return whereExpression(fieldName + " = ?", value);
    }

    T query();
}