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

org.hotrod.runtime.livesql.queries.UpdateWherePhase Maven / Gradle / Ivy

There is a newer version: 4.8.1
Show newest version
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