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

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

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

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 (left != null) {
    left.validate(context);
    left.validateParameter(context, typeHelper.getIntType());
    Object type = left.getType();
    if (!typeHelper.isIntegralType(type))
      throw JPQLException.invalidFunctionArgument(
        context.getQueryInfo(), left.getLine(), left.getColumn(),
        "MOD", left.getAsString(), "integral type");
  }
  if (denominator != null) {
    denominator.validate(context);
    denominator.validateParameter(context, typeHelper.getIntType());
    Object denominatorType = denominator.getType();
    if (!typeHelper.isIntegralType(denominatorType))
      throw JPQLException.invalidFunctionArgument(
        context.getQueryInfo(), denominator.getLine(), denominator.getColumn(),
        "MOD", denominator.getAsString(), "integral type");
  }
  setType(typeHelper.getIntType());
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL
 * Validate node and calculate its type.
 */
public void validate(ParseTreeContext context) {
  TypeHelper typeHelper = context.getTypeHelper();
  if (left != null) {
    left.validate(context);
    left.validateParameter(context, typeHelper.getIntType());
    Object type = left.getType();
    if (!typeHelper.isIntegralType(type))
      throw JPQLException.invalidFunctionArgument(
        context.getQueryInfo(), left.getLine(), left.getColumn(), 
        "MOD", left.getAsString(), "integral type");
  }
  if (denominator != null) {
    denominator.validate(context);
    denominator.validateParameter(context, typeHelper.getIntType());
    Object denominatorType = denominator.getType();
    if (!typeHelper.isIntegralType(denominatorType))
      throw JPQLException.invalidFunctionArgument(
        context.getQueryInfo(), denominator.getLine(), denominator.getColumn(), 
        "MOD", denominator.getAsString(), "integral type");
  }
  setType(typeHelper.getIntType());
}
 
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 (left != null) {
    left.validate(context);
    left.validateParameter(context, typeHelper.getIntType());
    Object type = left.getType();
    if (!typeHelper.isIntegralType(type))
      throw JPQLException.invalidFunctionArgument(
        context.getQueryInfo(), left.getLine(), left.getColumn(), 
        "MOD", left.getAsString(), "integral type");
  }
  if (denominator != null) {
    denominator.validate(context);
    denominator.validateParameter(context, typeHelper.getIntType());
    Object denominatorType = denominator.getType();
    if (!typeHelper.isIntegralType(denominatorType))
      throw JPQLException.invalidFunctionArgument(
        context.getQueryInfo(), denominator.getLine(), denominator.getColumn(), 
        "MOD", denominator.getAsString(), "integral type");
  }
  setType(typeHelper.getIntType());
}
 
org.eclipse.persistence.exceptionsJPQLExceptioninvalidFunctionArgument

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

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 17 PhpStorm Plugins
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