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.
package info.archinnov.achilles.generated.dsl;
import com.datastax.driver.core.querybuilder.Delete;
import com.datastax.driver.core.querybuilder.NotEq;
import com.datastax.driver.core.querybuilder.QueryBuilder;
import info.archinnov.achilles.generated.meta.entity.EntityWithComplexIndices_AchillesMeta;
import info.archinnov.achilles.internals.entities.EntityWithComplexIndices;
import info.archinnov.achilles.internals.metamodel.AbstractEntityProperty;
import info.archinnov.achilles.internals.options.Options;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDelete;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteColumns;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteEnd;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteFrom;
import info.archinnov.achilles.internals.query.dsl.delete.AbstractDeleteWherePartition;
import info.archinnov.achilles.internals.runtime.RuntimeEngine;
import info.archinnov.achilles.type.SchemaNameProvider;
import info.archinnov.achilles.validation.Validator;
import java.lang.Class;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3.ArrayUtils;
public final class EntityWithComplexIndices_Delete extends AbstractDelete {
protected final EntityWithComplexIndices_AchillesMeta meta;
protected final Class entityClass = EntityWithComplexIndices.class;
public EntityWithComplexIndices_Delete(RuntimeEngine rte, EntityWithComplexIndices_AchillesMeta meta) {
super(rte);
this.meta = meta;
}
/**
* Generate DELETE simpleindex ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns simpleIndex() {
delete.column("simpleindex");
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns(delete);
}
/**
* Generate DELETE collectionindex ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns collectionIndex() {
delete.column("collectionindex");
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns(delete);
}
/**
* Generate DELETE fullindexoncollection ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns fullIndexOnCollection() {
delete.column("fullindexoncollection");
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns(delete);
}
/**
* Generate DELETE indexonmapkey ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns indexOnMapKey() {
delete.column("indexonmapkey");
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns(delete);
}
/**
* Generate DELETE indexonmapentry ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns indexOnMapEntry() {
delete.column("indexonmapentry");
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns(delete);
}
/**
* Generate ... * FROM ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom allColumns_FromBaseTable() {
final Delete.Where where = delete.all().from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom(where);
}
/**
* Generate ... * FROM ... using the given SchemaNameProvider */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom allColumns_From(final SchemaNameProvider schemaNameProvider) {
final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass);
final String currentTable = lookupTable(schemaNameProvider, meta.entityClass);
final Delete.Where where = delete.all().from(currentKeyspace, currentTable).where();
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom(where);
}
public class EntityWithComplexIndices_DeleteColumns extends AbstractDeleteColumns {
EntityWithComplexIndices_DeleteColumns(Delete.Selection deleteColumns) {
super(deleteColumns);
}
/**
* Generate DELETE simpleindex ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns simpleIndex() {
delete.column("simpleindex");
return this;
}
/**
* Generate DELETE collectionindex ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns collectionIndex() {
delete.column("collectionindex");
return this;
}
/**
* Generate DELETE fullindexoncollection ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns fullIndexOnCollection() {
delete.column("fullindexoncollection");
return this;
}
/**
* Generate DELETE indexonmapkey ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns indexOnMapKey() {
delete.column("indexonmapkey");
return this;
}
/**
* Generate DELETE indexonmapentry ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteColumns indexOnMapEntry() {
delete.column("indexonmapentry");
return this;
}
/**
* Generate a ... FROM xxx ... */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom fromBaseTable() {
final Delete.Where where = deleteColumns.from(meta.getKeyspace().orElse("unknown_keyspace_for_" + meta.entityClass.getCanonicalName()), meta.getTableOrViewName()).where();
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom(where);
}
/**
* Generate a ... FROM xxx ... using the given SchemaNameProvider */
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom from(final SchemaNameProvider schemaNameProvider) {
final String currentKeyspace = lookupKeyspace(schemaNameProvider, meta.entityClass);
final String currentTable = lookupTable(schemaNameProvider, meta.entityClass);
final Delete.Where where = deleteColumns.from(currentKeyspace, currentTable).where();
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteFrom(where);
}
}
public class EntityWithComplexIndices_DeleteFrom extends AbstractDeleteFrom {
EntityWithComplexIndices_DeleteFrom(Delete.Where where) {
super(where);
}
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteWhere_Id where() {
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteWhere_Id(where);
}
}
public final class EntityWithComplexIndices_DeleteWhere_Id extends AbstractDeleteWherePartition {
public EntityWithComplexIndices_DeleteWhere_Id(Delete.Where where) {
super(where);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id = ? */
@SuppressWarnings("static-access")
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteEnd id_Eq(Long id) {
where.and(QueryBuilder.eq("id", QueryBuilder.bindMarker("id_Eq")));
boundValues.add(id);
encodedValues.add(meta.id.encodeFromJava(id));
return new EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteEnd(where);
}
/**
* Generate a SELECT ... FROM ... WHERE ... id IN ? */
@SuppressWarnings("static-access")
public final EntityWithComplexIndices_Delete.EntityWithComplexIndices_DeleteEnd id_IN(Long... id) {
Validator.validateTrue(ArrayUtils.isNotEmpty(id), "Varargs for field '%s' should not be null/empty", "id");
where.and(QueryBuilder.in("id",QueryBuilder.bindMarker("id")));
final List