#587 - Refactor - Change JsonContext.getScalar() to JsonContext.writeScalar()

This commit is contained in:
Robin Bygrave committed 2016-03-03 23:38:09 +13:00
1 parent 290ca6ba90
commit 53dd810b9a
11 files changed
+48 -84

No files matched your search

@@ -292,18 +292,14 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
public String asElasticQuery() {
StringWriter sw = new StringWriter(200);
JsonContext json = server.json();
JsonGenerator generator = json.createGenerator(sw);
BeanType<T> beanType = server.getPluginApi().getBeanType(this.beanType);
ElasticExpressionContext context = new ElasticExpressionContext(generator, beanType);
ElasticExpressionContext context = new ElasticExpressionContext(json, beanDescriptor);
try {
writeElastic(context);
context.flush();
generatedSql = sw.toString();
generatedSql = context.flush();
return generatedSql;
} catch (IOException e) {