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_Delete Maven / Gradle / Ivy
package info.archinnov.achilles.generated.dsl;
import com.datastax.driver.core.TupleType;
import com.datastax.driver.core.querybuilder.Delete;
import com.datastax.driver.core.querybuilder.NotEq;
import com.datastax.driver.core.querybuilder.QueryBuilder;
import info.archinnov.achilles.generated.meta.entity.MultiClusteringEntity_AchillesMeta;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDelete;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteColumns;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteEnd;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteFrom;
import info.archinnov.achilles.internals.dsl.query.delete.AbstractDeleteWherePartition;
import info.archinnov.achilles.internals.entities.MultiClusteringEntity;
import info.archinnov.achilles.internals.metamodel.AbstractEntityProperty;
import info.archinnov.achilles.internals.options.CassandraOptions;
import info.archinnov.achilles.internals.runtime.RuntimeEngine;
import info.archinnov.achilles.type.SchemaNameProvider;
import info.archinnov.achilles.validation.Validator;
import java.lang.Class;
import java.lang.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_Delete extends AbstractDelete {
protected final MultiClusteringEntity_AchillesMeta meta;
protected final Class entityClass = MultiClusteringEntity.class;
public MultiClusteringEntity_Delete(RuntimeEngine rte, MultiClusteringEntity_AchillesMeta meta) {
super(rte);
this.meta = meta;
}
/**
* Generate DELETE value ... */
public final MultiClusteringEntity_Delete.Cols value() {
delete.column("value");
return new MultiClusteringEntity_Delete.Cols(delete);
}
/**
* Generate ... * FROM ... */
public final MultiClusteringEntity_Delete.F allColumns_FromBaseTable() {
final Delete.Where where = delete.all().from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
return new MultiClusteringEntity_Delete.F(where, new CassandraOptions());
}
/**
* Generate ... * FROM ... using the given SchemaNameProvider */
public final MultiClusteringEntity_Delete.F allColumns_From(final SchemaNameProvider schemaNameProvider) {
final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass);
final String currentTable = lookupTable(schemaNameProvider, meta.entityClass);
final Delete.Where where = delete.all().from(currentKeyspace, currentTable).where();
return new MultiClusteringEntity_Delete.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider));
}
public class Cols extends AbstractDeleteColumns {
Cols(Delete.Selection deleteColumns) {
super(deleteColumns);
}
/**
* Generate DELETE value ... */
public final MultiClusteringEntity_Delete.Cols value() {
delete.column("value");
return this;
}
/**
* Generate a ... FROM xxx ... */
public final MultiClusteringEntity_Delete.F fromBaseTable() {
final Delete.Where where = deleteColumns.from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
return new MultiClusteringEntity_Delete.F(where, new CassandraOptions());
}
/**
* Generate a ... FROM xxx ... using the given SchemaNameProvider */
public final MultiClusteringEntity_Delete.F from(final SchemaNameProvider schemaNameProvider) {
final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass);
final String currentTable = lookupTable(schemaNameProvider, meta.entityClass);
final Delete.Where where = deleteColumns.from(currentKeyspace, currentTable).where();
return new MultiClusteringEntity_Delete.F(where, CassandraOptions.withSchemaNameProvider(schemaNameProvider));
}
}
public class F extends AbstractDeleteFrom {
F(Delete.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
public final MultiClusteringEntity_Delete.W_Id where() {
return new MultiClusteringEntity_Delete.W_Id(where, cassandraOptions);
}
}
public final class W_Id extends AbstractDeleteWherePartition {
public W_Id(Delete.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
public final MultiClusteringEntity_Delete.W_Id.Relation id() {
return new MultiClusteringEntity_Delete.W_Id.Relation();
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... id = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.W_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.W_C1(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id = fromJson(?) */
public final MultiClusteringEntity_Delete.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_Delete.W_C1(where, cassandraOptions);
}
}
}
public final class W_C1 extends AbstractDeleteEnd {
public W_C1(Delete.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Delete.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;
}
public final MultiClusteringEntity_Delete.W_C1.Relation c1() {
return new MultiClusteringEntity_Delete.W_C1.Relation();
}
public final MultiClusteringEntity_Delete.W_C1.c1_c2 c1_c2() {
return new MultiClusteringEntity_Delete.W_C1.c1_c2();
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.W_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 = fromJson(?) */
public final MultiClusteringEntity_Delete.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_Delete.W_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.W_C2(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 > ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c1 >= ? AND c1 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
}
public final class c1_c2 {
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) > ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1,c2) >= ? AND (c1) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) > ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... (c1) >= ? AND (c1,c2) <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
}
}
public final class W_C2 extends AbstractDeleteEnd {
public W_C2(Delete.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final MultiClusteringEntity_Delete.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;
}
public final MultiClusteringEntity_Delete.W_C2.Relation c2() {
return new MultiClusteringEntity_Delete.W_C2.Relation();
}
public final class Relation {
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 = fromJson(?) */
public final MultiClusteringEntity_Delete.E Eq_FromJson(String c2) {
where.and(QueryBuilder.eq("c2", QueryBuilder.fromJson(QueryBuilder.bindMarker("c2"))));
boundValues.add(c2);
encodedValues.add(c2);
return new MultiClusteringEntity_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 IN ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 > ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
/**
* Generate a SELECT ... FROM ... WHERE ... c2 >= ? AND c2 <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.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_Delete.E(where, cassandraOptions);
}
}
}
public final class E extends AbstractDeleteEnd {
public E(Delete.Where where, CassandraOptions cassandraOptions) {
super(where, cassandraOptions);
}
@Override
protected final Class getEntityClass() {
return entityClass;
}
@Override
protected final AbstractEntityProperty getMetaInternal() {
return meta;
}
@Override
protected final RuntimeEngine getRte() {
return rte;
}
@Override
protected final CassandraOptions getOptions() {
return cassandraOptions;
}
@Override
protected final List getBoundValuesInternal() {
return boundValues;
}
@Override
protected final List getEncodedValuesInternal() {
return encodedValues;
}
@Override
protected final MultiClusteringEntity_Delete.E getThis() {
return this;
}
public final E.If_Value if_Value() {
return new E.If_Value();
}
public final class If_Value {
/**
* Generate an ... IF value = ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.E Eq(final String value) {
boundValues.add(value);
encodedValues.add(meta.value.encodeFromJava(value, Optional.of(cassandraOptions)));
where.onlyIf(QueryBuilder.eq("value", QueryBuilder.bindMarker("value")));
return MultiClusteringEntity_Delete.E.this;
}
/**
* Generate an ... IF value > ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.E Gt(final String value) {
boundValues.add(value);
encodedValues.add(meta.value.encodeFromJava(value, Optional.of(cassandraOptions)));
where.onlyIf(QueryBuilder.gt("value", QueryBuilder.bindMarker("value")));
return MultiClusteringEntity_Delete.E.this;
}
/**
* Generate an ... IF value >= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.E Gte(final String value) {
boundValues.add(value);
encodedValues.add(meta.value.encodeFromJava(value, Optional.of(cassandraOptions)));
where.onlyIf(QueryBuilder.gte("value", QueryBuilder.bindMarker("value")));
return MultiClusteringEntity_Delete.E.this;
}
/**
* Generate an ... IF value < ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.E Lt(final String value) {
boundValues.add(value);
encodedValues.add(meta.value.encodeFromJava(value, Optional.of(cassandraOptions)));
where.onlyIf(QueryBuilder.lt("value", QueryBuilder.bindMarker("value")));
return MultiClusteringEntity_Delete.E.this;
}
/**
* Generate an ... IF value <= ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.E Lte(final String value) {
boundValues.add(value);
encodedValues.add(meta.value.encodeFromJava(value, Optional.of(cassandraOptions)));
where.onlyIf(QueryBuilder.lte("value", QueryBuilder.bindMarker("value")));
return MultiClusteringEntity_Delete.E.this;
}
/**
* Generate an ... IF value != ? */
@SuppressWarnings("static-access")
public final MultiClusteringEntity_Delete.E NotEq(final String value) {
boundValues.add(value);
encodedValues.add(meta.value.encodeFromJava(value, Optional.of(cassandraOptions)));
where.onlyIf(NotEq.of("value", QueryBuilder.bindMarker("value")));
return MultiClusteringEntity_Delete.E.this;
}
/**
* Generate an ... IF value = fromJson(?) */
public final MultiClusteringEntity_Delete.E Eq_FromJSON(final String value) {
boundValues.add(value);
encodedValues.add(value);
where.onlyIf(QueryBuilder.eq("value", QueryBuilder.fromJson(QueryBuilder.bindMarker("value"))));
return MultiClusteringEntity_Delete.E.this;
}
}
}
}