Examples of toParsedText()


Examples of org.eclipse.persistence.jpa.internal.jpql.parser.StateFieldPathExpression.toParsedText()

    if (pathExpression != null) {
      IType type = getType(pathExpression);
      IManagedType managedType = getManagedType(type);

      if (isEmbeddable(managedType)) {
        addProblem(pathExpression, NullComparisonExpression_InvalidType, pathExpression.toParsedText());
        return;
      }
    }

    super.visit(expression);
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.StateFieldPathExpression.toParsedText()

      IManagedType managedType = getManagedType(name);

      // Check the existence of the state field on the abstract schema
      if (managedType != null) {
        StateFieldPathExpression pathExpression = stateFieldPathExpression(expression.getStateFieldPathExpression());
        String stateFieldValue = (pathExpression != null) ? pathExpression.toParsedText() : null;

        if (ExpressionTools.stringIsNotEmpty(stateFieldValue)) {

          // State field without a dot
          if (stateFieldValue.indexOf(".") == -1) {
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.StateFieldPathExpression.toParsedText()

    if (pathExpression != null) {
      IType type = getType(pathExpression);
      IManagedType managedType = getManagedType(type);

      if (isEmbeddable(managedType)) {
        addProblem(pathExpression, NullComparisonExpression_InvalidType, pathExpression.toParsedText());
        return;
      }
    }

    super.visit(expression);
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.StateFieldPathExpression.toParsedText()

      IManagedType managedType = getManagedType(name);

      // Check the existence of the state field on the abstract schema
      if (managedType != null) {
        StateFieldPathExpression pathExpression = stateFieldPathExpression(expression.getStateFieldPathExpression());
        String stateFieldValue = (pathExpression != null) ? pathExpression.toParsedText() : null;

        if (ExpressionTools.stringIsNotEmpty(stateFieldValue)) {

          // State field without a dot
          if (stateFieldValue.indexOf(".") == -1) {
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.StringExpression.toParsedText()

      // Continue to calculate the position by going up the hierarchy
      if (childExpression == expression) {
        return calculatePosition(parent, position);
      }

      position += childExpression.toParsedText().length();
    }

    // Never reach this
    throw new RuntimeException();
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.StringExpression.toParsedText()

      // Continue to calculate the position by going up the hierarchy
      if (childExpression == expression) {
        return calculatePosition(parent, position);
      }

      position += childExpression.toParsedText().length();
    }

    // Never reach this
    throw new RuntimeException();
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.Expression.toParsedText()

      if (isNotExpression(child)) {
        return true;
      }

      String text = child.toParsedText();

      return text.equalsIgnoreCase(IS||
             text.equalsIgnoreCase(NOT) ||
             text.equalsIgnoreCase("IS NOT");
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.Expression.toParsedText()

      boolean scanPrevious = false;

      for (; index > -1; index--) {

        Expression child = collectionExpression.getChild(index);
        String text = child.toParsedText();

        // Handle 'NOT'
        if (text.equalsIgnoreCase(NOT) || isNotExpression(child)) {

          // Two consecutive 'NOT' or 'IS' is invalid or 'NOT IS' is not valid
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.Expression.toParsedText()

      if (isNotExpression(child)) {
        return true;
      }

      String text = child.toParsedText();

      return text.equalsIgnoreCase(IS||
             text.equalsIgnoreCase(NOT) ||
             text.equalsIgnoreCase("IS NOT");
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.Expression.toParsedText()

      boolean scanPrevious = false;

      for (; index > -1; index--) {

        Expression child = collectionExpression.getChild(index);
        String text = child.toParsedText();

        // Handle 'NOT'
        if (text.equalsIgnoreCase(NOT) || isNotExpression(child)) {

          // Two consecutive 'NOT' or 'IS' is invalid or 'NOT IS' is not valid
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.