Package org.eclipse.persistence.jpa.internal.jpql.parser

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.StateFieldPathExpression


  private void validateAggregateFunction(AggregateFunction expression) {

    // Arguments to the functions MAX/MIN must correspond to orderable state field types (i.e.,
    // numeric types, string types, character types, or date types)
    StateFieldPathExpression pathExpression = stateFieldPathExpression(expression.getExpression());

    if (pathExpression != null) {
      validateStateFieldPathExpression(pathExpression, false);
    }
  }
View Full Code Here


      }
    }
    // The identification variable actually represents a state field path expression that has
    // a virtual identification, validate that state field path expression instead
    else if (virtual) {
      StateFieldPathExpression pathExpression = expression.getStateFieldPathExpression();
      if (pathExpression != null) {
        pathExpression.accept(this);
      }
    }
  }
View Full Code Here

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

    // Null comparisons over instances of embeddable class types are not supported
    StateFieldPathExpression pathExpression = stateFieldPathExpression(expression.getExpression());

    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

     if (ExpressionTools.stringIsNotEmpty(name)) {
      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

  private void validateAggregateFunction(AggregateFunction expression) {

    // Arguments to the functions MAX/MIN must correspond to orderable state field types (i.e.,
    // numeric types, string types, character types, or date types)
    StateFieldPathExpression pathExpression = stateFieldPathExpression(expression.getExpression());

    if (pathExpression != null) {
      validateStateFieldPathExpression(pathExpression, false);
    }
  }
View Full Code Here

      }
    }
    // The identification variable actually represents a state field path expression that has
    // a virtual identification, validate that state field path expression instead
    else if (virtual) {
      StateFieldPathExpression pathExpression = expression.getStateFieldPathExpression();
      if (pathExpression != null) {
        pathExpression.accept(this);
      }
    }
  }
View Full Code Here

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

    // Null comparisons over instances of embeddable class types are not supported
    StateFieldPathExpression pathExpression = stateFieldPathExpression(expression.getExpression());

    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

     if (ExpressionTools.stringIsNotEmpty(name)) {
      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

  private void validateAggregateFunction(AggregateFunction expression) {

    // Arguments to the functions MAX/MIN must correspond to orderable state field types (i.e.,
    // numeric types, string types, character types, or date types)
    StateFieldPathExpression pathExpression = stateFieldPathExpression(expression.getExpression());

    if (pathExpression != null) {
      validateStateFieldPathExpression(pathExpression, false);
    }
  }
View Full Code Here

      }
    }
    // The identification variable actually represents a state field path expression that has
    // a virtual identification, validate that state field path expression instead
    else if (virtual) {
      StateFieldPathExpression pathExpression = expression.getStateFieldPathExpression();
      if (pathExpression != null) {
        pathExpression.accept(this);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.internal.jpql.parser.StateFieldPathExpression

Copyright © 2018 www.massapicom. 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.