Search in sources :

Example 1 with UnknownExpression

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

the class JPQLExpressionTest1_0 method testGetExpression_4.

@Test
public void testGetExpression_4() {
    String query = "S";
    JPQLExpression jpqlExpression = JPQLQueryBuilder.buildQuery(query, getGrammar(), true);
    Expression expression = jpqlExpression.getExpression(query, 1);
    assertNotNull(expression);
    assertTrue("The expression was " + expression.getClass().getSimpleName(), expression instanceof UnknownExpression);
}
Also used : Expression(org.eclipse.persistence.jpa.jpql.parser.Expression) StateFieldPathExpression(org.eclipse.persistence.jpa.jpql.parser.StateFieldPathExpression) ObjectExpression(org.eclipse.persistence.jpa.jpql.parser.ObjectExpression) LikeExpression(org.eclipse.persistence.jpa.jpql.parser.LikeExpression) JPQLExpression(org.eclipse.persistence.jpa.jpql.parser.JPQLExpression) CollectionExpression(org.eclipse.persistence.jpa.jpql.parser.CollectionExpression) UnknownExpression(org.eclipse.persistence.jpa.jpql.parser.UnknownExpression) UnknownExpression(org.eclipse.persistence.jpa.jpql.parser.UnknownExpression) JPQLExpression(org.eclipse.persistence.jpa.jpql.parser.JPQLExpression) Test(org.junit.Test)

Aggregations

CollectionExpression (org.eclipse.persistence.jpa.jpql.parser.CollectionExpression)1 Expression (org.eclipse.persistence.jpa.jpql.parser.Expression)1 JPQLExpression (org.eclipse.persistence.jpa.jpql.parser.JPQLExpression)1 LikeExpression (org.eclipse.persistence.jpa.jpql.parser.LikeExpression)1 ObjectExpression (org.eclipse.persistence.jpa.jpql.parser.ObjectExpression)1 StateFieldPathExpression (org.eclipse.persistence.jpa.jpql.parser.StateFieldPathExpression)1 UnknownExpression (org.eclipse.persistence.jpa.jpql.parser.UnknownExpression)1 Test (org.junit.Test)1