Package org.eclipse.persistence.jpa.jpql

Examples of org.eclipse.persistence.jpa.jpql.JPAVersion


   * @param identifier The JPQL identifier to validate
   * @return <code>true</code> if the given identifier is part of the current JPA version or was
   * defined in previous release; <code>false</code> otherwise
   */
  protected boolean isValidVersion(String identifier) {
    JPAVersion identifierVersion = getLatestGrammar().getExpressionRegistry().getIdentifierVersion(identifier);
    return queryContext.getJPAVersion().isNewerThanOrEqual(identifierVersion);
  }
View Full Code Here


   * @param identifier The JPQL identifier to validate
   * @return <code>true</code> if the given identifier is part of the current JPA version or was
   * defined in previous release; <code>false</code> otherwise
   */
  protected boolean isValidVersion(String identifier) {
    JPAVersion identifierVersion = getLatestGrammar().getExpressionRegistry().getIdentifierVersion(identifier);
    return queryContext.getJPAVersion().isNewerThanOrEqual(identifierVersion);
  }
View Full Code Here

   * @param identifier The JPQL identifier to validate
   * @return <code>true</code> if the given identifier is part of the current JPA version or was
   * defined in previous release; <code>false</code> otherwise
   */
  protected boolean isValidVersion(String identifier) {
    JPAVersion identifierVersion = queryContext.getExpressionRegistry().getIdentifierVersion(identifier);
    return queryContext.getJPAVersion().isNewerThanOrEqual(identifierVersion);
  }
View Full Code Here

   * Retrieves the JPA version in which the identifier was first introduced.
   *
   * @return The version in which the identifier was introduced
   */
  public JPAVersion getIdentifierVersion(String identifier) {
    JPAVersion version = identifierVersions.get(identifier.toUpperCase());
    return (version != null) ? version : JPAVersion.VERSION_1_0;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.JPAVersion

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.