Search in sources :

Example 1 with NullComparisonExpression

use of org.eclipse.persistence.jpa.jpql.parser.NullComparisonExpression in project eclipselink by eclipse-ee4j.

the class AbstractActualJPQLQueryFormatter method visit.

@Override
public void visit(NullComparisonExpressionStateObject stateObject) {
    if (stateObject.isDecorated()) {
        toText(stateObject);
    } else {
        NullComparisonExpression expression = stateObject.getExpression();
        // Expression
        if (stateObject.hasStateObject()) {
            stateObject.getStateObject().accept(this);
            writer.append(SPACE);
        }
        // 'IS'
        appendIdentifier((expression != null) ? expression.getActualIsIdentifier() : IS, IS);
        writer.append(SPACE);
        // 'NOT'
        if (stateObject.hasNot()) {
            appendIdentifier((expression != null) ? expression.getActualNotIdentifier() : NOT, NOT);
            writer.append(SPACE);
        }
        // 'NULL'
        appendIdentifier((expression != null) ? expression.getActualNullIdentifier() : NULL, NULL);
    }
}
Also used : NullComparisonExpression(org.eclipse.persistence.jpa.jpql.parser.NullComparisonExpression)

Aggregations

NullComparisonExpression (org.eclipse.persistence.jpa.jpql.parser.NullComparisonExpression)1