@Test(groups = "unit") public void should_handle_from_json() throws Exception { assertThat( update("users") .with(set("age", fromJson("42"))) .where(eq("id", fromJson("\"user123\""))) .toString()) .isEqualTo("UPDATE users SET age=fromJson('42') WHERE id=fromJson('\"user123\"');"); assertThat( insertInto("users") .value("id", fromJson("\"user123\"")) .value("age", fromJson("42")) .toString()) .isEqualTo("INSERT INTO users (id,age) VALUES (fromJson('\"user123\"'),fromJson('42'));"); assertThat(insertInto("users").value("id", fromJson(bindMarker())).toString()) .isEqualTo("INSERT INTO users (id) VALUES (fromJson(?));"); assertThat(insertInto("users").value("id", fromJson(bindMarker("id"))).toString()) .isEqualTo("INSERT INTO users (id) VALUES (fromJson(:id));"); }
/** * Generate an ... <strong>IF numeric = fromJson(?)</strong> */ public final EntityWithSASIIndices_Delete.E Eq_FromJSON(final String numeric) { boundValues.add(numeric); encodedValues.add(numeric); where.onlyIf(QueryBuilder.eq("numeric", QueryBuilder.fromJson(QueryBuilder.bindMarker("numeric")))); return EntityWithSASIIndices_Delete.E.this; } }
/** * Generate an ... <strong>IF indexOnMapKey = fromJson(?)</strong> */ public final EntityWithIndicesForJSON_Delete.E Eq_FromJSON(final String indexOnMapKey) { boundValues.add(indexOnMapKey); encodedValues.add(indexOnMapKey); where.onlyIf(QueryBuilder.eq("indexonmapkey", QueryBuilder.fromJson(QueryBuilder.bindMarker("indexonmapkey")))); return EntityWithIndicesForJSON_Delete.E.this; } }
/** * Generate an ... <strong>IF indexOnMapEntry = fromJson(?)</strong> */ public final EntityWithIndicesForJSON_Delete.E Eq_FromJSON(final String indexOnMapEntry) { boundValues.add(indexOnMapEntry); encodedValues.add(indexOnMapEntry); where.onlyIf(QueryBuilder.eq("indexonmapentry", QueryBuilder.fromJson(QueryBuilder.bindMarker("indexonmapentry")))); return EntityWithIndicesForJSON_Delete.E.this; } }
/** * Generate an UPDATE FROM ... <strong>SET liststring = fromJson(?)</strong> */ public final EntityForJSONCall_Update.Cols Set_FromJSON(final String listString_element) { where.with(NonEscapingSetAssignment.of("liststring", QueryBuilder.fromJson(QueryBuilder.bindMarker("liststring")))); boundValues.add(listString_element); encodedValues.add(listString_element); return EntityForJSONCall_Update.Cols.this; } }
/** * Generate an ... <strong>IF value = fromJson(?)</strong> */ public final EntityForCastFunctionCall_Delete.E Eq_FromJSON(final String value) { boundValues.add(value); encodedValues.add(value); where.onlyIf(QueryBuilder.eq("value", QueryBuilder.fromJson(QueryBuilder.bindMarker("value")))); return EntityForCastFunctionCall_Delete.E.this; } }
/** * Generate an UPDATE FROM ... <strong>SET fullindexoncollection = fromJson(?)</strong> */ public final EntityWithIndicesForJSON_Update.Cols Set_FromJSON(final String fullIndexOnCollection_element) { where.with(NonEscapingSetAssignment.of("fullindexoncollection", QueryBuilder.fromJson(QueryBuilder.bindMarker("fullindexoncollection")))); boundValues.add(fullIndexOnCollection_element); encodedValues.add(fullIndexOnCollection_element); return EntityWithIndicesForJSON_Update.Cols.this; } }
/** * Generate an ... <strong>IF fullIndexOnCollection = fromJson(?)</strong> */ public final EntityWithIndicesForJSON_Update.E Eq_FromJSON(final String fullIndexOnCollection) { boundValues.add(fullIndexOnCollection); encodedValues.add(fullIndexOnCollection); where.onlyIf(QueryBuilder.eq("fullindexoncollection", QueryBuilder.fromJson(QueryBuilder.bindMarker("fullindexoncollection")))); return EntityWithIndicesForJSON_Update.E.this; } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>prefixnontokenizer = fromJson(?) </strong> */ public final EntityWithSASIIndices_SelectIndex.E Eq_FromJson(String prefixNonTokenizer) { where.and(QueryBuilder.eq("prefixnontokenizer", QueryBuilder.fromJson(QueryBuilder.bindMarker("prefixnontokenizer")))); boundValues.add(prefixNonTokenizer); encodedValues.add(prefixNonTokenizer); return new EntityWithSASIIndices_SelectIndex.E(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>clust = fromJson(?) </strong> */ public final EntityWithSASIIndices_SelectIndex.E Eq_FromJson(String clust) { where.and(QueryBuilder.eq("clust", QueryBuilder.fromJson(QueryBuilder.bindMarker("clust")))); boundValues.add(clust); encodedValues.add(clust); return new EntityWithSASIIndices_SelectIndex.E(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>sparse = fromJson(?) </strong> */ public final EntityWithSASIIndices_SelectIndex.E Eq_FromJson(String sparse) { where.and(QueryBuilder.eq("sparse", QueryBuilder.fromJson(QueryBuilder.bindMarker("sparse")))); boundValues.add(sparse); encodedValues.add(sparse); return new EntityWithSASIIndices_SelectIndex.E(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>prefixnontokenizer = fromJson(?) </strong> */ public final EntityWithSASIIndices_SelectIndex.E_TM Eq_FromJson(String prefixNonTokenizer) { where.and(QueryBuilder.eq("prefixnontokenizer", QueryBuilder.fromJson(QueryBuilder.bindMarker("prefixnontokenizer")))); boundValues.add(prefixNonTokenizer); encodedValues.add(prefixNonTokenizer); return new EntityWithSASIIndices_SelectIndex.E_TM(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>containsstandardanalyzer = fromJson(?) </strong> */ public final EntityWithSASIIndices_SelectIndex.E_J Eq_FromJson(String containsStandardAnalyzer) { where.and(QueryBuilder.eq("containsstandardanalyzer", QueryBuilder.fromJson(QueryBuilder.bindMarker("containsstandardanalyzer")))); boundValues.add(containsStandardAnalyzer); encodedValues.add(containsStandardAnalyzer); return new EntityWithSASIIndices_SelectIndex.E_J(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>numeric = fromJson(?) </strong> */ public final EntityWithSASIIndices_SelectIndex.E_J Eq_FromJson(String numeric) { where.and(QueryBuilder.eq("numeric", QueryBuilder.fromJson(QueryBuilder.bindMarker("numeric")))); boundValues.add(numeric); encodedValues.add(numeric); return new EntityWithSASIIndices_SelectIndex.E_J(where, cassandraOptions); } }
/** * Generate an UPDATE FROM ... <strong>SET value = fromJson(?)</strong> */ public final EntityForCastFunctionCall_Update.Cols Set_FromJSON(final String value_element) { where.with(NonEscapingSetAssignment.of("value", QueryBuilder.fromJson(QueryBuilder.bindMarker("value")))); boundValues.add(value_element); encodedValues.add(value_element); return new EntityForCastFunctionCall_Update.Cols(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>id = fromJson(?) </strong> */ public final EntityForJSONCall_Select.W_Clust Eq_FromJson(String id) { where.and(QueryBuilder.eq("id", QueryBuilder.fromJson(QueryBuilder.bindMarker("id")))); boundValues.add(id); encodedValues.add(id); return new EntityForJSONCall_Select.W_Clust(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>id = fromJson(?) </strong> */ public final EntityForJSONCall_Select.W_J_Clust Eq_FromJson(String id) { where.and(QueryBuilder.eq("id", QueryBuilder.fromJson(QueryBuilder.bindMarker("id")))); boundValues.add(id); encodedValues.add(id); return new EntityForJSONCall_Select.W_J_Clust(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>clust = fromJson(?) </strong> */ public final EntityForJSONCall_Select.E_J Eq_FromJson(String clust) { where.and(QueryBuilder.eq("clust", QueryBuilder.fromJson(QueryBuilder.bindMarker("clust")))); boundValues.add(clust); encodedValues.add(clust); return new EntityForJSONCall_Select.E_J(where, cassandraOptions); } }
/** * Generate an UPDATE FROM ... <strong>SET indexonmapkey = fromJson(?)</strong> */ public final EntityWithIndicesForJSON_Update.Cols Set_FromJSON(final String indexOnMapKey_element) { where.with(NonEscapingSetAssignment.of("indexonmapkey", QueryBuilder.fromJson(QueryBuilder.bindMarker("indexonmapkey")))); boundValues.add(indexOnMapKey_element); encodedValues.add(indexOnMapKey_element); return new EntityWithIndicesForJSON_Update.Cols(where, cassandraOptions); } }
/** * Generate a SELECT ... FROM ... WHERE ... <strong>clust1 = fromJson(?) </strong> */ public final EntityWithIndicesForJSON_Update.W_Clust2 Eq_FromJson(String clust1) { where.and(QueryBuilder.eq("clust1", QueryBuilder.fromJson(QueryBuilder.bindMarker("clust1")))); boundValues.add(clust1); encodedValues.add(clust1); return new EntityWithIndicesForJSON_Update.W_Clust2(where, cassandraOptions); } }