com.cherokeesoft.db.utils.update.DefaultNullable Maven / Gradle / Ivy
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);
}
}