congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
JPQLException.invalidEnumEqualExpression
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL
 * Validate node and calculates its type.
 */
public void validate(ParseTreeContext context) {
  super.validate(context);
  TypeHelper typeHelper = context.getTypeHelper();
  Object leftType = left.getType();
  Object rightType = right.getType();
  if (typeHelper.isEnumType(leftType) && !typeHelper.isEnumType(rightType)) {
    throw JPQLException.invalidEnumEqualExpression(
      context.getQueryInfo(), getLine(), getColumn(),
      typeHelper.getTypeName(leftType), typeHelper.getTypeName(rightType));
  } else if (typeHelper.isEnumType(rightType) && !typeHelper.isEnumType(leftType)) {
    throw JPQLException.invalidEnumEqualExpression(
      context.getQueryInfo(), getLine(), getColumn(),
      typeHelper.getTypeName(rightType), typeHelper.getTypeName(leftType));
  }
  setType(typeHelper.getBooleanType());
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL
 * Validate node and calculates its type.
 */
public void validate(ParseTreeContext context) {
  super.validate(context);
  TypeHelper typeHelper = context.getTypeHelper();
  Object leftType = left.getType();
  Object rightType = right.getType();
  if (typeHelper.isEnumType(leftType) && !typeHelper.isEnumType(rightType)) {
    throw JPQLException.invalidEnumEqualExpression( 
      context.getQueryInfo(), getLine(), getColumn(), 
      typeHelper.getTypeName(leftType), typeHelper.getTypeName(rightType));
  } else if (typeHelper.isEnumType(rightType) && !typeHelper.isEnumType(leftType)) {
    throw JPQLException.invalidEnumEqualExpression( 
      context.getQueryInfo(), getLine(), getColumn(),
      typeHelper.getTypeName(rightType), typeHelper.getTypeName(leftType));
  }
      
  setType(typeHelper.getBooleanType());
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL
 * Validate node and calculates its type.
 */
public void validate(ParseTreeContext context) {
  super.validate(context);
  TypeHelper typeHelper = context.getTypeHelper();
  Object leftType = left.getType();
  Object rightType = right.getType();
  if (typeHelper.isEnumType(leftType) && !typeHelper.isEnumType(rightType)) {
    throw JPQLException.invalidEnumEqualExpression( 
      context.getQueryInfo(), getLine(), getColumn(), 
      typeHelper.getTypeName(leftType), typeHelper.getTypeName(rightType));
  } else if (typeHelper.isEnumType(rightType) && !typeHelper.isEnumType(leftType)) {
    throw JPQLException.invalidEnumEqualExpression( 
      context.getQueryInfo(), getLine(), getColumn(),
      typeHelper.getTypeName(rightType), typeHelper.getTypeName(leftType));
  }
      
  setType(typeHelper.getBooleanType());
}
org.eclipse.persistence.exceptionsJPQLExceptioninvalidEnumEqualExpression

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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