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

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

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

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/** */
public Expression addToExpression(Expression parentExpression, GenerationContext context) {
  if (isCollectionAttribute()) {
    //special case for NOT MEMBER OF
    if (context.hasMemberOfNode()) {
      return parentExpression.noneOf(name, new ExpressionBuilder().equal(context.getMemberOfNode().getLeftExpression()));
    }
    return outerJoin ? parentExpression.anyOfAllowingNone(name) : 
      parentExpression.anyOf(name);
  } else {
    // check whether collection attribute is required
    if (requiresCollectionAttribute()) {
      throw JPQLException.invalidCollectionMemberDecl(
        context.getParseTreeContext().getQueryInfo(), 
        getLine(), getColumn(), name);
    }
    if (context.shouldUseOuterJoins() || isOuterJoin()) {
      return parentExpression.getAllowingNull(name);
    } else {
      return parentExpression.get(name);
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/** */
public Expression addToExpression(Expression parentExpression, GenerationContext context) {
  if (isCollectionAttribute()) {
    //special case for NOT MEMBER OF
    if (context.hasMemberOfNode()) {
      return parentExpression.noneOf(name, new ExpressionBuilder().equal(context.getMemberOfNode().getLeftExpression()));
    }
    return outerJoin ? appendCast(parentExpression.anyOfAllowingNone(name), context) :
      appendCast(parentExpression.anyOf(name), context);
  } else {
    // check whether collection attribute is required
    if (requiresCollectionAttribute()) {
      throw JPQLException.invalidCollectionMemberDecl(
        context.getParseTreeContext().getQueryInfo(),
        getLine(), getColumn(), name);
    }
    if (context.shouldUseOuterJoins() || isOuterJoin()) {
      return appendCast(parentExpression.getAllowingNull(name), context);
    } else {
      return appendCast(parentExpression.get(name), context);
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

/** */
public Expression addToExpression(Expression parentExpression, GenerationContext context) {
  if (isCollectionAttribute()) {
    //special case for NOT MEMBER OF
    if (context.hasMemberOfNode()) {
      return parentExpression.noneOf(name, new ExpressionBuilder().equal(context.getMemberOfNode().getLeftExpression()));
    }
    return outerJoin ? appendCast(parentExpression.anyOfAllowingNone(name), context) : 
      appendCast(parentExpression.anyOf(name), context);
  } else {
    // check whether collection attribute is required
    if (requiresCollectionAttribute()) {
      throw JPQLException.invalidCollectionMemberDecl(
        context.getParseTreeContext().getQueryInfo(), 
        getLine(), getColumn(), name);
    }
    if (context.shouldUseOuterJoins() || isOuterJoin()) {
      return appendCast(parentExpression.getAllowingNull(name), context);
    } else {
      return appendCast(parentExpression.get(name), context);
    }
  }
}
org.eclipse.persistence.exceptionsJPQLExceptioninvalidCollectionMemberDecl

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

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • 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
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top Sublime Text 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