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

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

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

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

  /**
   * INTERNAL
   * Validate node and calculate its type.
   */
  public void validate(ParseTreeContext context) {
    super.validate(context);
    TypeHelper typeHelper = context.getTypeHelper();
    Object type = typeHelper.resolveSchema(abstractSchemaName);
    if (type == null) {
      throw JPQLException.entityTypeNotFound2(
        context.getQueryInfo(), getLine(), getColumn(), abstractSchemaName);
    }
    setType(type);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  /**
   * INTERNAL
   * Validate node and calculate its type.
   */
  public void validate(ParseTreeContext context) {
    super.validate(context);
    TypeHelper typeHelper = context.getTypeHelper();
    Object type = typeHelper.resolveSchema(abstractSchemaName);
    if (type == null) {
      throw JPQLException.entityTypeNotFound2(
        context.getQueryInfo(), getLine(), getColumn(), abstractSchemaName);
    }
    setType(type);
  }
}
origin: com.haulmont.thirdparty/eclipselink

  /**
   * INTERNAL
   * Validate node and calculate its type.
   */
  public void validate(ParseTreeContext context) {
    super.validate(context);
    TypeHelper typeHelper = context.getTypeHelper();
    Object type = typeHelper.resolveSchema(abstractSchemaName);
    if (type == null) {
      throw JPQLException.entityTypeNotFound2(
        context.getQueryInfo(), getLine(), getColumn(), abstractSchemaName);
    }
    setType(type);
  }
}
origin: com.haulmont.thirdparty/eclipselink

  /**
   * resolveClass: Answer the class which corresponds to my variableName. This is the class for
   * an alias, where the variableName is registered to an alias.
   */
  public Class resolveClass(GenerationContext context) {
    String alias = abstractSchemaName;
    ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(alias);
    if (descriptor == null) {
      throw JPQLException.entityTypeNotFound2(
        context.getParseTreeContext().getQueryInfo(), 
        getLine(), getColumn(), alias);
    }
    Class theClass = descriptor.getJavaClass();
    if (theClass == null) {
      throw JPQLException.resolutionClassNotFoundException2(
        context.getParseTreeContext().getQueryInfo(), 
        getLine(), getColumn(), alias);
    }
    return theClass;
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  /**
   * resolveClass: Answer the class which corresponds to my variableName. This is the class for
   * an alias, where the variableName is registered to an alias.
   */
  public Class resolveClass(GenerationContext context) {
    String alias = abstractSchemaName;
    ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(alias);
    if (descriptor == null) {
      throw JPQLException.entityTypeNotFound2(
        context.getParseTreeContext().getQueryInfo(), 
        getLine(), getColumn(), alias);
    }
    Class theClass = descriptor.getJavaClass();
    if (theClass == null) {
      throw JPQLException.resolutionClassNotFoundException2(
        context.getParseTreeContext().getQueryInfo(), 
        getLine(), getColumn(), alias);
    }
    return theClass;
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  /**
   * resolveClass: Answer the class which corresponds to my variableName. This is the class for
   * an alias, where the variableName is registered to an alias.
   */
  public Class resolveClass(GenerationContext context) {
    String alias = abstractSchemaName;
    ClassDescriptor descriptor = context.getSession().getDescriptorForAlias(alias);
    if (descriptor == null) {
      throw JPQLException.entityTypeNotFound2(
        context.getParseTreeContext().getQueryInfo(),
        getLine(), getColumn(), alias);
    }
    Class theClass = descriptor.getJavaClass();
    if (theClass == null) {
      throw JPQLException.resolutionClassNotFoundException2(
        context.getParseTreeContext().getQueryInfo(),
        getLine(), getColumn(), alias);
    }
    return theClass;
  }
}
org.eclipse.persistence.exceptionsJPQLExceptionentityTypeNotFound2

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

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
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