Examples of JPQLQueryBNFValidator


Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param queryBNF The BNF used to determine the validity of an {@link Expression}
   * @return A {@link JPQLQueryBNFValidator} that can determine if an {@link Expression} follows
   * the given BNF
   */
  protected JPQLQueryBNFValidator buildJPQLQueryBNFValidator(JPQLQueryBNF queryBNF) {
    return new JPQLQueryBNFValidator(queryBNF);
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param queryBNF
   * @return <code>true</code> if the {@link Expression} part is a child of the given query BNF;
   * <code>false</code> otherwise
   */
  protected boolean isValid(Expression expression, JPQLQueryBNF queryBNF) {
    JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(queryBNF);
    try {
      expression.accept(validator);
      return validator.isValid();
    }
    finally {
      validator.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * expression should be considered when doing the validation
   * @return <code>true</code> if the {@link JPQLQueryBNF} is a descendant of the given parent
   * {@link JPQLQueryBNF}; <code>false</code> otherwise
   */
  protected boolean isValid(JPQLQueryBNF parentQueryBNF, JPQLQueryBNF queryBNF, boolean bypassCompound) {
    JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(parentQueryBNF);
    try {
      validator.setBypassCompound(bypassCompound);
      validator.validate(queryBNF);
      return validator.isValid();
    }
    finally {
      validator.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param queryBNF The BNF used to determine the validity of an {@link Expression}
   * @return A {@link JPQLQueryBNFValidator} that can determine if an {@link Expression} follows
   * the given BNF
   */
  protected JPQLQueryBNFValidator buildJPQLQueryBNFValidator(JPQLQueryBNF queryBNF) {
    return new JPQLQueryBNFValidator(queryBNF);
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param queryBNF
   * @return <code>true</code> if the {@link Expression} part is a child of the given query BNF;
   * <code>false</code> otherwise
   */
  protected boolean isValid(Expression expression, JPQLQueryBNF queryBNF) {
    JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(queryBNF);
    try {
      expression.accept(validator);
      return validator.isValid();
    }
    finally {
      validator.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * expression should be considered when doing the validation
   * @return <code>true</code> if the {@link JPQLQueryBNF} is a descendant of the given parent
   * {@link JPQLQueryBNF}; <code>false</code> otherwise
   */
  protected boolean isValid(JPQLQueryBNF parentQueryBNF, JPQLQueryBNF queryBNF, boolean bypassCompound) {
    JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(parentQueryBNF);
    try {
      validator.setBypassCompound(bypassCompound);
      validator.validate(queryBNF);
      return validator.isValid();
    }
    finally {
      validator.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param queryBNF The BNF used to determine the validity of an {@link Expression}
   * @return A {@link JPQLQueryBNFValidator} that can determine if an {@link Expression} follows
   * the given BNF
   */
  protected JPQLQueryBNFValidator buildJPQLQueryBNFValidator(JPQLQueryBNF queryBNF) {
    return new JPQLQueryBNFValidator(queryBNF);
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param expression The {@link Expression} to validate based on the query BNF
   * @return <code>true</code> if the {@link Expression} part is a child of the given query BNF;
   * <code>false</code> otherwise
   */
  protected boolean isValid(Expression expression, JPQLQueryBNF queryBNF) {
    JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(queryBNF);
    try {
      expression.accept(validator);
      return validator.valid;
    }
    finally {
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param queryBNF The BNF used to determine the validity of an {@link Expression}
   * @return A {@link JPQLQueryBNFValidator} that can determine if an {@link Expression} follows
   * the given BNF
   */
  protected JPQLQueryBNFValidator buildJPQLQueryBNFValidator(JPQLQueryBNF queryBNF) {
    return new JPQLQueryBNFValidator(queryBNF);
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator

   * @param expression The {@link Expression} to validate based on the query BNF
   * @return <code>true</code> if the {@link Expression} part is a child of the given query BNF;
   * <code>false</code> otherwise
   */
  protected boolean isValid(Expression expression, JPQLQueryBNF queryBNF) {
    JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(queryBNF);
    try {
      expression.accept(validator);
      return validator.valid;
    }
    finally {
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.