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

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

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

import com.datastax.driver.core.TupleType;
import com.datastax.driver.core.querybuilder.QueryBuilder;
import com.datastax.driver.core.querybuilder.Select;
import info.archinnov.achilles.generated.meta.entity.EntityWithComplexIndices_AchillesMeta;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelect;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectColumns;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectColumnsTypeMap;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectFrom;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectFromTypeMap;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWhere;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWherePartition;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWherePartitionTypeMap;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWhereTypeMap;
import info.archinnov.achilles.internals.entities.EntityWithComplexIndices;
import info.archinnov.achilles.internals.metamodel.AbstractEntityProperty;
import info.archinnov.achilles.internals.metamodel.functions.FunctionCall;
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.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.commons.lang3.ArrayUtils;

public final class EntityWithComplexIndices_Select extends AbstractSelect {
  protected final EntityWithComplexIndices_AchillesMeta meta;

  protected final Class entityClass = EntityWithComplexIndices.class;

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

  /**
   * Generate a SELECT ... id ... */
  public final EntityWithComplexIndices_Select.Cols id() {
    select.column("id");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... clust1 ... */
  public final EntityWithComplexIndices_Select.Cols clust1() {
    select.column("clust1");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... clust2 ... */
  public final EntityWithComplexIndices_Select.Cols clust2() {
    select.column("clust2");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... clust3 ... */
  public final EntityWithComplexIndices_Select.Cols clust3() {
    select.column("clust3");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... simpleindex ... */
  public final EntityWithComplexIndices_Select.Cols simpleIndex() {
    select.column("simpleindex");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... collectionindex ... */
  public final EntityWithComplexIndices_Select.Cols collectionIndex() {
    select.column("collectionindex");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... fullindexoncollection ... */
  public final EntityWithComplexIndices_Select.Cols fullIndexOnCollection() {
    select.column("fullindexoncollection");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... indexonmapkey ... */
  public final EntityWithComplexIndices_Select.Cols indexOnMapKey() {
    select.column("indexonmapkey");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... indexonmapvalue ... */
  public final EntityWithComplexIndices_Select.Cols indexOnMapValue() {
    select.column("indexonmapvalue");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Generate a SELECT ... indexonmapentry ... */
  public final EntityWithComplexIndices_Select.Cols indexOnMapEntry() {
    select.column("indexonmapentry");
    return new EntityWithComplexIndices_Select.Cols(select);
  }

  /**
   * Use this method to call a system or user-defined function.
All the system functions are accessible from the {@link info.archinnov.achilles.generated.function.SystemFunctions} class
All the user-defined functions and aggregates are accessible from the {@link info.archinnov.achilles.generated.function.FunctionsRegistry} class
System and user-defined functions accept only appropriate type. To pass in an entity field as function argument, use the generated manager.COLUMNS class which exposes all columns with their appropriate type
Example:

   *   {@literal @}Table
   *   public class MyEntity {
   *
   *       ...
   *
   *       {@literal @}Column("value_column")
   *       private String value;
   *
   *       {@literal @}Column("list_of_string")
   *       private List strings;
   *
   *       ...
   *
   *   }
   *
   *   {@literal @}FunctionsRegistry
   *   public interface MyFunctions {
   *
   *        String convertListToJson(List strings);
   *
   *   }
   *
   *
   *   ...
   *
   *
   *   manager
   *      .dsl()
   *      .select()
   *      // This call will generate SELECT cast(writetime(value_column) as text) AS writetimeOfValueAsString, ...
   *      .function(SystemFunctions.castAsText(SystemFunctions.writetime(manager.COLUMNS.VALUE)), "writetimeOfValueAsString")
   *      ...
   *
   *   manager
   *      .dsl()
   *      .select()
   *      // This call will generate SELECT convertlisttojson(list_of_string) AS strings_as_json, ...
   *      .function(FunctionsRegistry.convertListToJson(manager.COLUMNS.STRINGS), "strings_as_json")
   *      ...
   *
   * 
*
* @param functionCall the function call object * @param alias mandatory alias for this function call for easier retrieval from the ResultSet * @return a built-in function call passed to the QueryBuilder object */ public final EntityWithComplexIndices_Select.ColsTM function(final FunctionCall functionCall, final String alias) { functionCall.addToSelect(select, alias); return new EntityWithComplexIndices_Select.ColsTM(select); } /** * Generate ... * FROM ... */ public final EntityWithComplexIndices_Select.F allColumns_FromBaseTable() { final Select.Where where = select.all().from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where(); return new EntityWithComplexIndices_Select.F(where, new CassandraOptions()); } /** * Generate ... * FROM ... using the given SchemaNameProvider */ public final EntityWithComplexIndices_Select.F allColumns_From(final SchemaNameProvider schemaNameProvider) { final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass); final String currentTable = lookupTable(schemaNameProvider, meta.entityClass); final Select.Where where = select.all().from(currentKeyspace, currentTable).where(); return new EntityWithComplexIndices_Select.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider)); } public class Cols extends AbstractSelectColumns { public Cols(Select.Selection selection) { super(selection); } /** * Generate a SELECT ... id ... */ public final EntityWithComplexIndices_Select.Cols id() { selection.column("id"); return this; } /** * Generate a SELECT ... clust1 ... */ public final EntityWithComplexIndices_Select.Cols clust1() { selection.column("clust1"); return this; } /** * Generate a SELECT ... clust2 ... */ public final EntityWithComplexIndices_Select.Cols clust2() { selection.column("clust2"); return this; } /** * Generate a SELECT ... clust3 ... */ public final EntityWithComplexIndices_Select.Cols clust3() { selection.column("clust3"); return this; } /** * Generate a SELECT ... simpleindex ... */ public final EntityWithComplexIndices_Select.Cols simpleIndex() { selection.column("simpleindex"); return this; } /** * Generate a SELECT ... collectionindex ... */ public final EntityWithComplexIndices_Select.Cols collectionIndex() { selection.column("collectionindex"); return this; } /** * Generate a SELECT ... fullindexoncollection ... */ public final EntityWithComplexIndices_Select.Cols fullIndexOnCollection() { selection.column("fullindexoncollection"); return this; } /** * Generate a SELECT ... indexonmapkey ... */ public final EntityWithComplexIndices_Select.Cols indexOnMapKey() { selection.column("indexonmapkey"); return this; } /** * Generate a SELECT ... indexonmapvalue ... */ public final EntityWithComplexIndices_Select.Cols indexOnMapValue() { selection.column("indexonmapvalue"); return this; } /** * Generate a SELECT ... indexonmapentry ... */ public final EntityWithComplexIndices_Select.Cols indexOnMapEntry() { selection.column("indexonmapentry"); return this; } /** * Use this method to call a system or user-defined function.
All the system functions are accessible from the {@link info.archinnov.achilles.generated.function.SystemFunctions} class
All the user-defined functions and aggregates are accessible from the {@link info.archinnov.achilles.generated.function.FunctionsRegistry} class
System and user-defined functions accept only appropriate type. To pass in an entity field as function argument, use the generated manager.COLUMNS class which exposes all columns with their appropriate type
Example:

     *   {@literal @}Table
     *   public class MyEntity {
     *
     *       ...
     *
     *       {@literal @}Column("value_column")
     *       private String value;
     *
     *       {@literal @}Column("list_of_string")
     *       private List strings;
     *
     *       ...
     *
     *   }
     *
     *   {@literal @}FunctionsRegistry
     *   public interface MyFunctions {
     *
     *        String convertListToJson(List strings);
     *
     *   }
     *
     *
     *   ...
     *
     *
     *   manager
     *      .dsl()
     *      .select()
     *      // This call will generate SELECT cast(writetime(value_column) as text) AS writetimeOfValueAsString, ...
     *      .function(SystemFunctions.castAsText(SystemFunctions.writetime(manager.COLUMNS.VALUE)), "writetimeOfValueAsString")
     *      ...
     *
     *   manager
     *      .dsl()
     *      .select()
     *      // This call will generate SELECT convertlisttojson(list_of_string) AS strings_as_json, ...
     *      .function(FunctionsRegistry.convertListToJson(manager.COLUMNS.STRINGS), "strings_as_json")
     *      ...
     *
     * 
*
* @param functionCall the function call object * @param alias mandatory alias for this function call for easier retrieval from the ResultSet * @return a built-in function call passed to the QueryBuilder object */ public final EntityWithComplexIndices_Select.ColsTM function(final FunctionCall functionCall, final String alias) { functionCall.addToSelect(selection, alias); return new EntityWithComplexIndices_Select.ColsTM(select); } /** * Generate a ... FROM xxx ... */ public final EntityWithComplexIndices_Select.F fromBaseTable() { final Select.Where where = selection.from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where(); return new EntityWithComplexIndices_Select.F(where, new CassandraOptions()); } /** * Generate a ... FROM xxx ... using the given SchemaNameProvider */ public final EntityWithComplexIndices_Select.F from(final SchemaNameProvider schemaNameProvider) { final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass); final String currentTable = lookupTable(schemaNameProvider, meta.entityClass); final Select.Where where = selection.from(currentKeyspace, currentTable).where(); return new EntityWithComplexIndices_Select.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider)); } } public class ColsTM extends AbstractSelectColumnsTypeMap { public ColsTM(Select.Selection selection) { super(selection); } /** * Generate a SELECT ... id ... */ public final EntityWithComplexIndices_Select.ColsTM id() { selection.column("id"); return this; } /** * Generate a SELECT ... clust1 ... */ public final EntityWithComplexIndices_Select.ColsTM clust1() { selection.column("clust1"); return this; } /** * Generate a SELECT ... clust2 ... */ public final EntityWithComplexIndices_Select.ColsTM clust2() { selection.column("clust2"); return this; } /** * Generate a SELECT ... clust3 ... */ public final EntityWithComplexIndices_Select.ColsTM clust3() { selection.column("clust3"); return this; } /** * Generate a SELECT ... simpleindex ... */ public final EntityWithComplexIndices_Select.ColsTM simpleIndex() { selection.column("simpleindex"); return this; } /** * Generate a SELECT ... collectionindex ... */ public final EntityWithComplexIndices_Select.ColsTM collectionIndex() { selection.column("collectionindex"); return this; } /** * Generate a SELECT ... fullindexoncollection ... */ public final EntityWithComplexIndices_Select.ColsTM fullIndexOnCollection() { selection.column("fullindexoncollection"); return this; } /** * Generate a SELECT ... indexonmapkey ... */ public final EntityWithComplexIndices_Select.ColsTM indexOnMapKey() { selection.column("indexonmapkey"); return this; } /** * Generate a SELECT ... indexonmapvalue ... */ public final EntityWithComplexIndices_Select.ColsTM indexOnMapValue() { selection.column("indexonmapvalue"); return this; } /** * Generate a SELECT ... indexonmapentry ... */ public final EntityWithComplexIndices_Select.ColsTM indexOnMapEntry() { selection.column("indexonmapentry"); return this; } /** * Use this method to call a system or user-defined function.
All the system functions are accessible from the {@link info.archinnov.achilles.generated.function.SystemFunctions} class
All the user-defined functions and aggregates are accessible from the {@link info.archinnov.achilles.generated.function.FunctionsRegistry} class
System and user-defined functions accept only appropriate type. To pass in an entity field as function argument, use the generated manager.COLUMNS class which exposes all columns with their appropriate type
Example:

     *   {@literal @}Table
     *   public class MyEntity {
     *
     *       ...
     *
     *       {@literal @}Column("value_column")
     *       private String value;
     *
     *       {@literal @}Column("list_of_string")
     *       private List strings;
     *
     *       ...
     *
     *   }
     *
     *   {@literal @}FunctionsRegistry
     *   public interface MyFunctions {
     *
     *        String convertListToJson(List strings);
     *
     *   }
     *
     *
     *   ...
     *
     *
     *   manager
     *      .dsl()
     *      .select()
     *      // This call will generate SELECT cast(writetime(value_column) as text) AS writetimeOfValueAsString, ...
     *      .function(SystemFunctions.castAsText(SystemFunctions.writetime(manager.COLUMNS.VALUE)), "writetimeOfValueAsString")
     *      ...
     *
     *   manager
     *      .dsl()
     *      .select()
     *      // This call will generate SELECT convertlisttojson(list_of_string) AS strings_as_json, ...
     *      .function(FunctionsRegistry.convertListToJson(manager.COLUMNS.STRINGS), "strings_as_json")
     *      ...
     *
     * 
*
* @param functionCall the function call object * @param alias mandatory alias for this function call for easier retrieval from the ResultSet * @return a built-in function call passed to the QueryBuilder object */ public final EntityWithComplexIndices_Select.ColsTM function(final FunctionCall functionCall, final String alias) { functionCall.addToSelect(selection, alias); return this; } /** * Generate a ... FROM xxx ... */ public final EntityWithComplexIndices_Select.F_TM fromBaseTable() { final Select.Where where = selection.from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where(); return new EntityWithComplexIndices_Select.F_TM(where, new CassandraOptions()); } /** * Generate a ... FROM xxx ... using the given SchemaNameProvider */ public final EntityWithComplexIndices_Select.F_TM from(final SchemaNameProvider schemaNameProvider) { final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass); final String currentTable = lookupTable(schemaNameProvider, meta.entityClass); final Select.Where where = selection.from(currentKeyspace, currentTable).where(); return new EntityWithComplexIndices_Select.F_TM(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider)); } } public class F extends AbstractSelectFrom { F(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... */ public final EntityWithComplexIndices_Select.W_Id where() { return new EntityWithComplexIndices_Select.W_Id(where, cassandraOptions); } /** * Generate a SELECT statement without the WHERE clause */ public final EntityWithComplexIndices_Select.E without_WHERE_Clause() { return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } public class F_TM extends AbstractSelectFromTypeMap { F_TM(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... */ public final EntityWithComplexIndices_Select.W_TM_Id where() { return new EntityWithComplexIndices_Select.W_TM_Id(where, cassandraOptions); } /** * Generate a SELECT statement without the WHERE clause */ public final EntityWithComplexIndices_Select.E_TM without_WHERE_Clause() { return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } public final class W_Id extends AbstractSelectWherePartition { public W_Id(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } public final EntityWithComplexIndices_Select.W_Id.Relation id() { return new EntityWithComplexIndices_Select.W_Id.Relation(); } public final EntityWithComplexIndices_Select.W_Id.Token tokenValueOf_id() { return new EntityWithComplexIndices_Select.W_Id.Token(); } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... id = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.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_Select.W_Clust1(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... id IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.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_Select.W_Clust1(where, cassandraOptions); } } public final class Token { /** * Generate a SELECT ... FROM ... WHERE ... token(id) = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Eq(Long tokenValue) { where.and(QueryBuilder.eq("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt(Long tokenValue) { where.and(QueryBuilder.gt("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte(Long tokenValue) { where.and(QueryBuilder.gte("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lt(Long tokenValue) { where.and(QueryBuilder.lt("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lte(Long tokenValue) { where.and(QueryBuilder.lte("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lt(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gt("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lt("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lte(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gt("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lte("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lt(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gte("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lt("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lte(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gte("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lte("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } } public final class W_Clust1 extends AbstractSelectWhere { public W_Clust1(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } @Override protected final EntityWithComplexIndices_Select.W_Clust1 getThis() { return this; } @Override protected final AbstractEntityProperty getMetaInternal() { return meta; } @Override protected final Class getEntityClass() { return entityClass; } @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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.W_Clust1 limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } public final EntityWithComplexIndices_Select.W_Clust1.Relation clust1() { return new EntityWithComplexIndices_Select.W_Clust1.Relation(); } public final EntityWithComplexIndices_Select.W_Clust1.clust1_clust2 clust1_clust2() { return new EntityWithComplexIndices_Select.W_Clust1.clust1_clust2(); } public final EntityWithComplexIndices_Select.W_Clust1.clust1_clust2_clust3 clust1_clust2_clust3() { return new EntityWithComplexIndices_Select.W_Clust1.clust1_clust2_clust3(); } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.W_Clust1 orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.W_Clust1 orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... clust1 = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.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_Select.W_Clust2(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_Clust2 IN(int... clust1) { Validator.validateTrue(ArrayUtils.isNotEmpty(clust1), "Varargs for field '%s' should not be null/empty", "clust1"); where.and(QueryBuilder.in("clust1",QueryBuilder.bindMarker("clust1"))); final List varargs = Arrays.asList((int[])clust1); final List encodedVarargs = new ArrayList<>(clust1.length);; for(int clust1_element : clust1) { encodedVarargs.add(meta.clust1.encodeFromJava(clust1_element, Optional.of(cassandraOptions))); } boundValues.add(varargs); encodedValues.add(encodedVarargs); return new EntityWithComplexIndices_Select.W_Clust2(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt(int clust1) { where.and(QueryBuilder.gt("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte(int clust1) { where.and(QueryBuilder.gte("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lt(int clust1) { where.and(QueryBuilder.lt("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lte(int clust1) { where.and(QueryBuilder.lte("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 > ? AND clust1 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lt(int clust1_Gt, int clust1_Lt) { where.and(QueryBuilder.gt("clust1",QueryBuilder.bindMarker("clust1_Lt"))); where.and(QueryBuilder.lt("clust1",QueryBuilder.bindMarker("clust1_Lt"))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 > ? AND clust1 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lte(int clust1_Gt, int clust1_Lte) { where.and(QueryBuilder.gt("clust1",QueryBuilder.bindMarker("clust1_Lte"))); where.and(QueryBuilder.lte("clust1",QueryBuilder.bindMarker("clust1_Lte"))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 >= ? AND clust1 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lt(int clust1_Gte, int clust1_Lt) { where.and(QueryBuilder.gte("clust1",QueryBuilder.bindMarker("clust1_Lt"))); where.and(QueryBuilder.lt("clust1",QueryBuilder.bindMarker("clust1_Lt"))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 >= ? AND clust1 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lte(int clust1_Gte, int clust1_Lte) { where.and(QueryBuilder.gte("clust1",QueryBuilder.bindMarker("clust1_Lte"))); where.and(QueryBuilder.lte("clust1",QueryBuilder.bindMarker("clust1_Lte"))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } public final class clust1_clust2 { /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt(final int clust1, final int clust2) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte(final int clust1, final int clust2) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lt(final int clust1, final int clust2) { where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lte(final int clust1, final int clust2) { where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lt(final int clust1_Gt, final int clust2_Gt, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lte(final int clust1_Gt, final int clust2_Gt, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lt(final int clust1_Gte, final int clust2_Gte, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lte(final int clust1_Gte, final int clust2_Gte, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gt_And_clust1_Lt(final int clust1_Gt, final int clust2_Gt, final int clust1_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gt_And_clust1_Lte(final int clust1_Gt, final int clust2_Gt, final int clust1_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gte_And_clust1_Lt(final int clust1_Gte, final int clust2_Gte, final int clust1_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gte_And_clust1_Lte(final int clust1_Gte, final int clust2_Gte, final int clust1_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) > ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_Gt_And_clust1_And_clust2_Lt(final int clust1_Gt, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) > ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_Gt_And_clust1_And_clust2_Lte(final int clust1_Gt, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) >= ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_Gte_And_clust1_And_clust2_Lt(final int clust1_Gte, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) >= ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_Gte_And_clust1_And_clust2_Lte(final int clust1_Gte, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } public final class clust1_clust2_clust3 { /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lt(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lte(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lt(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lte(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lt(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lte(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_And_clust3_Gt_And_clust1_And_clust2_Lt(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_And_clust3_Gt_And_clust1_And_clust2_Lte(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_And_clust3_Gte_And_clust1_And_clust2_Lt(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_And_clust3_Gte_And_clust1_And_clust2_Lte(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gt_And_clust1_And_clust2_And_clust3_Lt(final int clust1_Gt, final int clust2_Gt, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gt_And_clust1_And_clust2_And_clust3_Lte(final int clust1_Gt, final int clust2_Gt, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gte_And_clust1_And_clust2_And_clust3_Lt(final int clust1_Gte, final int clust2_Gte, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust1_And_clust2_Gte_And_clust1_And_clust2_And_clust3_Lte(final int clust1_Gte, final int clust2_Gte, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } } public final class W_Clust2 extends AbstractSelectWhere { public W_Clust2(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } @Override protected final EntityWithComplexIndices_Select.W_Clust2 getThis() { return this; } @Override protected final AbstractEntityProperty getMetaInternal() { return meta; } @Override protected final Class getEntityClass() { return entityClass; } @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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.W_Clust2 limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } public final EntityWithComplexIndices_Select.W_Clust2.Relation clust2() { return new EntityWithComplexIndices_Select.W_Clust2.Relation(); } public final EntityWithComplexIndices_Select.W_Clust2.clust2_clust3 clust2_clust3() { return new EntityWithComplexIndices_Select.W_Clust2.clust2_clust3(); } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.W_Clust2 orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.W_Clust2 orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... clust2 = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.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_Select.W_Clust3(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_Clust3 IN(int... clust2) { Validator.validateTrue(ArrayUtils.isNotEmpty(clust2), "Varargs for field '%s' should not be null/empty", "clust2"); where.and(QueryBuilder.in("clust2",QueryBuilder.bindMarker("clust2"))); final List varargs = Arrays.asList((int[])clust2); final List encodedVarargs = new ArrayList<>(clust2.length);; for(int clust2_element : clust2) { encodedVarargs.add(meta.clust2.encodeFromJava(clust2_element, Optional.of(cassandraOptions))); } boundValues.add(varargs); encodedValues.add(encodedVarargs); return new EntityWithComplexIndices_Select.W_Clust3(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt(int clust2) { where.and(QueryBuilder.gt("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte(int clust2) { where.and(QueryBuilder.gte("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lt(int clust2) { where.and(QueryBuilder.lt("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lte(int clust2) { where.and(QueryBuilder.lte("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 > ? AND clust2 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lt(int clust2_Gt, int clust2_Lt) { where.and(QueryBuilder.gt("clust2",QueryBuilder.bindMarker("clust2_Lt"))); where.and(QueryBuilder.lt("clust2",QueryBuilder.bindMarker("clust2_Lt"))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 > ? AND clust2 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lte(int clust2_Gt, int clust2_Lte) { where.and(QueryBuilder.gt("clust2",QueryBuilder.bindMarker("clust2_Lte"))); where.and(QueryBuilder.lte("clust2",QueryBuilder.bindMarker("clust2_Lte"))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 >= ? AND clust2 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lt(int clust2_Gte, int clust2_Lt) { where.and(QueryBuilder.gte("clust2",QueryBuilder.bindMarker("clust2_Lt"))); where.and(QueryBuilder.lt("clust2",QueryBuilder.bindMarker("clust2_Lt"))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 >= ? AND clust2 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lte(int clust2_Gte, int clust2_Lte) { where.and(QueryBuilder.gte("clust2",QueryBuilder.bindMarker("clust2_Lte"))); where.and(QueryBuilder.lte("clust2",QueryBuilder.bindMarker("clust2_Lte"))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } public final class clust2_clust3 { /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt(final int clust2, final String clust3) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte(final int clust2, final String clust3) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lt(final int clust2, final String clust3) { where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lte(final int clust2, final String clust3) { where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lt(final int clust2_Gt, final String clust3_Gt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lte(final int clust2_Gt, final String clust3_Gt, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lt(final int clust2_Gte, final String clust3_Gte, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lte(final int clust2_Gte, final String clust3_Gte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_And_clust3_Gt_And_clust2_Lt(final int clust2_Gt, final String clust3_Gt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_And_clust3_Gt_And_clust2_Lte(final int clust2_Gt, final String clust3_Gt, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_And_clust3_Gte_And_clust2_Lt(final int clust2_Gte, final String clust3_Gte, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_And_clust3_Gte_And_clust2_Lte(final int clust2_Gte, final String clust3_Gte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) > ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_Gt_And_clust2_And_clust3_Lt(final int clust2_Gt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) > ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_Gt_And_clust2_And_clust3_Lte(final int clust2_Gt, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) >= ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_Gte_And_clust2_And_clust3_Lt(final int clust2_Gte, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) >= ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E clust2_Gte_And_clust2_And_clust3_Lte(final int clust2_Gte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } } public final class W_Clust3 extends AbstractSelectWhere { public W_Clust3(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } @Override protected final EntityWithComplexIndices_Select.W_Clust3 getThis() { return this; } @Override protected final AbstractEntityProperty getMetaInternal() { return meta; } @Override protected final Class getEntityClass() { return entityClass; } @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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.W_Clust3 limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } public final EntityWithComplexIndices_Select.W_Clust3.Relation clust3() { return new EntityWithComplexIndices_Select.W_Clust3.Relation(); } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.W_Clust3 orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.W_Clust3 orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... clust3 = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.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_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E IN(String... clust3) { Validator.validateTrue(ArrayUtils.isNotEmpty(clust3), "Varargs for field '%s' should not be null/empty", "clust3"); where.and(QueryBuilder.in("clust3",QueryBuilder.bindMarker("clust3"))); final List varargs = Arrays.asList((Object[])clust3); final List encodedVarargs = Arrays.stream((String[])clust3).map(x -> meta.clust3.encodeFromJava(x, Optional.of(cassandraOptions))).collect(Collectors.toList()); boundValues.add(varargs); encodedValues.add(encodedVarargs); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt(String clust3) { where.and(QueryBuilder.gt("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte(String clust3) { where.and(QueryBuilder.gte("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lt(String clust3) { where.and(QueryBuilder.lt("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Lte(String clust3) { where.and(QueryBuilder.lte("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 > ? AND clust3 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lt(String clust3_Gt, String clust3_Lt) { where.and(QueryBuilder.gt("clust3",QueryBuilder.bindMarker("clust3_Lt"))); where.and(QueryBuilder.lt("clust3",QueryBuilder.bindMarker("clust3_Lt"))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 > ? AND clust3 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gt_And_Lte(String clust3_Gt, String clust3_Lte) { where.and(QueryBuilder.gt("clust3",QueryBuilder.bindMarker("clust3_Lte"))); where.and(QueryBuilder.lte("clust3",QueryBuilder.bindMarker("clust3_Lte"))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 >= ? AND clust3 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lt(String clust3_Gte, String clust3_Lt) { where.and(QueryBuilder.gte("clust3",QueryBuilder.bindMarker("clust3_Lt"))); where.and(QueryBuilder.lt("clust3",QueryBuilder.bindMarker("clust3_Lt"))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 >= ? AND clust3 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E Gte_And_Lte(String clust3_Gte, String clust3_Lte) { where.and(QueryBuilder.gte("clust3",QueryBuilder.bindMarker("clust3_Lte"))); where.and(QueryBuilder.lte("clust3",QueryBuilder.bindMarker("clust3_Lte"))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E(where, cassandraOptions); } } } public final class E extends AbstractSelectWhere { public E(Select.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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.E limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } @Override protected final EntityWithComplexIndices_Select.E getThis() { return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.E orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.E orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } } public final class W_TM_Id extends AbstractSelectWherePartitionTypeMap { public W_TM_Id(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } public final EntityWithComplexIndices_Select.W_TM_Id.Relation id() { return new EntityWithComplexIndices_Select.W_TM_Id.Relation(); } public final EntityWithComplexIndices_Select.W_TM_Id.Token tokenValueOf_id() { return new EntityWithComplexIndices_Select.W_TM_Id.Token(); } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... id = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_TM_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_Select.W_TM_Clust1(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... id IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_TM_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_Select.W_TM_Clust1(where, cassandraOptions); } } public final class Token { /** * Generate a SELECT ... FROM ... WHERE ... token(id) = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Eq(Long tokenValue) { where.and(QueryBuilder.eq("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt(Long tokenValue) { where.and(QueryBuilder.gt("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte(Long tokenValue) { where.and(QueryBuilder.gte("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lt(Long tokenValue) { where.and(QueryBuilder.lt("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lte(Long tokenValue) { where.and(QueryBuilder.lte("token(id)", QueryBuilder.bindMarker("tokenValue"))); boundValues.add(tokenValue); encodedValues.add(tokenValue); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lt(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gt("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lt("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lte(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gt("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lte("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lt(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gte("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lt("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lte(Long tokenValue1, Long tokenValue2) { where.and(QueryBuilder.gte("token(id)",QueryBuilder.bindMarker("tokenValue1"))); where.and(QueryBuilder.lte("token(id)",QueryBuilder.bindMarker("tokenValue2"))); boundValues.add(tokenValue1); encodedValues.add(tokenValue1); boundValues.add(tokenValue2); encodedValues.add(tokenValue2); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } } public final class W_TM_Clust1 extends AbstractSelectWhereTypeMap { public W_TM_Clust1(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } @Override protected final EntityWithComplexIndices_Select.W_TM_Clust1 getThis() { return this; } @Override protected final AbstractEntityProperty getMetaInternal() { return meta; } @Override protected final Class getEntityClass() { return entityClass; } @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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.W_TM_Clust1 limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } public final EntityWithComplexIndices_Select.W_TM_Clust1.Relation clust1() { return new EntityWithComplexIndices_Select.W_TM_Clust1.Relation(); } public final EntityWithComplexIndices_Select.W_TM_Clust1.clust1_clust2 clust1_clust2() { return new EntityWithComplexIndices_Select.W_TM_Clust1.clust1_clust2(); } public final EntityWithComplexIndices_Select.W_TM_Clust1.clust1_clust2_clust3 clust1_clust2_clust3() { return new EntityWithComplexIndices_Select.W_TM_Clust1.clust1_clust2_clust3(); } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.W_TM_Clust1 orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.W_TM_Clust1 orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... clust1 = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_TM_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_Select.W_TM_Clust2(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_TM_Clust2 IN(int... clust1) { Validator.validateTrue(ArrayUtils.isNotEmpty(clust1), "Varargs for field '%s' should not be null/empty", "clust1"); where.and(QueryBuilder.in("clust1",QueryBuilder.bindMarker("clust1"))); final List varargs = Arrays.asList((int[])clust1); final List encodedVarargs = new ArrayList<>(clust1.length);; for(int clust1_element : clust1) { encodedVarargs.add(meta.clust1.encodeFromJava(clust1_element, Optional.of(cassandraOptions))); } boundValues.add(varargs); encodedValues.add(encodedVarargs); return new EntityWithComplexIndices_Select.W_TM_Clust2(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt(int clust1) { where.and(QueryBuilder.gt("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte(int clust1) { where.and(QueryBuilder.gte("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lt(int clust1) { where.and(QueryBuilder.lt("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lte(int clust1) { where.and(QueryBuilder.lte("clust1", QueryBuilder.bindMarker("clust1"))); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 > ? AND clust1 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lt(int clust1_Gt, int clust1_Lt) { where.and(QueryBuilder.gt("clust1",QueryBuilder.bindMarker("clust1_Lt"))); where.and(QueryBuilder.lt("clust1",QueryBuilder.bindMarker("clust1_Lt"))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 > ? AND clust1 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lte(int clust1_Gt, int clust1_Lte) { where.and(QueryBuilder.gt("clust1",QueryBuilder.bindMarker("clust1_Lte"))); where.and(QueryBuilder.lte("clust1",QueryBuilder.bindMarker("clust1_Lte"))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 >= ? AND clust1 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lt(int clust1_Gte, int clust1_Lt) { where.and(QueryBuilder.gte("clust1",QueryBuilder.bindMarker("clust1_Lt"))); where.and(QueryBuilder.lt("clust1",QueryBuilder.bindMarker("clust1_Lt"))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust1 >= ? AND clust1 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lte(int clust1_Gte, int clust1_Lte) { where.and(QueryBuilder.gte("clust1",QueryBuilder.bindMarker("clust1_Lte"))); where.and(QueryBuilder.lte("clust1",QueryBuilder.bindMarker("clust1_Lte"))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } public final class clust1_clust2 { /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt(final int clust1, final int clust2) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte(final int clust1, final int clust2) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lt(final int clust1, final int clust2) { where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lte(final int clust1, final int clust2) { where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lt(final int clust1_Gt, final int clust2_Gt, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lte(final int clust1_Gt, final int clust2_Gt, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lt(final int clust1_Gte, final int clust2_Gte, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lte(final int clust1_Gte, final int clust2_Gte, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gt_And_clust1_Lt(final int clust1_Gt, final int clust2_Gt, final int clust1_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gt_And_clust1_Lte(final int clust1_Gt, final int clust2_Gt, final int clust1_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gte_And_clust1_Lt(final int clust1_Gte, final int clust2_Gte, final int clust1_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gte_And_clust1_Lte(final int clust1_Gte, final int clust2_Gte, final int clust1_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) > ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_Gt_And_clust1_And_clust2_Lt(final int clust1_Gt, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) > ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_Gt_And_clust1_And_clust2_Lte(final int clust1_Gt, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) >= ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_Gte_And_clust1_And_clust2_Lt(final int clust1_Gte, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1) >= ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_Gte_And_clust1_And_clust2_Lte(final int clust1_Gte, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1"), Arrays.asList("clust1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } public final class clust1_clust2_clust3 { /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lt(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lte(final int clust1, final int clust2, final String clust3) { where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust1); encodedValues.add(meta.clust1.encodeFromJava(clust1, Optional.of(cassandraOptions))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lt(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lte(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lt(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lte(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_And_clust3_Gt_And_clust1_And_clust2_Lt(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) > ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_And_clust3_Gt_And_clust1_And_clust2_Lte(final int clust1_Gt, final int clust2_Gt, final String clust3_Gt, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_And_clust3_Gte_And_clust1_And_clust2_Lt(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lt, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2,clust3) >= ? AND (clust1,clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_And_clust3_Gte_And_clust1_And_clust2_Lte(final int clust1_Gte, final int clust2_Gte, final String clust3_Gte, final int clust1_Lte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gt_And_clust1_And_clust2_And_clust3_Lt(final int clust1_Gt, final int clust2_Gt, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) > ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gt_And_clust1_And_clust2_And_clust3_Lte(final int clust1_Gt, final int clust2_Gt, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gte_And_clust1_And_clust2_And_clust3_Lt(final int clust1_Gte, final int clust2_Gte, final int clust1_Lt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lt); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust1,clust2) >= ? AND (clust1,clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust1_And_clust2_Gte_And_clust1_And_clust2_And_clust3_Lte(final int clust1_Gte, final int clust2_Gte, final int clust1_Lte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust1","clust2"), Arrays.asList("clust1","clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust1","clust2","clust3"), Arrays.asList("clust1","clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust1_Gte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust1_Lte); encodedValues.add(meta.clust1.encodeFromJava(clust1_Lte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } } public final class W_TM_Clust2 extends AbstractSelectWhereTypeMap { public W_TM_Clust2(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } @Override protected final EntityWithComplexIndices_Select.W_TM_Clust2 getThis() { return this; } @Override protected final AbstractEntityProperty getMetaInternal() { return meta; } @Override protected final Class getEntityClass() { return entityClass; } @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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.W_TM_Clust2 limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } public final EntityWithComplexIndices_Select.W_TM_Clust2.Relation clust2() { return new EntityWithComplexIndices_Select.W_TM_Clust2.Relation(); } public final EntityWithComplexIndices_Select.W_TM_Clust2.clust2_clust3 clust2_clust3() { return new EntityWithComplexIndices_Select.W_TM_Clust2.clust2_clust3(); } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.W_TM_Clust2 orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.W_TM_Clust2 orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... clust2 = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_TM_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_Select.W_TM_Clust3(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.W_TM_Clust3 IN(int... clust2) { Validator.validateTrue(ArrayUtils.isNotEmpty(clust2), "Varargs for field '%s' should not be null/empty", "clust2"); where.and(QueryBuilder.in("clust2",QueryBuilder.bindMarker("clust2"))); final List varargs = Arrays.asList((int[])clust2); final List encodedVarargs = new ArrayList<>(clust2.length);; for(int clust2_element : clust2) { encodedVarargs.add(meta.clust2.encodeFromJava(clust2_element, Optional.of(cassandraOptions))); } boundValues.add(varargs); encodedValues.add(encodedVarargs); return new EntityWithComplexIndices_Select.W_TM_Clust3(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt(int clust2) { where.and(QueryBuilder.gt("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte(int clust2) { where.and(QueryBuilder.gte("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lt(int clust2) { where.and(QueryBuilder.lt("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lte(int clust2) { where.and(QueryBuilder.lte("clust2", QueryBuilder.bindMarker("clust2"))); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 > ? AND clust2 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lt(int clust2_Gt, int clust2_Lt) { where.and(QueryBuilder.gt("clust2",QueryBuilder.bindMarker("clust2_Lt"))); where.and(QueryBuilder.lt("clust2",QueryBuilder.bindMarker("clust2_Lt"))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 > ? AND clust2 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lte(int clust2_Gt, int clust2_Lte) { where.and(QueryBuilder.gt("clust2",QueryBuilder.bindMarker("clust2_Lte"))); where.and(QueryBuilder.lte("clust2",QueryBuilder.bindMarker("clust2_Lte"))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 >= ? AND clust2 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lt(int clust2_Gte, int clust2_Lt) { where.and(QueryBuilder.gte("clust2",QueryBuilder.bindMarker("clust2_Lt"))); where.and(QueryBuilder.lt("clust2",QueryBuilder.bindMarker("clust2_Lt"))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust2 >= ? AND clust2 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lte(int clust2_Gte, int clust2_Lte) { where.and(QueryBuilder.gte("clust2",QueryBuilder.bindMarker("clust2_Lte"))); where.and(QueryBuilder.lte("clust2",QueryBuilder.bindMarker("clust2_Lte"))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } public final class clust2_clust3 { /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt(final int clust2, final String clust3) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte(final int clust2, final String clust3) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lt(final int clust2, final String clust3) { where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lte(final int clust2, final String clust3) { where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); final TupleType tupleType = rte.tupleTypeFactory.typeFor(); boundValues.add(clust2); encodedValues.add(meta.clust2.encodeFromJava(clust2, Optional.of(cassandraOptions))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lt(final int clust2_Gt, final String clust3_Gt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lte(final int clust2_Gt, final String clust3_Gt, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lt(final int clust2_Gte, final String clust3_Gte, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lte(final int clust2_Gte, final String clust3_Gte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_And_clust3_Gt_And_clust2_Lt(final int clust2_Gt, final String clust3_Gt, final int clust2_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) > ? AND (clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_And_clust3_Gt_And_clust2_Lte(final int clust2_Gt, final String clust3_Gt, final int clust2_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_And_clust3_Gte_And_clust2_Lt(final int clust2_Gte, final String clust3_Gte, final int clust2_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2,clust3) >= ? AND (clust2) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_And_clust3_Gte_And_clust2_Lte(final int clust2_Gte, final String clust3_Gte, final int clust2_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) > ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_Gt_And_clust2_And_clust3_Lt(final int clust2_Gt, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) > ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_Gt_And_clust2_And_clust3_Lte(final int clust2_Gt, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gt(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gt, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) >= ? AND (clust2,clust3) < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_Gte_And_clust2_And_clust3_Lt(final int clust2_Gte, final int clust2_Lt, final String clust3_Lt) { where.and(QueryBuilder.gte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lt(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lt); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... (clust2) >= ? AND (clust2,clust3) <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM clust2_Gte_And_clust2_And_clust3_Lte(final int clust2_Gte, final int clust2_Lte, final String clust3_Lte) { where.and(QueryBuilder.gte(Arrays.asList("clust2"), Arrays.asList("clust2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); where.and(QueryBuilder.lte(Arrays.asList("clust2","clust3"), Arrays.asList("clust2","clust3").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList()))); boundValues.add(clust2_Gte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Gte, Optional.of(cassandraOptions))); boundValues.add(clust2_Lte); encodedValues.add(meta.clust2.encodeFromJava(clust2_Lte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } } public final class W_TM_Clust3 extends AbstractSelectWhereTypeMap { public W_TM_Clust3(Select.Where where, CassandraOptions cassandraOptions) { super(where, cassandraOptions); } @Override protected final EntityWithComplexIndices_Select.W_TM_Clust3 getThis() { return this; } @Override protected final AbstractEntityProperty getMetaInternal() { return meta; } @Override protected final Class getEntityClass() { return entityClass; } @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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.W_TM_Clust3 limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } public final EntityWithComplexIndices_Select.W_TM_Clust3.Relation clust3() { return new EntityWithComplexIndices_Select.W_TM_Clust3.Relation(); } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.W_TM_Clust3 orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.W_TM_Clust3 orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } public final class Relation { /** * Generate a SELECT ... FROM ... WHERE ... clust3 = ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM 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_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 IN ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM IN(String... clust3) { Validator.validateTrue(ArrayUtils.isNotEmpty(clust3), "Varargs for field '%s' should not be null/empty", "clust3"); where.and(QueryBuilder.in("clust3",QueryBuilder.bindMarker("clust3"))); final List varargs = Arrays.asList((Object[])clust3); final List encodedVarargs = Arrays.stream((String[])clust3).map(x -> meta.clust3.encodeFromJava(x, Optional.of(cassandraOptions))).collect(Collectors.toList()); boundValues.add(varargs); encodedValues.add(encodedVarargs); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 > ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt(String clust3) { where.and(QueryBuilder.gt("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 >= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte(String clust3) { where.and(QueryBuilder.gte("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lt(String clust3) { where.and(QueryBuilder.lt("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Lte(String clust3) { where.and(QueryBuilder.lte("clust3", QueryBuilder.bindMarker("clust3"))); boundValues.add(clust3); encodedValues.add(meta.clust3.encodeFromJava(clust3, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 > ? AND clust3 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lt(String clust3_Gt, String clust3_Lt) { where.and(QueryBuilder.gt("clust3",QueryBuilder.bindMarker("clust3_Lt"))); where.and(QueryBuilder.lt("clust3",QueryBuilder.bindMarker("clust3_Lt"))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 > ? AND clust3 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gt_And_Lte(String clust3_Gt, String clust3_Lte) { where.and(QueryBuilder.gt("clust3",QueryBuilder.bindMarker("clust3_Lte"))); where.and(QueryBuilder.lte("clust3",QueryBuilder.bindMarker("clust3_Lte"))); boundValues.add(clust3_Gt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gt, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 >= ? AND clust3 < ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lt(String clust3_Gte, String clust3_Lt) { where.and(QueryBuilder.gte("clust3",QueryBuilder.bindMarker("clust3_Lt"))); where.and(QueryBuilder.lt("clust3",QueryBuilder.bindMarker("clust3_Lt"))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lt); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lt, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } /** * Generate a SELECT ... FROM ... WHERE ... clust3 >= ? AND clust3 <= ? */ @SuppressWarnings("static-access") public final EntityWithComplexIndices_Select.E_TM Gte_And_Lte(String clust3_Gte, String clust3_Lte) { where.and(QueryBuilder.gte("clust3",QueryBuilder.bindMarker("clust3_Lte"))); where.and(QueryBuilder.lte("clust3",QueryBuilder.bindMarker("clust3_Lte"))); boundValues.add(clust3_Gte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Gte, Optional.of(cassandraOptions))); boundValues.add(clust3_Lte); encodedValues.add(meta.clust3.encodeFromJava(clust3_Lte, Optional.of(cassandraOptions))); return new EntityWithComplexIndices_Select.E_TM(where, cassandraOptions); } } } public final class E_TM extends AbstractSelectWhereTypeMap { public E_TM(Select.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; } /** * Generate a SELECT ... FROM ... WHERE ... LIMIT :limit */ public final EntityWithComplexIndices_Select.E_TM limit(final Integer limit) { where.limit(QueryBuilder.bindMarker("lim")); boundValues.add(limit); encodedValues.add(limit); return this; } @Override protected final EntityWithComplexIndices_Select.E_TM getThis() { return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 ASC */ public final EntityWithComplexIndices_Select.E_TM orderByClust1Ascending() { where.orderBy(QueryBuilder.asc("clust1")); return this; } /** * Generate a SELECT ... FROM ... WHERE ... ORDER BY clust1 DESC */ public final EntityWithComplexIndices_Select.E_TM orderByClust1Descending() { where.orderBy(QueryBuilder.desc("clust1")); return this; } } }