congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JPQLException.invalidExpressionArgument
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL
 * Validate the current node and calculates its type.
 */
public void validate(ParseTreeContext context) {
  Object leftType = null;
  TypeHelper typeHelper = context.getTypeHelper();
  if (left != null) {
    left.validate(context);
    // check to see if the argument is a parameter
    if (isListParameterOrSubquery && !getTheObjects().isEmpty() && ((Node)getTheObjects().get(0)).isParameterNode()){
      leftType = Collection.class;
    } else {
      leftType = left.getType();
    }
  }
  for (Iterator i = getTheObjects().iterator(); i.hasNext();) {
    Node node = (Node)i.next();
    node.validate(context);
    node.validateParameter(context, leftType);
    Object nodeType = node.getType();
    if ((leftType != null) && !typeHelper.isAssignableFrom(leftType, nodeType))
      throw JPQLException.invalidExpressionArgument(
        context.getQueryInfo(), node.getLine(), node.getColumn(),
        "IN", node.getAsString(), typeHelper.getTypeName(leftType));
  }
  setType(typeHelper.getBooleanType());
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL
 * Validate the current node and calculates its type.
 */
public void validate(ParseTreeContext context) {
  Object leftType = null;
  TypeHelper typeHelper = context.getTypeHelper();
  if (left != null) {
    left.validate(context);
    // check to see if the argument is a parameter
    if (isListParameterOrSubquery && !getTheObjects().isEmpty() && ((Node)getTheObjects().get(0)).isParameterNode()){
      leftType = Collection.class;
    } else {
      leftType = left.getType();
    }
  }
  for (Iterator i = getTheObjects().iterator(); i.hasNext();) {
    Node node = (Node)i.next();
    node.validate(context);
    node.validateParameter(context, leftType);
    Object nodeType = node.getType();
    if ((leftType != null) && !typeHelper.isAssignableFrom(leftType, nodeType))
      throw JPQLException.invalidExpressionArgument(
        context.getQueryInfo(), node.getLine(), node.getColumn(),
        "IN", node.getAsString(), typeHelper.getTypeName(leftType));
  }
  setType(typeHelper.getBooleanType());
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL
 * Validate the current node and calculates its type.
 */
public void validate(ParseTreeContext context) {
  Object leftType = null;
  TypeHelper typeHelper = context.getTypeHelper();
  if (left != null) {
    left.validate(context);
    // check to see if the argument is a parameter
    if (isListParameterOrSubquery && !getTheObjects().isEmpty() && ((Node)getTheObjects().get(0)).isParameterNode()){
      leftType = Collection.class;
    } else {
      leftType = left.getType();
    }
  }
  for (Iterator i = getTheObjects().iterator(); i.hasNext();) {
    Node node = (Node)i.next();
    node.validate(context);
    node.validateParameter(context, leftType);
    Object nodeType = node.getType();
    if ((leftType != null) && !typeHelper.isAssignableFrom(leftType, nodeType))
      throw JPQLException.invalidExpressionArgument(
        context.getQueryInfo(), node.getLine(), node.getColumn(),
        "IN", node.getAsString(), typeHelper.getTypeName(leftType));
  }
  setType(typeHelper.getBooleanType());
}
org.eclipse.persistence.exceptionsJPQLExceptioninvalidExpressionArgument

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,
  • invalidFunctionArgument,
  • invalidMultipleUseOfSameParameter,
  • invalidNavigation,
  • invalidSetClauseNavigation,
  • invalidSetClauseTarget

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JFileChooser (javax.swing)
  • Top PhpStorm 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