Codota Logo
JPQLException.invalidNavigation
Code IndexAdd Codota to your IDE (free)

How to use
invalidNavigation
method
in
org.eclipse.persistence.exceptions.JPQLException

Best Java code snippets using org.eclipse.persistence.exceptions.JPQLException.invalidNavigation (Showing top 3 results out of 315)

  • Common ways to obtain JPQLException
private void myMethod () {
JPQLException j =
  • Codota IconString theMessage;new JPQLException(theMessage)
  • Codota IconString message;Exception internalException;new JPQLException(message, internalException)
  • Codota IconString message;Exception internalException;new JPQLException(message, internalException, theErrorCode)
  • Smart code suggestions by Codota
}
origin: com.haulmont.thirdparty/eclipselink

/** 
 * INTERNAL
 * Checks whether the left hand side of this dot node is navigable.
 */
private void checkNavigation(Node node, ParseTreeContext context) {
  TypeHelper typeHelper = context.getTypeHelper();
  // Checks whether the type of the dot node allows a navigation.
  Object type = node.getType();
  if (!typeHelper.isEntityClass(type) && 
    !typeHelper.isEmbeddable(type) &&
    !typeHelper.isEnumType(type)) {
    throw JPQLException.invalidNavigation(
      context.getQueryInfo(), node.getLine(), node.getColumn(),
      this.getAsString(), node.getAsString(), 
      typeHelper.getTypeName(type));
  }
  // Special check to disallow collection valued relationships
  if (node.isDotNode()) {
    Node left = node.getLeft();
    AttributeNode right = (AttributeNode)node.getRight();
    if (typeHelper.isCollectionValuedRelationship(
        left.getType(), right.getAttributeName())) {
      throw JPQLException.invalidCollectionNavigation(
        context.getQueryInfo(), right.getLine(), right.getColumn(),
        this.getAsString(), right.getAttributeName());
    }
  }
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL
 * Checks whether the left hand side of this dot node is navigable.
 */
private void checkNavigation(Node node, ParseTreeContext context) {
  TypeHelper typeHelper = context.getTypeHelper();
  // Checks whether the type of the dot node allows a navigation.
  Object type = node.getType();
  if (!typeHelper.isEntityClass(type) &&
    !typeHelper.isEmbeddable(type) &&
    !typeHelper.isEnumType(type)) {
    throw JPQLException.invalidNavigation(
      context.getQueryInfo(), node.getLine(), node.getColumn(),
      this.getAsString(), node.getAsString(),
      typeHelper.getTypeName(type));
  }
  // Special check to disallow collection valued relationships
  if (node.isDotNode()) {
    Node left = node.getLeft();
    AttributeNode right = (AttributeNode)node.getRight();
    if (typeHelper.isCollectionValuedRelationship(
        left.getType(), right.getAttributeName())) {
      throw JPQLException.invalidCollectionNavigation(
        context.getQueryInfo(), right.getLine(), right.getColumn(),
        this.getAsString(), right.getAttributeName());
    }
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/** 
 * INTERNAL
 * Checks whether the left hand side of this dot node is navigable.
 */
private void checkNavigation(Node node, ParseTreeContext context) {
  TypeHelper typeHelper = context.getTypeHelper();
  // Checks whether the type of the dot node allows a navigation.
  Object type = node.getType();
  if (!typeHelper.isEntityClass(type) && 
    !typeHelper.isEmbeddable(type) &&
    !typeHelper.isEnumType(type)) {
    throw JPQLException.invalidNavigation(
      context.getQueryInfo(), node.getLine(), node.getColumn(),
      this.getAsString(), node.getAsString(), 
      typeHelper.getTypeName(type));
  }
  // Special check to disallow collection valued relationships
  if (node.isDotNode()) {
    Node left = node.getLeft();
    AttributeNode right = (AttributeNode)node.getRight();
    if (typeHelper.isCollectionValuedRelationship(
        left.getType(), right.getAttributeName())) {
      throw JPQLException.invalidCollectionNavigation(
        context.getQueryInfo(), right.getLine(), right.getColumn(),
        this.getAsString(), right.getAttributeName());
    }
  }
}
 
org.eclipse.persistence.exceptionsJPQLExceptioninvalidNavigation

Popular methods of JPQLException

  • <init>
    INTERNAL Only TopLink can throw and create these excpetions
  • aliasResolutionException
  • constructorClassNotFound
  • entityTypeNotFound
    JPQLException Entity Type Not Found Indicates that a type specified in a JPQL query string cannot b
  • entityTypeNotFound2
  • expectedOrderableOrderByItem
  • generalParsingException
    INTERNAL Create an exception to wrap a general parsing exception
  • getInternalExceptions
    INTERNAL Return the collection of internal Exceptions. Intialize if there are no exceptions
  • hasInternalExceptions
    INTERNAL Does this exception have any internal errors?
  • indexOnlyAllowedOnVariable
  • invalidCollectionMemberDecl
  • invalidCollectionNavigation
  • invalidCollectionMemberDecl,
  • invalidCollectionNavigation,
  • invalidEnumEqualExpression,
  • invalidEnumLiteral,
  • invalidExpressionArgument,
  • invalidFunctionArgument,
  • invalidMultipleUseOfSameParameter,
  • invalidSetClauseNavigation,
  • invalidSetClauseTarget

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now