Tabnine Logo
JPQLException.invalidCollectionNavigation
Code IndexAdd Tabnine to your IDE (free)

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

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

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.exceptionsJPQLExceptioninvalidCollectionNavigation

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
  • invalidEnumEqualExpression
  • invalidCollectionMemberDecl,
  • invalidEnumEqualExpression,
  • invalidEnumLiteral,
  • invalidExpressionArgument,
  • invalidFunctionArgument,
  • invalidMultipleUseOfSameParameter,
  • invalidNavigation,
  • invalidSetClauseNavigation,
  • invalidSetClauseTarget

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now