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

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

Best Java code snippets using org.eclipse.persistence.exceptions.JPQLException.expectedOrderableOrderByItem (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: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL
 * Validate node and calculate its type.
 */
public void validate(ParseTreeContext context) {
  TypeHelper typeHelper = context.getTypeHelper();
  if (orderNode == null){
    if (orderByItem instanceof Node){
      orderNode = (Node)orderByItem;
    } else {
      orderNode = context.pathForVariable((String)orderByItem);
      if (orderNode == null){
        throw JPQLException.nonExistantOrderByAlias(
            context.getQueryInfo(), getLine(), getColumn(), 
            (String)orderByItem);
      }
    }
  }
  if (orderNode != null) {
    orderNode.validate(context);
    Object type = orderNode.getType();
    setType(type);
    if (!typeHelper.isOrderableType(type)) {
      throw JPQLException.expectedOrderableOrderByItem(
        context.getQueryInfo(), orderNode.getLine(), orderNode.getColumn(), 
        orderNode.getAsString(), typeHelper.getTypeName(type));
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL
 * Validate node and calculate its type.
 */
public void validate(ParseTreeContext context) {
  TypeHelper typeHelper = context.getTypeHelper();
  if (orderNode == null){
    if (orderByItem instanceof Node){
      orderNode = (Node)orderByItem;
    } else {
      orderNode = context.pathForVariable((String)orderByItem);
      if (orderNode == null){
        throw JPQLException.nonExistantOrderByAlias(
            context.getQueryInfo(), getLine(), getColumn(),
            (String)orderByItem);
      }
    }
  }
  if (orderNode != null) {
    orderNode.validate(context);
    Object type = orderNode.getType();
    setType(type);
    if (!typeHelper.isOrderableType(type)) {
      throw JPQLException.expectedOrderableOrderByItem(
        context.getQueryInfo(), orderNode.getLine(), orderNode.getColumn(),
        orderNode.getAsString(), typeHelper.getTypeName(type));
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL
 * Validate node and calculate its type.
 */
public void validate(ParseTreeContext context) {
  TypeHelper typeHelper = context.getTypeHelper();
  if (orderNode == null){
    if (orderByItem instanceof Node){
      orderNode = (Node)orderByItem;
    } else {
      orderNode = context.pathForVariable((String)orderByItem);
      if (orderNode == null){
        throw JPQLException.nonExistantOrderByAlias(
            context.getQueryInfo(), getLine(), getColumn(), 
            (String)orderByItem);
      }
    }
  }
  if (orderNode != null) {
    orderNode.validate(context);
    Object type = orderNode.getType();
    setType(type);
    if (!typeHelper.isOrderableType(type)) {
      throw JPQLException.expectedOrderableOrderByItem(
        context.getQueryInfo(), orderNode.getLine(), orderNode.getColumn(), 
        orderNode.getAsString(), typeHelper.getTypeName(type));
    }
  }
}
org.eclipse.persistence.exceptionsJPQLExceptionexpectedOrderableOrderByItem

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTable (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