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

info.archinnov.achilles.generated.dsl.EntityWithComplexIndices_Delete Maven / Gradle / Ivy

The newest version!
package info.archinnov.achilles.generated.dsl;

import com.datastax.driver.core.querybuilder.Delete;
import com.datastax.driver.core.querybuilder.NotEq;
import com.datastax.driver.core.querybuilder.QueryBuilder;
import info.archinnov.achilles.generated.meta.entity.EntityWithComplexIndices_AchillesMeta;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDelete;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteColumns;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteEnd;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteFrom;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteWhere;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteWherePartition;
import info.archinnov.achilles.internals.entities.EntityWithComplexIndices;
import info.archinnov.achilles.internals.metamodel.AbstractEntityProperty;
import info.archinnov.achilles.internals.options.CassandraOptions;
import info.archinnov.achilles.internals.runtime.RuntimeEngine;
import info.archinnov.achilles.type.SchemaNameProvider;
import info.archinnov.achilles.validation.Validator;
import java.lang.Class;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3.ArrayUtils;

public final class EntityWithComplexIndices_Delete extends AbstractDelete {
  protected final EntityWithComplexIndices_AchillesMeta meta;

  protected final Class entityClass = EntityWithComplexIndices.class;

  public EntityWithComplexIndices_Delete(RuntimeEngine rte, EntityWithComplexIndices_AchillesMeta meta) {
    super(rte);
    this.meta = meta;
  }

  /**
   * Generate DELETE simpleindex ... */
  public final EntityWithComplexIndices_Delete.Cols simpleIndex() {
    delete.column("simpleindex");
    return new EntityWithComplexIndices_Delete.Cols(delete);
  }

  /**
   * Generate DELETE collectionindex ... */
  public final EntityWithComplexIndices_Delete.Cols collectionIndex() {
    delete.column("collectionindex");
    return new EntityWithComplexIndices_Delete.Cols(delete);
  }

  /**
   * Generate DELETE fullindexoncollection ... */
  public final EntityWithComplexIndices_Delete.Cols fullIndexOnCollection() {
    delete.column("fullindexoncollection");
    return new EntityWithComplexIndices_Delete.Cols(delete);
  }

  /**
   * Generate DELETE indexonmapkey ... */
  public final EntityWithComplexIndices_Delete.Cols indexOnMapKey() {
    delete.column("indexonmapkey");
    return new EntityWithComplexIndices_Delete.Cols(delete);
  }

  /**
   * Generate DELETE indexonmapvalue ... */
  public final EntityWithComplexIndices_Delete.Cols indexOnMapValue() {
    delete.column("indexonmapvalue");
    return new EntityWithComplexIndices_Delete.Cols(delete);
  }

  /**
   * Generate DELETE indexonmapentry ... */
  public final EntityWithComplexIndices_Delete.Cols indexOnMapEntry() {
    delete.column("indexonmapentry");
    return new EntityWithComplexIndices_Delete.Cols(delete);
  }

  /**
   * Generate ... * FROM ... */
  public final EntityWithComplexIndices_Delete.F allColumns_FromBaseTable() {
    final Delete.Where where = delete.all().from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
    return new EntityWithComplexIndices_Delete.F(where, new CassandraOptions());
  }

  /**
   * Generate ... * FROM ... using the given SchemaNameProvider */
  public final EntityWithComplexIndices_Delete.F allColumns_From(final SchemaNameProvider schemaNameProvider) {
    final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass);
    final String currentTable = lookupTable(schemaNameProvider, meta.entityClass);
    final Delete.Where where = delete.all().from(currentKeyspace, currentTable).where();
    return new EntityWithComplexIndices_Delete.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider));
  }

  public class Cols extends AbstractDeleteColumns {
    Cols(Delete.Selection deleteColumns) {
      super(deleteColumns);
    }

    /**
     * Generate DELETE simpleindex ... */
    public final EntityWithComplexIndices_Delete.Cols simpleIndex() {
      delete.column("simpleindex");
      return this;
    }

    /**
     * Generate DELETE collectionindex ... */
    public final EntityWithComplexIndices_Delete.Cols collectionIndex() {
      delete.column("collectionindex");
      return this;
    }

    /**
     * Generate DELETE fullindexoncollection ... */
    public final EntityWithComplexIndices_Delete.Cols fullIndexOnCollection() {
      delete.column("fullindexoncollection");
      return this;
    }

    /**
     * Generate DELETE indexonmapkey ... */
    public final EntityWithComplexIndices_Delete.Cols indexOnMapKey() {
      delete.column("indexonmapkey");
      return this;
    }

    /**
     * Generate DELETE indexonmapvalue ... */
    public final EntityWithComplexIndices_Delete.Cols indexOnMapValue() {
      delete.column("indexonmapvalue");
      return this;
    }

    /**
     * Generate DELETE indexonmapentry ... */
    public final EntityWithComplexIndices_Delete.Cols indexOnMapEntry() {
      delete.column("indexonmapentry");
      return this;
    }

    /**
     * Generate a ... FROM xxx ...  */
    public final EntityWithComplexIndices_Delete.F fromBaseTable() {
      final Delete.Where where = deleteColumns.from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
      return new EntityWithComplexIndices_Delete.F(where, new CassandraOptions());
    }

    /**
     * Generate a ... FROM xxx ... using the given SchemaNameProvider */
    public final EntityWithComplexIndices_Delete.F from(final SchemaNameProvider schemaNameProvider) {
      final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass);
      final String currentTable = lookupTable(schemaNameProvider, meta.entityClass);
      final Delete.Where where = deleteColumns.from(currentKeyspace, currentTable).where();
      return new EntityWithComplexIndices_Delete.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider));
    }
  }

  public class F extends AbstractDeleteFrom {
    F(Delete.Where where, CassandraOptions cassandraOptions) {
      super(where, cassandraOptions);
    }

    public final EntityWithComplexIndices_Delete.W_Id where() {
      return new EntityWithComplexIndices_Delete.W_Id(where, cassandraOptions);
    }
  }

  public final class W_Id extends AbstractDeleteWherePartition {
    public W_Id(Delete.Where where, CassandraOptions cassandraOptions) {
      super(where, cassandraOptions);
    }

    public final EntityWithComplexIndices_Delete.W_Id.Relation id() {
      return new EntityWithComplexIndices_Delete.W_Id.Relation();
    }

    public final class Relation {
      /**
       * Generate a SELECT ... FROM ... WHERE ... id = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.W_Clust1 Eq(Long id) {
        where.and(QueryBuilder.eq("id", QueryBuilder.bindMarker("id")));
        boundValues.add(id);
        encodedValues.add(meta.id.encodeFromJava(id, Optional.of(cassandraOptions)));
        return new EntityWithComplexIndices_Delete.W_Clust1(where, cassandraOptions);
      }

      /**
       * Generate a SELECT ... FROM ... WHERE ... id IN ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.W_Clust1 IN(Long... id) {
        Validator.validateTrue(ArrayUtils.isNotEmpty(id), "Varargs for field '%s' should not be null/empty", "id");
        where.and(QueryBuilder.in("id",QueryBuilder.bindMarker("id")));
        final List varargs = Arrays.asList((Object[])id);
        final List encodedVarargs = Arrays.stream((Long[])id).map(x -> meta.id.encodeFromJava(x, Optional.of(cassandraOptions))).collect(Collectors.toList());
        boundValues.add(varargs);
        encodedValues.add(encodedVarargs);
        return new EntityWithComplexIndices_Delete.W_Clust1(where, cassandraOptions);
      }
    }
  }

  public final class W_Clust1 extends AbstractDeleteWhere {
    public W_Clust1(Delete.Where where, CassandraOptions cassandraOptions) {
      super(where, cassandraOptions);
    }

    public final EntityWithComplexIndices_Delete.W_Clust1.Relation clust1() {
      return new EntityWithComplexIndices_Delete.W_Clust1.Relation();
    }

    public final class Relation {
      /**
       * Generate a SELECT ... FROM ... WHERE ... clust1 = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.W_Clust2 Eq(int clust1) {
        where.and(QueryBuilder.eq("clust1", QueryBuilder.bindMarker("clust1")));
        boundValues.add(clust1);
        encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions)));
        return new EntityWithComplexIndices_Delete.W_Clust2(where, cassandraOptions);
      }
    }
  }

  public final class W_Clust2 extends AbstractDeleteWhere {
    public W_Clust2(Delete.Where where, CassandraOptions cassandraOptions) {
      super(where, cassandraOptions);
    }

    public final EntityWithComplexIndices_Delete.W_Clust2.Relation clust2() {
      return new EntityWithComplexIndices_Delete.W_Clust2.Relation();
    }

    public final class Relation {
      /**
       * Generate a SELECT ... FROM ... WHERE ... clust2 = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.W_Clust3 Eq(int clust2) {
        where.and(QueryBuilder.eq("clust2", QueryBuilder.bindMarker("clust2")));
        boundValues.add(clust2);
        encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions)));
        return new EntityWithComplexIndices_Delete.W_Clust3(where, cassandraOptions);
      }
    }
  }

  public final class W_Clust3 extends AbstractDeleteWhere {
    public W_Clust3(Delete.Where where, CassandraOptions cassandraOptions) {
      super(where, cassandraOptions);
    }

    public final EntityWithComplexIndices_Delete.W_Clust3.Relation clust3() {
      return new EntityWithComplexIndices_Delete.W_Clust3.Relation();
    }

    public final class Relation {
      /**
       * Generate a SELECT ... FROM ... WHERE ... clust3 = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Eq(String clust3) {
        where.and(QueryBuilder.eq("clust3", QueryBuilder.bindMarker("clust3")));
        boundValues.add(clust3);
        encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions)));
        return new EntityWithComplexIndices_Delete.E(where, cassandraOptions);
      }
    }
  }

  public final class E extends AbstractDeleteEnd {
    public E(Delete.Where where, CassandraOptions cassandraOptions) {
      super(where, cassandraOptions);
    }

    @Override
    protected final Class getEntityClass() {
      return entityClass;
    }

    @Override
    protected final AbstractEntityProperty getMetaInternal() {
      return meta;
    }

    @Override
    protected final RuntimeEngine getRte() {
      return rte;
    }

    @Override
    protected final CassandraOptions getOptions() {
      return cassandraOptions;
    }

    @Override
    protected final List getBoundValuesInternal() {
      return boundValues;
    }

    @Override
    protected final List getEncodedValuesInternal() {
      return encodedValues;
    }

    @Override
    protected final EntityWithComplexIndices_Delete.E getThis() {
      return this;
    }

    public final E.If_SimpleIndex if_SimpleIndex() {
      return new E.If_SimpleIndex();
    }

    public final E.If_CollectionIndex if_CollectionIndex() {
      return new E.If_CollectionIndex();
    }

    public final E.If_FullIndexOnCollection if_FullIndexOnCollection() {
      return new E.If_FullIndexOnCollection();
    }

    public final E.If_IndexOnMapKey if_IndexOnMapKey() {
      return new E.If_IndexOnMapKey();
    }

    public final E.If_IndexOnMapValue if_IndexOnMapValue() {
      return new E.If_IndexOnMapValue();
    }

    public final E.If_IndexOnMapEntry if_IndexOnMapEntry() {
      return new E.If_IndexOnMapEntry();
    }

    public final class If_SimpleIndex {
      /**
       * Generate an ... IF simpleIndex = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Eq(final String simpleIndex) {
        boundValues.add(simpleIndex);
        encodedValues.add(meta.simpleIndex.encodeFromJava(simpleIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.eq("simpleindex", QueryBuilder.bindMarker("simpleindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF simpleIndex > ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gt(final String simpleIndex) {
        boundValues.add(simpleIndex);
        encodedValues.add(meta.simpleIndex.encodeFromJava(simpleIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gt("simpleindex", QueryBuilder.bindMarker("simpleindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF simpleIndex >= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gte(final String simpleIndex) {
        boundValues.add(simpleIndex);
        encodedValues.add(meta.simpleIndex.encodeFromJava(simpleIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gte("simpleindex", QueryBuilder.bindMarker("simpleindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF simpleIndex < ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lt(final String simpleIndex) {
        boundValues.add(simpleIndex);
        encodedValues.add(meta.simpleIndex.encodeFromJava(simpleIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lt("simpleindex", QueryBuilder.bindMarker("simpleindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF simpleIndex <= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lte(final String simpleIndex) {
        boundValues.add(simpleIndex);
        encodedValues.add(meta.simpleIndex.encodeFromJava(simpleIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lte("simpleindex", QueryBuilder.bindMarker("simpleindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an  ... IF simpleIndex != ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E NotEq(final String simpleIndex) {
        boundValues.add(simpleIndex);
        encodedValues.add(meta.simpleIndex.encodeFromJava(simpleIndex, Optional.of(cassandraOptions)));
        where.onlyIf(NotEq.of("simpleindex", QueryBuilder.bindMarker("simpleindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }
    }

    public final class If_CollectionIndex {
      /**
       * Generate an ... IF collectionIndex = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Eq(final List collectionIndex) {
        boundValues.add(collectionIndex);
        encodedValues.add(meta.collectionIndex.encodeFromJava(collectionIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.eq("collectionindex", QueryBuilder.bindMarker("collectionindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF collectionIndex > ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gt(final List collectionIndex) {
        boundValues.add(collectionIndex);
        encodedValues.add(meta.collectionIndex.encodeFromJava(collectionIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gt("collectionindex", QueryBuilder.bindMarker("collectionindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF collectionIndex >= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gte(final List collectionIndex) {
        boundValues.add(collectionIndex);
        encodedValues.add(meta.collectionIndex.encodeFromJava(collectionIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gte("collectionindex", QueryBuilder.bindMarker("collectionindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF collectionIndex < ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lt(final List collectionIndex) {
        boundValues.add(collectionIndex);
        encodedValues.add(meta.collectionIndex.encodeFromJava(collectionIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lt("collectionindex", QueryBuilder.bindMarker("collectionindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF collectionIndex <= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lte(final List collectionIndex) {
        boundValues.add(collectionIndex);
        encodedValues.add(meta.collectionIndex.encodeFromJava(collectionIndex, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lte("collectionindex", QueryBuilder.bindMarker("collectionindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an  ... IF collectionIndex != ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E NotEq(final List collectionIndex) {
        boundValues.add(collectionIndex);
        encodedValues.add(meta.collectionIndex.encodeFromJava(collectionIndex, Optional.of(cassandraOptions)));
        where.onlyIf(NotEq.of("collectionindex", QueryBuilder.bindMarker("collectionindex")));
        return EntityWithComplexIndices_Delete.E.this;
      }
    }

    public final class If_FullIndexOnCollection {
      /**
       * Generate an ... IF fullIndexOnCollection = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Eq(final Set fullIndexOnCollection) {
        boundValues.add(fullIndexOnCollection);
        encodedValues.add(meta.fullIndexOnCollection.encodeFromJava(fullIndexOnCollection, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.eq("fullindexoncollection", QueryBuilder.bindMarker("fullindexoncollection")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF fullIndexOnCollection > ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gt(final Set fullIndexOnCollection) {
        boundValues.add(fullIndexOnCollection);
        encodedValues.add(meta.fullIndexOnCollection.encodeFromJava(fullIndexOnCollection, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gt("fullindexoncollection", QueryBuilder.bindMarker("fullindexoncollection")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF fullIndexOnCollection >= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gte(final Set fullIndexOnCollection) {
        boundValues.add(fullIndexOnCollection);
        encodedValues.add(meta.fullIndexOnCollection.encodeFromJava(fullIndexOnCollection, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gte("fullindexoncollection", QueryBuilder.bindMarker("fullindexoncollection")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF fullIndexOnCollection < ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lt(final Set fullIndexOnCollection) {
        boundValues.add(fullIndexOnCollection);
        encodedValues.add(meta.fullIndexOnCollection.encodeFromJava(fullIndexOnCollection, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lt("fullindexoncollection", QueryBuilder.bindMarker("fullindexoncollection")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF fullIndexOnCollection <= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lte(final Set fullIndexOnCollection) {
        boundValues.add(fullIndexOnCollection);
        encodedValues.add(meta.fullIndexOnCollection.encodeFromJava(fullIndexOnCollection, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lte("fullindexoncollection", QueryBuilder.bindMarker("fullindexoncollection")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an  ... IF fullIndexOnCollection != ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E NotEq(final Set fullIndexOnCollection) {
        boundValues.add(fullIndexOnCollection);
        encodedValues.add(meta.fullIndexOnCollection.encodeFromJava(fullIndexOnCollection, Optional.of(cassandraOptions)));
        where.onlyIf(NotEq.of("fullindexoncollection", QueryBuilder.bindMarker("fullindexoncollection")));
        return EntityWithComplexIndices_Delete.E.this;
      }
    }

    public final class If_IndexOnMapKey {
      /**
       * Generate an ... IF indexOnMapKey = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Eq(final Map indexOnMapKey) {
        boundValues.add(indexOnMapKey);
        encodedValues.add(meta.indexOnMapKey.encodeFromJava(indexOnMapKey, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.eq("indexonmapkey", QueryBuilder.bindMarker("indexonmapkey")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapKey > ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gt(final Map indexOnMapKey) {
        boundValues.add(indexOnMapKey);
        encodedValues.add(meta.indexOnMapKey.encodeFromJava(indexOnMapKey, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gt("indexonmapkey", QueryBuilder.bindMarker("indexonmapkey")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapKey >= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gte(final Map indexOnMapKey) {
        boundValues.add(indexOnMapKey);
        encodedValues.add(meta.indexOnMapKey.encodeFromJava(indexOnMapKey, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gte("indexonmapkey", QueryBuilder.bindMarker("indexonmapkey")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapKey < ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lt(final Map indexOnMapKey) {
        boundValues.add(indexOnMapKey);
        encodedValues.add(meta.indexOnMapKey.encodeFromJava(indexOnMapKey, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lt("indexonmapkey", QueryBuilder.bindMarker("indexonmapkey")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapKey <= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lte(final Map indexOnMapKey) {
        boundValues.add(indexOnMapKey);
        encodedValues.add(meta.indexOnMapKey.encodeFromJava(indexOnMapKey, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lte("indexonmapkey", QueryBuilder.bindMarker("indexonmapkey")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an  ... IF indexOnMapKey != ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E NotEq(final Map indexOnMapKey) {
        boundValues.add(indexOnMapKey);
        encodedValues.add(meta.indexOnMapKey.encodeFromJava(indexOnMapKey, Optional.of(cassandraOptions)));
        where.onlyIf(NotEq.of("indexonmapkey", QueryBuilder.bindMarker("indexonmapkey")));
        return EntityWithComplexIndices_Delete.E.this;
      }
    }

    public final class If_IndexOnMapValue {
      /**
       * Generate an ... IF indexOnMapValue = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Eq(final Map indexOnMapValue) {
        boundValues.add(indexOnMapValue);
        encodedValues.add(meta.indexOnMapValue.encodeFromJava(indexOnMapValue, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.eq("indexonmapvalue", QueryBuilder.bindMarker("indexonmapvalue")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapValue > ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gt(final Map indexOnMapValue) {
        boundValues.add(indexOnMapValue);
        encodedValues.add(meta.indexOnMapValue.encodeFromJava(indexOnMapValue, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gt("indexonmapvalue", QueryBuilder.bindMarker("indexonmapvalue")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapValue >= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gte(final Map indexOnMapValue) {
        boundValues.add(indexOnMapValue);
        encodedValues.add(meta.indexOnMapValue.encodeFromJava(indexOnMapValue, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gte("indexonmapvalue", QueryBuilder.bindMarker("indexonmapvalue")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapValue < ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lt(final Map indexOnMapValue) {
        boundValues.add(indexOnMapValue);
        encodedValues.add(meta.indexOnMapValue.encodeFromJava(indexOnMapValue, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lt("indexonmapvalue", QueryBuilder.bindMarker("indexonmapvalue")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapValue <= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lte(final Map indexOnMapValue) {
        boundValues.add(indexOnMapValue);
        encodedValues.add(meta.indexOnMapValue.encodeFromJava(indexOnMapValue, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lte("indexonmapvalue", QueryBuilder.bindMarker("indexonmapvalue")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an  ... IF indexOnMapValue != ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E NotEq(final Map indexOnMapValue) {
        boundValues.add(indexOnMapValue);
        encodedValues.add(meta.indexOnMapValue.encodeFromJava(indexOnMapValue, Optional.of(cassandraOptions)));
        where.onlyIf(NotEq.of("indexonmapvalue", QueryBuilder.bindMarker("indexonmapvalue")));
        return EntityWithComplexIndices_Delete.E.this;
      }
    }

    public final class If_IndexOnMapEntry {
      /**
       * Generate an ... IF indexOnMapEntry = ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Eq(final Map indexOnMapEntry) {
        boundValues.add(indexOnMapEntry);
        encodedValues.add(meta.indexOnMapEntry.encodeFromJava(indexOnMapEntry, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.eq("indexonmapentry", QueryBuilder.bindMarker("indexonmapentry")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapEntry > ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gt(final Map indexOnMapEntry) {
        boundValues.add(indexOnMapEntry);
        encodedValues.add(meta.indexOnMapEntry.encodeFromJava(indexOnMapEntry, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gt("indexonmapentry", QueryBuilder.bindMarker("indexonmapentry")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapEntry >= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Gte(final Map indexOnMapEntry) {
        boundValues.add(indexOnMapEntry);
        encodedValues.add(meta.indexOnMapEntry.encodeFromJava(indexOnMapEntry, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.gte("indexonmapentry", QueryBuilder.bindMarker("indexonmapentry")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapEntry < ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lt(final Map indexOnMapEntry) {
        boundValues.add(indexOnMapEntry);
        encodedValues.add(meta.indexOnMapEntry.encodeFromJava(indexOnMapEntry, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lt("indexonmapentry", QueryBuilder.bindMarker("indexonmapentry")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an ... IF indexOnMapEntry <= ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E Lte(final Map indexOnMapEntry) {
        boundValues.add(indexOnMapEntry);
        encodedValues.add(meta.indexOnMapEntry.encodeFromJava(indexOnMapEntry, Optional.of(cassandraOptions)));
        where.onlyIf(QueryBuilder.lte("indexonmapentry", QueryBuilder.bindMarker("indexonmapentry")));
        return EntityWithComplexIndices_Delete.E.this;
      }

      /**
       * Generate an  ... IF indexOnMapEntry != ? */
      @SuppressWarnings("static-access")
      public final EntityWithComplexIndices_Delete.E NotEq(final Map indexOnMapEntry) {
        boundValues.add(indexOnMapEntry);
        encodedValues.add(meta.indexOnMapEntry.encodeFromJava(indexOnMapEntry, Optional.of(cassandraOptions)));
        where.onlyIf(NotEq.of("indexonmapentry", QueryBuilder.bindMarker("indexonmapentry")));
        return EntityWithComplexIndices_Delete.E.this;
      }
    }
  }
}