Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
info.archinnov.achilles.generated.dsl.MultiClusteringEntity_Select Maven / Gradle / Ivy
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.MultiClusteringEntity_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.AbstractSelectFromJSON;
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.AbstractSelectWhereJSON;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWherePartition;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWherePartitionJSON;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWherePartitionTypeMap;
import info.archinnov.achilles.internals.dsl.query.select.AbstractSelectWhereTypeMap;
import info.archinnov.achilles.internals.entities.MultiClusteringEntity;
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 MultiClusteringEntity_Select extends AbstractSelect {
protected final MultiClusteringEntity_AchillesMeta meta;
protected final Class entityClass = MultiClusteringEntity.class;
public MultiClusteringEntity_Select(RuntimeEngine rte, MultiClusteringEntity_AchillesMeta meta) {
super(rte);
this.meta = meta;
}
/**
* Generate a SELECT ... id ... */
public final MultiClusteringEntity_Select.Cols id() {
select.column("id");
return new MultiClusteringEntity_Select.Cols(select);
}
/**
* Generate a SELECT ... c1 ... */
public final MultiClusteringEntity_Select.Cols c1() {
select.column("c1");
return new MultiClusteringEntity_Select.Cols(select);
}
/**
* Generate a SELECT ... c2 ... */
public final MultiClusteringEntity_Select.Cols c2() {
select.column("c2");
return new MultiClusteringEntity_Select.Cols(select);
}
/**
* Generate a SELECT ... value ... */
public final MultiClusteringEntity_Select.Cols value() {
select.column("value");
return new MultiClusteringEntity_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 MultiClusteringEntity_Select.ColsTM function(final FunctionCall functionCall, final String alias) {
functionCall.addToSelect(select, alias);
return new MultiClusteringEntity_Select.ColsTM(select);
}
/**
* Generate ... * FROM ... */
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.F(where, new CassandraOptions());
}
/**
* Generate ... * FROM ... using the given SchemaNameProvider */
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider));
}
/**
* Generate ... * FROM ... */
public final MultiClusteringEntity_Select.F_J allColumnsAsJSON_FromBaseTable() {
final Select.Where where = select.json().all().from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
return new MultiClusteringEntity_Select.F_J(where, new CassandraOptions());
}
/**
* Generate ... * FROM ... using the given SchemaNameProvider */
public final MultiClusteringEntity_Select.F_J allColumnsAsJSON_From(final SchemaNameProvider schemaNameProvider) {
final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass);
final String currentTable = lookupTable(schemaNameProvider, meta.entityClass);
final Select.Where where = select.json().all().from(currentKeyspace, currentTable).where();
return new MultiClusteringEntity_Select.F_J(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider));
}
public class Cols extends AbstractSelectColumns {
public Cols(Select.Selection selection) {
super(selection);
}
/**
* Generate a SELECT ... id ... */
public final MultiClusteringEntity_Select.Cols id() {
selection.column("id");
return this;
}
/**
* Generate a SELECT ... c1 ... */
public final MultiClusteringEntity_Select.Cols c1() {
selection.column("c1");
return this;
}
/**
* Generate a SELECT ... c2 ... */
public final MultiClusteringEntity_Select.Cols c2() {
selection.column("c2");
return this;
}
/**
* Generate a SELECT ... value ... */
public final MultiClusteringEntity_Select.Cols value() {
selection.column("value");
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 MultiClusteringEntity_Select.ColsTM function(final FunctionCall functionCall, final String alias) {
functionCall.addToSelect(selection, alias);
return new MultiClusteringEntity_Select.ColsTM(select);
}
/**
* Generate a ... FROM xxx ... */
public final MultiClusteringEntity_Select.F fromBaseTable() {
final Select.Where where = selection.from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
return new MultiClusteringEntity_Select.F(where, new CassandraOptions());
}
/**
* Generate a ... FROM xxx ... using the given SchemaNameProvider */
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider));
}
}
public class ColsTM extends AbstractSelectColumnsTypeMap {
public ColsTM(Select.Selection selection) {
super(selection);
}
/**
* Generate a SELECT ... id ... */
public final MultiClusteringEntity_Select.ColsTM id() {
selection.column("id");
return this;
}
/**
* Generate a SELECT ... c1 ... */
public final MultiClusteringEntity_Select.ColsTM c1() {
selection.column("c1");
return this;
}
/**
* Generate a SELECT ... c2 ... */
public final MultiClusteringEntity_Select.ColsTM c2() {
selection.column("c2");
return this;
}
/**
* Generate a SELECT ... value ... */
public final MultiClusteringEntity_Select.ColsTM value() {
selection.column("value");
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 MultiClusteringEntity_Select.ColsTM function(final FunctionCall functionCall, final String alias) {
functionCall.addToSelect(selection, alias);
return this;
}
/**
* Generate a ... FROM xxx ... */
public final MultiClusteringEntity_Select.F_TM fromBaseTable() {
final Select.Where where = selection.from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
return new MultiClusteringEntity_Select.F_TM(where, new CassandraOptions());
}
/**
* Generate a ... FROM xxx ... using the given SchemaNameProvider */
public final MultiClusteringEntity_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 MultiClusteringEntity_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 MultiClusteringEntity_Select.W_Id where() {
return new MultiClusteringEntity_Select.W_Id(where, cassandraOptions);
}
/**
* Generate a SELECT statement without the WHERE clause */
public final MultiClusteringEntity_Select.E without_WHERE_Clause() {
return new MultiClusteringEntity_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 MultiClusteringEntity_Select.W_TM_Id where() {
return new MultiClusteringEntity_Select.W_TM_Id(where, cassandraOptions);
}
/**
* Generate a SELECT statement without the WHERE clause */
public final MultiClusteringEntity_Select.E_TM without_WHERE_Clause() {
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
}
public class F_J extends AbstractSelectFromJSON {
F_J(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... */
public final MultiClusteringEntity_Select.W_J_Id where() {
return new MultiClusteringEntity_Select.W_J_Id(where, cassandraOptions);
}
/**
* Generate a SELECT statement without the WHERE clause */
public final MultiClusteringEntity_Select.E_J without_WHERE_Clause() {
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
}
public final class W_Id extends AbstractSelectWherePartition {
public W_Id(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
public final MultiClusteringEntity_Select.W_Id.Relation id() {
return new MultiClusteringEntity_Select.W_Id.Relation();
}
public final MultiClusteringEntity_Select.W_Id.Token tokenValueOf_id() {
return new MultiClusteringEntity_Select.W_Id.Token();
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... id = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_C1 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 MultiClusteringEntity_Select.W_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_C1 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 MultiClusteringEntity_Select.W_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id = fromJson(?) */
public final MultiClusteringEntity_Select.W_C1 Eq_FromJson(String id) {
where.and(QueryBuilder.eq("id", QueryBuilder.fromJson(QueryBuilder.bindMarker("id"))));
boundValues.add(id);
encodedValues.add(id);
return new MultiClusteringEntity_Select.W_C1(where, cassandraOptions);
}
}
public final class Token {
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Eq(Long tokenValue) {
where.and(QueryBuilder.eq("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt(Long tokenValue) {
where.and(QueryBuilder.gt("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte(Long tokenValue) {
where.and(QueryBuilder.gte("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lt(Long tokenValue) {
where.and(QueryBuilder.lt("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lte(Long tokenValue) {
where.and(QueryBuilder.lte("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E(where, cassandraOptions);
}
}
}
public final class W_C1 extends AbstractSelectWhere {
public W_C1(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Select.W_C1 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 MultiClusteringEntity_Select.W_C1 limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
public final MultiClusteringEntity_Select.W_C1.Relation c1() {
return new MultiClusteringEntity_Select.W_C1.Relation();
}
public final MultiClusteringEntity_Select.W_C1.c1_c2 c1_c2() {
return new MultiClusteringEntity_Select.W_C1.c1_c2();
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.W_C1 orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.W_C1 orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_C2 Eq(int c1) {
where.and(QueryBuilder.eq("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.W_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_C2 IN(int... c1) {
Validator.validateTrue(ArrayUtils.isNotEmpty(c1), "Varargs for field '%s' should not be null/empty", "c1");
where.and(QueryBuilder.in("c1",QueryBuilder.bindMarker("c1")));
final List varargs = Arrays.asList((int[])c1);
final List encodedVarargs = new ArrayList<>(c1.length);;
for(int c1_element : c1) {
encodedVarargs.add(meta.c1.encodeFromJava(c1_element, Optional.of(cassandraOptions)));
}
boundValues.add(varargs);
encodedValues.add(encodedVarargs);
return new MultiClusteringEntity_Select.W_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt(int c1) {
where.and(QueryBuilder.gt("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte(int c1) {
where.and(QueryBuilder.gte("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lt(int c1) {
where.and(QueryBuilder.lt("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lte(int c1) {
where.and(QueryBuilder.lte("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt_And_Lt(int c1_Gt, int c1_Lt) {
where.and(QueryBuilder.gt("c1",QueryBuilder.bindMarker("c1_Lt")));
where.and(QueryBuilder.lt("c1",QueryBuilder.bindMarker("c1_Lt")));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt_And_Lte(int c1_Gt, int c1_Lte) {
where.and(QueryBuilder.gt("c1",QueryBuilder.bindMarker("c1_Lte")));
where.and(QueryBuilder.lte("c1",QueryBuilder.bindMarker("c1_Lte")));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte_And_Lt(int c1_Gte, int c1_Lt) {
where.and(QueryBuilder.gte("c1",QueryBuilder.bindMarker("c1_Lt")));
where.and(QueryBuilder.lt("c1",QueryBuilder.bindMarker("c1_Lt")));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte_And_Lte(int c1_Gte, int c1_Lte) {
where.and(QueryBuilder.gte("c1",QueryBuilder.bindMarker("c1_Lte")));
where.and(QueryBuilder.lte("c1",QueryBuilder.bindMarker("c1_Lte")));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = fromJson(?) */
public final MultiClusteringEntity_Select.W_C2 Eq_FromJson(String c1) {
where.and(QueryBuilder.eq("c1", QueryBuilder.fromJson(QueryBuilder.bindMarker("c1"))));
boundValues.add(c1);
encodedValues.add(c1);
return new MultiClusteringEntity_Select.W_C2(where, cassandraOptions);
}
}
public final class c1_c2 {
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt(final int c1, final int c2) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte(final int c1, final int c2) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lt(final int c1, final int c2) {
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lte(final int c1, final int c2) {
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt_And_Lt(final int c1_Gt, final int c2_Gt, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt_And_Lte(final int c1_Gt, final int c2_Gt, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte_And_Lt(final int c1_Gte, final int c2_Gte, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte_And_Lte(final int c1_Gte, final int c2_Gte, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_And_c2_Gt_And_c1_Lt(final int c1_Gt, final int c2_Gt, final int c1_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_And_c2_Gt_And_c1_Lte(final int c1_Gt, final int c2_Gt, final int c1_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_And_c2_Gte_And_c1_Lt(final int c1_Gte, final int c2_Gte, final int c1_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_And_c2_Gte_And_c1_Lte(final int c1_Gte, final int c2_Gte, final int c1_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_Gt_And_c1_And_c2_Lt(final int c1_Gt, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_Gt_And_c1_And_c2_Lte(final int c1_Gt, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_Gte_And_c1_And_c2_Lt(final int c1_Gte, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E c1_Gte_And_c1_And_c2_Lte(final int c1_Gte, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
}
}
public final class W_C2 extends AbstractSelectWhere {
public W_C2(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Select.W_C2 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 MultiClusteringEntity_Select.W_C2 limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
public final MultiClusteringEntity_Select.W_C2.Relation c2() {
return new MultiClusteringEntity_Select.W_C2.Relation();
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.W_C2 orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.W_C2 orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Eq(int c2) {
where.and(QueryBuilder.eq("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E IN(int... c2) {
Validator.validateTrue(ArrayUtils.isNotEmpty(c2), "Varargs for field '%s' should not be null/empty", "c2");
where.and(QueryBuilder.in("c2",QueryBuilder.bindMarker("c2")));
final List varargs = Arrays.asList((int[])c2);
final List encodedVarargs = new ArrayList<>(c2.length);;
for(int c2_element : c2) {
encodedVarargs.add(meta.c2.encodeFromJava(c2_element, Optional.of(cassandraOptions)));
}
boundValues.add(varargs);
encodedValues.add(encodedVarargs);
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt(int c2) {
where.and(QueryBuilder.gt("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte(int c2) {
where.and(QueryBuilder.gte("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lt(int c2) {
where.and(QueryBuilder.lt("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Lte(int c2) {
where.and(QueryBuilder.lte("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt_And_Lt(int c2_Gt, int c2_Lt) {
where.and(QueryBuilder.gt("c2",QueryBuilder.bindMarker("c2_Lt")));
where.and(QueryBuilder.lt("c2",QueryBuilder.bindMarker("c2_Lt")));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gt_And_Lte(int c2_Gt, int c2_Lte) {
where.and(QueryBuilder.gt("c2",QueryBuilder.bindMarker("c2_Lte")));
where.and(QueryBuilder.lte("c2",QueryBuilder.bindMarker("c2_Lte")));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte_And_Lt(int c2_Gte, int c2_Lt) {
where.and(QueryBuilder.gte("c2",QueryBuilder.bindMarker("c2_Lt")));
where.and(QueryBuilder.lt("c2",QueryBuilder.bindMarker("c2_Lt")));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E Gte_And_Lte(int c2_Gte, int c2_Lte) {
where.and(QueryBuilder.gte("c2",QueryBuilder.bindMarker("c2_Lte")));
where.and(QueryBuilder.lte("c2",QueryBuilder.bindMarker("c2_Lte")));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = fromJson(?) */
public final MultiClusteringEntity_Select.E Eq_FromJson(String c2) {
where.and(QueryBuilder.eq("c2", QueryBuilder.fromJson(QueryBuilder.bindMarker("c2"))));
boundValues.add(c2);
encodedValues.add(c2);
return new MultiClusteringEntity_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 MultiClusteringEntity_Select.E limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
@Override
protected final MultiClusteringEntity_Select.E getThis() {
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.E orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.E orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
}
public final class W_TM_Id extends AbstractSelectWherePartitionTypeMap {
public W_TM_Id(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
public final MultiClusteringEntity_Select.W_TM_Id.Relation id() {
return new MultiClusteringEntity_Select.W_TM_Id.Relation();
}
public final MultiClusteringEntity_Select.W_TM_Id.Token tokenValueOf_id() {
return new MultiClusteringEntity_Select.W_TM_Id.Token();
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... id = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_TM_C1 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 MultiClusteringEntity_Select.W_TM_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_TM_C1 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 MultiClusteringEntity_Select.W_TM_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id = fromJson(?) */
public final MultiClusteringEntity_Select.W_TM_C1 Eq_FromJson(String id) {
where.and(QueryBuilder.eq("id", QueryBuilder.fromJson(QueryBuilder.bindMarker("id"))));
boundValues.add(id);
encodedValues.add(id);
return new MultiClusteringEntity_Select.W_TM_C1(where, cassandraOptions);
}
}
public final class Token {
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Eq(Long tokenValue) {
where.and(QueryBuilder.eq("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt(Long tokenValue) {
where.and(QueryBuilder.gt("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte(Long tokenValue) {
where.and(QueryBuilder.gte("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lt(Long tokenValue) {
where.and(QueryBuilder.lt("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lte(Long tokenValue) {
where.and(QueryBuilder.lte("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_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 MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
}
}
public final class W_TM_C1 extends AbstractSelectWhereTypeMap {
public W_TM_C1(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Select.W_TM_C1 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 MultiClusteringEntity_Select.W_TM_C1 limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
public final MultiClusteringEntity_Select.W_TM_C1.Relation c1() {
return new MultiClusteringEntity_Select.W_TM_C1.Relation();
}
public final MultiClusteringEntity_Select.W_TM_C1.c1_c2 c1_c2() {
return new MultiClusteringEntity_Select.W_TM_C1.c1_c2();
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.W_TM_C1 orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.W_TM_C1 orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_TM_C2 Eq(int c1) {
where.and(QueryBuilder.eq("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.W_TM_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_TM_C2 IN(int... c1) {
Validator.validateTrue(ArrayUtils.isNotEmpty(c1), "Varargs for field '%s' should not be null/empty", "c1");
where.and(QueryBuilder.in("c1",QueryBuilder.bindMarker("c1")));
final List varargs = Arrays.asList((int[])c1);
final List encodedVarargs = new ArrayList<>(c1.length);;
for(int c1_element : c1) {
encodedVarargs.add(meta.c1.encodeFromJava(c1_element, Optional.of(cassandraOptions)));
}
boundValues.add(varargs);
encodedValues.add(encodedVarargs);
return new MultiClusteringEntity_Select.W_TM_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt(int c1) {
where.and(QueryBuilder.gt("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte(int c1) {
where.and(QueryBuilder.gte("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lt(int c1) {
where.and(QueryBuilder.lt("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lte(int c1) {
where.and(QueryBuilder.lte("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt_And_Lt(int c1_Gt, int c1_Lt) {
where.and(QueryBuilder.gt("c1",QueryBuilder.bindMarker("c1_Lt")));
where.and(QueryBuilder.lt("c1",QueryBuilder.bindMarker("c1_Lt")));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt_And_Lte(int c1_Gt, int c1_Lte) {
where.and(QueryBuilder.gt("c1",QueryBuilder.bindMarker("c1_Lte")));
where.and(QueryBuilder.lte("c1",QueryBuilder.bindMarker("c1_Lte")));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte_And_Lt(int c1_Gte, int c1_Lt) {
where.and(QueryBuilder.gte("c1",QueryBuilder.bindMarker("c1_Lt")));
where.and(QueryBuilder.lt("c1",QueryBuilder.bindMarker("c1_Lt")));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte_And_Lte(int c1_Gte, int c1_Lte) {
where.and(QueryBuilder.gte("c1",QueryBuilder.bindMarker("c1_Lte")));
where.and(QueryBuilder.lte("c1",QueryBuilder.bindMarker("c1_Lte")));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = fromJson(?) */
public final MultiClusteringEntity_Select.W_TM_C2 Eq_FromJson(String c1) {
where.and(QueryBuilder.eq("c1", QueryBuilder.fromJson(QueryBuilder.bindMarker("c1"))));
boundValues.add(c1);
encodedValues.add(c1);
return new MultiClusteringEntity_Select.W_TM_C2(where, cassandraOptions);
}
}
public final class c1_c2 {
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt(final int c1, final int c2) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte(final int c1, final int c2) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lt(final int c1, final int c2) {
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lte(final int c1, final int c2) {
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt_And_Lt(final int c1_Gt, final int c2_Gt, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt_And_Lte(final int c1_Gt, final int c2_Gt, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte_And_Lt(final int c1_Gte, final int c2_Gte, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte_And_Lte(final int c1_Gte, final int c2_Gte, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_And_c2_Gt_And_c1_Lt(final int c1_Gt, final int c2_Gt, final int c1_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_And_c2_Gt_And_c1_Lte(final int c1_Gt, final int c2_Gt, final int c1_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_And_c2_Gte_And_c1_Lt(final int c1_Gte, final int c2_Gte, final int c1_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_And_c2_Gte_And_c1_Lte(final int c1_Gte, final int c2_Gte, final int c1_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_Gt_And_c1_And_c2_Lt(final int c1_Gt, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_Gt_And_c1_And_c2_Lte(final int c1_Gt, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_Gte_And_c1_And_c2_Lt(final int c1_Gte, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM c1_Gte_And_c1_And_c2_Lte(final int c1_Gte, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
}
}
public final class W_TM_C2 extends AbstractSelectWhereTypeMap {
public W_TM_C2(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Select.W_TM_C2 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 MultiClusteringEntity_Select.W_TM_C2 limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
public final MultiClusteringEntity_Select.W_TM_C2.Relation c2() {
return new MultiClusteringEntity_Select.W_TM_C2.Relation();
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.W_TM_C2 orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.W_TM_C2 orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Eq(int c2) {
where.and(QueryBuilder.eq("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM IN(int... c2) {
Validator.validateTrue(ArrayUtils.isNotEmpty(c2), "Varargs for field '%s' should not be null/empty", "c2");
where.and(QueryBuilder.in("c2",QueryBuilder.bindMarker("c2")));
final List varargs = Arrays.asList((int[])c2);
final List encodedVarargs = new ArrayList<>(c2.length);;
for(int c2_element : c2) {
encodedVarargs.add(meta.c2.encodeFromJava(c2_element, Optional.of(cassandraOptions)));
}
boundValues.add(varargs);
encodedValues.add(encodedVarargs);
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt(int c2) {
where.and(QueryBuilder.gt("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte(int c2) {
where.and(QueryBuilder.gte("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lt(int c2) {
where.and(QueryBuilder.lt("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Lte(int c2) {
where.and(QueryBuilder.lte("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt_And_Lt(int c2_Gt, int c2_Lt) {
where.and(QueryBuilder.gt("c2",QueryBuilder.bindMarker("c2_Lt")));
where.and(QueryBuilder.lt("c2",QueryBuilder.bindMarker("c2_Lt")));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gt_And_Lte(int c2_Gt, int c2_Lte) {
where.and(QueryBuilder.gt("c2",QueryBuilder.bindMarker("c2_Lte")));
where.and(QueryBuilder.lte("c2",QueryBuilder.bindMarker("c2_Lte")));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte_And_Lt(int c2_Gte, int c2_Lt) {
where.and(QueryBuilder.gte("c2",QueryBuilder.bindMarker("c2_Lt")));
where.and(QueryBuilder.lt("c2",QueryBuilder.bindMarker("c2_Lt")));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_TM Gte_And_Lte(int c2_Gte, int c2_Lte) {
where.and(QueryBuilder.gte("c2",QueryBuilder.bindMarker("c2_Lte")));
where.and(QueryBuilder.lte("c2",QueryBuilder.bindMarker("c2_Lte")));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_TM(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = fromJson(?) */
public final MultiClusteringEntity_Select.E_TM Eq_FromJson(String c2) {
where.and(QueryBuilder.eq("c2", QueryBuilder.fromJson(QueryBuilder.bindMarker("c2"))));
boundValues.add(c2);
encodedValues.add(c2);
return new MultiClusteringEntity_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 MultiClusteringEntity_Select.E_TM limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
@Override
protected final MultiClusteringEntity_Select.E_TM getThis() {
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.E_TM orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.E_TM orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
}
public final class W_J_Id extends AbstractSelectWherePartitionJSON {
public W_J_Id(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
public final MultiClusteringEntity_Select.W_J_Id.Relation id() {
return new MultiClusteringEntity_Select.W_J_Id.Relation();
}
public final MultiClusteringEntity_Select.W_J_Id.Token tokenValueOf_id() {
return new MultiClusteringEntity_Select.W_J_Id.Token();
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... id = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_J_C1 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 MultiClusteringEntity_Select.W_J_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_J_C1 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 MultiClusteringEntity_Select.W_J_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id = fromJson(?) */
public final MultiClusteringEntity_Select.W_J_C1 Eq_FromJson(String id) {
where.and(QueryBuilder.eq("id", QueryBuilder.fromJson(QueryBuilder.bindMarker("id"))));
boundValues.add(id);
encodedValues.add(id);
return new MultiClusteringEntity_Select.W_J_C1(where, cassandraOptions);
}
}
public final class Token {
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Eq(Long tokenValue) {
where.and(QueryBuilder.eq("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt(Long tokenValue) {
where.and(QueryBuilder.gt("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte(Long tokenValue) {
where.and(QueryBuilder.gte("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lt(Long tokenValue) {
where.and(QueryBuilder.lt("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lte(Long tokenValue) {
where.and(QueryBuilder.lte("token(id)", QueryBuilder.bindMarker("tokenValue")));
boundValues.add(tokenValue);
encodedValues.add(tokenValue);
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J 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 MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) > ? AND token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J 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 MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J 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 MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... token(id) >= ? AND token(id) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J 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 MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
}
}
public final class W_J_C1 extends AbstractSelectWhereJSON {
public W_J_C1(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Select.W_J_C1 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 MultiClusteringEntity_Select.W_J_C1 limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
public final MultiClusteringEntity_Select.W_J_C1.Relation c1() {
return new MultiClusteringEntity_Select.W_J_C1.Relation();
}
public final MultiClusteringEntity_Select.W_J_C1.c1_c2 c1_c2() {
return new MultiClusteringEntity_Select.W_J_C1.c1_c2();
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.W_J_C1 orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.W_J_C1 orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_J_C2 Eq(int c1) {
where.and(QueryBuilder.eq("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.W_J_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.W_J_C2 IN(int... c1) {
Validator.validateTrue(ArrayUtils.isNotEmpty(c1), "Varargs for field '%s' should not be null/empty", "c1");
where.and(QueryBuilder.in("c1",QueryBuilder.bindMarker("c1")));
final List varargs = Arrays.asList((int[])c1);
final List encodedVarargs = new ArrayList<>(c1.length);;
for(int c1_element : c1) {
encodedVarargs.add(meta.c1.encodeFromJava(c1_element, Optional.of(cassandraOptions)));
}
boundValues.add(varargs);
encodedValues.add(encodedVarargs);
return new MultiClusteringEntity_Select.W_J_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt(int c1) {
where.and(QueryBuilder.gt("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte(int c1) {
where.and(QueryBuilder.gte("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lt(int c1) {
where.and(QueryBuilder.lt("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lte(int c1) {
where.and(QueryBuilder.lte("c1", QueryBuilder.bindMarker("c1")));
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt_And_Lt(int c1_Gt, int c1_Lt) {
where.and(QueryBuilder.gt("c1",QueryBuilder.bindMarker("c1_Lt")));
where.and(QueryBuilder.lt("c1",QueryBuilder.bindMarker("c1_Lt")));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt_And_Lte(int c1_Gt, int c1_Lte) {
where.and(QueryBuilder.gt("c1",QueryBuilder.bindMarker("c1_Lte")));
where.and(QueryBuilder.lte("c1",QueryBuilder.bindMarker("c1_Lte")));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte_And_Lt(int c1_Gte, int c1_Lt) {
where.and(QueryBuilder.gte("c1",QueryBuilder.bindMarker("c1_Lt")));
where.and(QueryBuilder.lt("c1",QueryBuilder.bindMarker("c1_Lt")));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte_And_Lte(int c1_Gte, int c1_Lte) {
where.and(QueryBuilder.gte("c1",QueryBuilder.bindMarker("c1_Lte")));
where.and(QueryBuilder.lte("c1",QueryBuilder.bindMarker("c1_Lte")));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = fromJson(?) */
public final MultiClusteringEntity_Select.W_J_C2 Eq_FromJson(String c1) {
where.and(QueryBuilder.eq("c1", QueryBuilder.fromJson(QueryBuilder.bindMarker("c1"))));
boundValues.add(c1);
encodedValues.add(c1);
return new MultiClusteringEntity_Select.W_J_C2(where, cassandraOptions);
}
}
public final class c1_c2 {
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt(final int c1, final int c2) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte(final int c1, final int c2) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lt(final int c1, final int c2) {
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lte(final int c1, final int c2) {
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
final TupleType tupleType = rte.tupleTypeFactory.typeFor();
boundValues.add(c1);
encodedValues.add(meta.c1.encodeFromJava(c1, Optional.of(cassandraOptions)));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt_And_Lt(final int c1_Gt, final int c2_Gt, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt_And_Lte(final int c1_Gt, final int c2_Gt, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte_And_Lt(final int c1_Gte, final int c2_Gte, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte_And_Lte(final int c1_Gte, final int c2_Gte, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_And_c2_Gt_And_c1_Lt(final int c1_Gt, final int c2_Gt, final int c1_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_And_c2_Gt_And_c1_Lte(final int c1_Gt, final int c2_Gt, final int c1_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_And_c2_Gte_And_c1_Lt(final int c1_Gte, final int c2_Gte, final int c1_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_And_c2_Gte_And_c1_Lte(final int c1_Gte, final int c2_Gte, final int c1_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_Gt_And_c1_And_c2_Lt(final int c1_Gt, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_Gt_And_c1_And_c2_Lte(final int c1_Gt, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gt(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gt);
encodedValues.add(meta.c1.encodeFromJava(c1_Gt, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_Gte_And_c1_And_c2_Lt(final int c1_Gte, final int c1_Lt, final int c2_Lt) {
where.and(QueryBuilder.gte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lt(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lt);
encodedValues.add(meta.c1.encodeFromJava(c1_Lt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J c1_Gte_And_c1_And_c2_Lte(final int c1_Gte, final int c1_Lte, final int c2_Lte) {
where.and(QueryBuilder.gte(Arrays.asList("c1"), Arrays.asList("c1").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
where.and(QueryBuilder.lte(Arrays.asList("c1","c2"), Arrays.asList("c1","c2").stream().map(QueryBuilder::bindMarker).collect(Collectors.toList())));
boundValues.add(c1_Gte);
encodedValues.add(meta.c1.encodeFromJava(c1_Gte, Optional.of(cassandraOptions)));
boundValues.add(c1_Lte);
encodedValues.add(meta.c1.encodeFromJava(c1_Lte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
}
}
public final class W_J_C2 extends AbstractSelectWhereJSON {
public W_J_C2(Select.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Select.W_J_C2 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 MultiClusteringEntity_Select.W_J_C2 limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
public final MultiClusteringEntity_Select.W_J_C2.Relation c2() {
return new MultiClusteringEntity_Select.W_J_C2.Relation();
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.W_J_C2 orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.W_J_C2 orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Eq(int c2) {
where.and(QueryBuilder.eq("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J IN(int... c2) {
Validator.validateTrue(ArrayUtils.isNotEmpty(c2), "Varargs for field '%s' should not be null/empty", "c2");
where.and(QueryBuilder.in("c2",QueryBuilder.bindMarker("c2")));
final List varargs = Arrays.asList((int[])c2);
final List encodedVarargs = new ArrayList<>(c2.length);;
for(int c2_element : c2) {
encodedVarargs.add(meta.c2.encodeFromJava(c2_element, Optional.of(cassandraOptions)));
}
boundValues.add(varargs);
encodedValues.add(encodedVarargs);
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt(int c2) {
where.and(QueryBuilder.gt("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte(int c2) {
where.and(QueryBuilder.gte("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lt(int c2) {
where.and(QueryBuilder.lt("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Lte(int c2) {
where.and(QueryBuilder.lte("c2", QueryBuilder.bindMarker("c2")));
boundValues.add(c2);
encodedValues.add(meta.c2.encodeFromJava(c2, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt_And_Lt(int c2_Gt, int c2_Lt) {
where.and(QueryBuilder.gt("c2",QueryBuilder.bindMarker("c2_Lt")));
where.and(QueryBuilder.lt("c2",QueryBuilder.bindMarker("c2_Lt")));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gt_And_Lte(int c2_Gt, int c2_Lte) {
where.and(QueryBuilder.gt("c2",QueryBuilder.bindMarker("c2_Lte")));
where.and(QueryBuilder.lte("c2",QueryBuilder.bindMarker("c2_Lte")));
boundValues.add(c2_Gt);
encodedValues.add(meta.c2.encodeFromJava(c2_Gt, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte_And_Lt(int c2_Gte, int c2_Lt) {
where.and(QueryBuilder.gte("c2",QueryBuilder.bindMarker("c2_Lt")));
where.and(QueryBuilder.lt("c2",QueryBuilder.bindMarker("c2_Lt")));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lt);
encodedValues.add(meta.c2.encodeFromJava(c2_Lt, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Select.E_J Gte_And_Lte(int c2_Gte, int c2_Lte) {
where.and(QueryBuilder.gte("c2",QueryBuilder.bindMarker("c2_Lte")));
where.and(QueryBuilder.lte("c2",QueryBuilder.bindMarker("c2_Lte")));
boundValues.add(c2_Gte);
encodedValues.add(meta.c2.encodeFromJava(c2_Gte, Optional.of(cassandraOptions)));
boundValues.add(c2_Lte);
encodedValues.add(meta.c2.encodeFromJava(c2_Lte, Optional.of(cassandraOptions)));
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = fromJson(?) */
public final MultiClusteringEntity_Select.E_J Eq_FromJson(String c2) {
where.and(QueryBuilder.eq("c2", QueryBuilder.fromJson(QueryBuilder.bindMarker("c2"))));
boundValues.add(c2);
encodedValues.add(c2);
return new MultiClusteringEntity_Select.E_J(where, cassandraOptions);
}
}
}
public final class E_J extends AbstractSelectWhereJSON {
public E_J(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 MultiClusteringEntity_Select.E_J limit(final Integer limit) {
where.limit(QueryBuilder.bindMarker("lim"));
boundValues.add(limit);
encodedValues.add(limit);
return this;
}
@Override
protected final MultiClusteringEntity_Select.E_J getThis() {
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 ASC */
public final MultiClusteringEntity_Select.E_J orderByC1Ascending() {
where.orderBy(QueryBuilder.asc("c1"));
return this;
}
/**
* Generate a SELECT ... FROM ... WHERE ... ORDER BY c1 DESC */
public final MultiClusteringEntity_Select.E_J orderByC1Descending() {
where.orderBy(QueryBuilder.desc("c1"));
return this;
}
}
}