de.ec.sql.UpdateValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlbuilder Show documentation
Show all versions of sqlbuilder Show documentation
Java builder to create SQL statements
package de.ec.sql;
import lombok.AccessLevel;
import lombok.Getter;
@Getter(AccessLevel.PROTECTED)
public class UpdateValue {
private final Update update;
private final String column;
private Object value;
private boolean expression = false;
protected UpdateValue(final Update update, final String column) {
this.update = update;
this.column = column;
}
public Update value(final Object value) {
this.value = value;
return update;
}
public Update expr(final String expr) {
value = expr;
expression = true;
return update;
}
}