package org.gluu.persist.couchbase.model;

import com.couchbase.client.java.query.dsl.Expression;

/**
 * Filter to Expression convertation result
 *
 * @author Yuriy Movchan Date: 06/21/2019
 */
public class ConvertedExpression {
	
	private Expression expression;
	private boolean consistency;

	private ConvertedExpression(Expression expression) {
		this.expression = expression;
	}
	
	public static ConvertedExpression build(Expression expression, boolean consistency) {
		return new ConvertedExpression(expression);
	}

	public Expression expression() {
		return expression;
	}

	public boolean consistency() {
		return consistency;
	}

	public void consistency(boolean consistency) {
		this.consistency = consistency;
	}

}

@@ -378,17 +378,161 @@
 ion;%0A%09%7D%0A
-%09
+%0A%09private ConvertedExpression(Expression expression, boolean consistency) %7B%0A%09%09this.expression = expression;%0A%09%09this.consistency = consistency;%0A%09%7D%0A
 %0A%09public
@@ -607,24 +607,24 @@
 sistency) %7B%0A
-
 %09%09return new
@@ -654,16 +654,29 @@
 pression
+, consistency
 );%0A%09%7D%0A%0A%09

Fix ConvertedExpressions bean