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

io.stargate.db.query.builder.AbstractBoundDMLWithCondition Maven / Gradle / Ivy

There is a newer version: 2.1.0-BETA-19
Show newest version
package io.stargate.db.query.builder;

import io.stargate.db.query.BoundDMLQueryWithConditions;
import io.stargate.db.query.Condition;
import io.stargate.db.query.Modification;
import io.stargate.db.query.RowsImpacted;
import io.stargate.db.query.TypedValue;
import java.util.List;
import java.util.OptionalInt;
import java.util.OptionalLong;

class AbstractBoundDMLWithCondition extends AbstractBoundDML
    implements BoundDMLQueryWithConditions {
  private final boolean ifExists;
  private final List conditions;

  protected AbstractBoundDMLWithCondition(
      BuiltDML builtQuery,
      List boundedValues,
      List values,
      RowsImpacted rowsUpdated,
      List modifications,
      boolean ifExists,
      List conditions,
      OptionalInt ttl,
      OptionalLong timestamp) {
    super(builtQuery, boundedValues, values, rowsUpdated, modifications, ttl, timestamp);
    this.ifExists = ifExists;
    this.conditions = conditions;
  }

  @Override
  public boolean ifExists() {
    return ifExists;
  }

  @Override
  public List conditions() {
    return conditions;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy