io.ebeaninternal.server.querydefn.DefaultUpdateQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.querydefn;
import io.ebean.ExpressionList;
import io.ebean.ProfileLocation;
import io.ebean.UpdateQuery;
/**
* Default implementation of UpdateQuery.
*/
public class DefaultUpdateQuery implements UpdateQuery {
private final OrmUpdateProperties values = new OrmUpdateProperties();
private final DefaultOrmQuery query;
public DefaultUpdateQuery(DefaultOrmQuery query) {
this.query = query;
query.setUpdateProperties(values);
}
@Override
public UpdateQuery set(String property, Object value) {
values.set(property, value);
return this;
}
@Override
public UpdateQuery setNull(String property) {
values.set(property, null);
return this;
}
@Override
public UpdateQuery setRaw(String propertyExpression) {
values.setRaw(propertyExpression);
return this;
}
@Override
public UpdateQuery setRaw(String propertyExpression, Object... vals) {
values.setRaw(propertyExpression, vals);
return this;
}
@Override
public UpdateQuery setProfileLocation(ProfileLocation profileLocation) {
query.setProfileLocation(profileLocation);
return this;
}
@Override
public ExpressionList where() {
return query.where();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy