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

org.fluentjdbc.DatabaseUpdateable 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;

public interface DatabaseUpdateable> {
    T setFields(Collection fields, Collection values);

    T setField(String field, @Nullable Object value);

    default T setFieldIfPresent(String field, @Nullable Object value) {
        if (value != null) {
            setField(field, value);
        }
        //noinspection unchecked
        return (T)this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy