org.hotrod.runtime.livesql.queries.UpdateWherePhase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hotrod-livesql Show documentation
Show all versions of hotrod-livesql Show documentation
HotRod is an ORM for Java, Spring and SpringBoot.
package org.hotrod.runtime.livesql.queries;
import org.hotrod.runtime.livesql.expressions.predicates.Predicate;
public class UpdateWherePhase implements DMLQuery {
// Properties
private LiveSQLContext context;
private UpdateObject update;
// Constructor
public UpdateWherePhase(final LiveSQLContext context, final UpdateObject update, final Predicate predicate) {
this.context = context;
this.update = update;
this.update.setWherePredicate(predicate);
}
// Next phases
// Preview
@Override
public String getPreview() {
return this.update.getPreview(this.context);
}
// Execute
public void execute() {
this.update.execute(this.context);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy