Examples of pathSize()


Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

      Expression parentExpression = queryExpression;

      // Now create the actual expression
      Expression newBuilder = new ExpressionBuilder();
      Expression collectionBase = newBuilder;
            for (int i = 1; i < pathExpression.pathSize() - 1; i++) {
                // nested paths must be single valued.
                collectionBase = collectionBase.get(pathExpression.getPath(i));
            }
            String lastPath = pathExpression.getPath(pathExpression.pathSize() - 1);
            // The following code is copied from Expression.noneOf and altered a bit
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

      Expression collectionBase = newBuilder;
            for (int i = 1; i < pathExpression.pathSize() - 1; i++) {
                // nested paths must be single valued.
                collectionBase = collectionBase.get(pathExpression.getPath(i));
            }
            String lastPath = pathExpression.getPath(pathExpression.pathSize() - 1);
            // The following code is copied from Expression.noneOf and altered a bit
            Expression criteria = newBuilder.equal(parentExpression).and(collectionBase.anyOf(lastPath).equal(entityExpression));
            ReportQuery subQuery = new ReportQuery();
            subQuery.setShouldRetrieveFirstPrimaryKey(true);
            subQuery.setSelectionCriteria(criteria);
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

   * {@inheritDoc}
   */
  public void visit(EmptyCollectionComparisonExpression expression) {

    CollectionValuedPathExpression collectionPath = (CollectionValuedPathExpression) expression.getExpression();
    int lastPathIndex = collectionPath.pathSize() - 1;
    String name = collectionPath.getPath(lastPathIndex);

    // Create the expression for the collection-valued path expression (except the last path)
    visitPathExpression(collectionPath, false, lastPathIndex);

View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

   * {@inheritDoc}
   */
  public void visit(SizeExpression expression) {

    CollectionValuedPathExpression pathExpression = (CollectionValuedPathExpression) expression.getExpression();
    int lastIndex = pathExpression.pathSize() - 1;

    // Create the right chain of expressions
    visitPathExpression(pathExpression, false, lastIndex - 1);

    // Now create the SIZE expression
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

      Expression parentExpression = queryExpression;

      // Now create the actual expression
      Expression newBuilder = new ExpressionBuilder();
      Expression collectionBase = newBuilder;
            for (int i = 1; i < pathExpression.pathSize() - 1; i++) {
                // nested paths must be single valued.
                collectionBase = collectionBase.get(pathExpression.getPath(i));
            }
            String lastPath = pathExpression.getPath(pathExpression.pathSize() - 1);
            // The following code is copied from Expression.noneOf and altered a bit
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

      Expression collectionBase = newBuilder;
            for (int i = 1; i < pathExpression.pathSize() - 1; i++) {
                // nested paths must be single valued.
                collectionBase = collectionBase.get(pathExpression.getPath(i));
            }
            String lastPath = pathExpression.getPath(pathExpression.pathSize() - 1);
            // The following code is copied from Expression.noneOf and altered a bit
            Expression criteria = newBuilder.equal(parentExpression).and(collectionBase.anyOf(lastPath).equal(entityExpression));
            ReportQuery subQuery = new ReportQuery();
            subQuery.setShouldRetrieveFirstPrimaryKey(true);
            subQuery.setSelectionCriteria(criteria);
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

   */
  @Override
  public void visit(EmptyCollectionComparisonExpression expression) {

    CollectionValuedPathExpression collectionPath = (CollectionValuedPathExpression) expression.getExpression();
    int lastPathIndex = collectionPath.pathSize() - 1;
    String name = collectionPath.getPath(lastPathIndex);

    // Create the expression for the collection-valued path expression (except the last path)
    visitPathExpression(collectionPath, false, lastPathIndex);

View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

   */
  @Override
  public void visit(SizeExpression expression) {

    CollectionValuedPathExpression pathExpression = (CollectionValuedPathExpression) expression.getExpression();
    int lastIndex = pathExpression.pathSize() - 1;

    // Create the right chain of expressions
    visitPathExpression(pathExpression, false, lastIndex - 1);

    // Now create the SIZE expression
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

      Expression parentExpression = queryExpression;

      // Now create the actual expression
      Expression newBuilder = new ExpressionBuilder();
      Expression collectionBase = newBuilder;
            for (int i = 1; i < pathExpression.pathSize() - 1; i++) {
                // nested paths must be single valued.
                collectionBase = collectionBase.get(pathExpression.getPath(i));
            }
            String lastPath = pathExpression.getPath(pathExpression.pathSize() - 1);
            // The following code is copied from Expression.noneOf and altered a bit
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression.pathSize()

      Expression collectionBase = newBuilder;
            for (int i = 1; i < pathExpression.pathSize() - 1; i++) {
                // nested paths must be single valued.
                collectionBase = collectionBase.get(pathExpression.getPath(i));
            }
            String lastPath = pathExpression.getPath(pathExpression.pathSize() - 1);
            // The following code is copied from Expression.noneOf and altered a bit
            Expression criteria = newBuilder.equal(parentExpression).and(collectionBase.anyOf(lastPath).equal(entityExpression));
            ReportQuery subQuery = new ReportQuery();
            subQuery.setShouldRetrieveFirstPrimaryKey(true);
            subQuery.setSelectionCriteria(criteria);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.