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

com.cherokeesoft.db.utils.update.DefaultNullable Maven / Gradle / Ivy

There is a newer version: 1.8.29
Show newest version
package com.cherokeesoft.db.utils.update;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class DefaultNullable implements NullableUpdater {
    private final T model;
    private final Set fieldsForUpdate;

    @Deprecated
    public DefaultNullable(T model, Map map) {
        this(model, map.keySet());
    }

    public DefaultNullable(T model, Set fieldsForUpdate) {
        this.model = model;
        this.fieldsForUpdate = fieldsForUpdate;
    }

    @Override
    public T getModel() {
        return this.model;
    }

    @Override
    public DefineCondition getDefineCondition() {
        return new DefineCondition(fieldsForUpdate);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy