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

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

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.entities.EntityWithComplexIndices;
import info.archinnov.achilles.internals.metamodel.AbstractEntityProperty;
import info.archinnov.achilles.internals.options.Options;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDelete;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteColumns;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteEnd;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteFrom;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteWherePartition;
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.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.EntityWithComplexIndices_DeleteColumns simpleIndex() {
    delete.column("simpleindex");
    return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns(delete);
  }

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

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

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

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

  /**
   * Generate ... * FROM ... */
  public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom 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.EntityWithComplexIndices_DeleteFrom(where);
  }

  /**
   * Generate ... * FROM ... using the given SchemaNameProvider */
  public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom 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.EntityWithComplexIndices_DeleteFrom(where);
  }

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

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

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

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

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

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

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

    /**
     * Generate a ... FROM xxx ... using the given SchemaNameProvider */
    public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom 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.EntityWithComplexIndices_DeleteFrom(where);
    }
  }

  public class EntityWithComplexIndices_DeleteFrom extends AbstractDeleteFrom {
    EntityWithComplexIndices_DeleteFrom(Delete.Where where) {
      super(where);
    }

    public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteWhere_Id where() {
      return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteWhere_Id(where);
    }
  }

  public final class EntityWithComplexIndices_DeleteWhere_Id extends AbstractDeleteWherePartition {
    public EntityWithComplexIndices_DeleteWhere_Id(Delete.Where where) {
      super(where);
    }

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

    /**
     * Generate a SELECT ... FROM ... WHERE ... id IN ? */
    @SuppressWarnings("static-access")
    public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteEnd id_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)).collect(Collectors.toList());
      boundValues.add(varargs);
      encodedValues.add(encodedVarargs);
      return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteEnd(where);
    }
  }

  public final class EntityWithComplexIndices_DeleteEnd extends AbstractDeleteEnd {
    public EntityWithComplexIndices_DeleteEnd(Delete.Where where) {
      super(where);
    }

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

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

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

    @Override
    protected final Options getOptions() {
      return options;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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