org.datanucleus.query.compiler
Class JPQLSymbolResolver
java.lang.Object
org.datanucleus.query.compiler.AbstractSymbolResolver
org.datanucleus.query.compiler.JPQLSymbolResolver
- All Implemented Interfaces:
- SymbolResolver
public class JPQLSymbolResolver
- extends AbstractSymbolResolver
Symbol resolver for JPQL.
|
Method Summary |
boolean |
caseSensitiveSymbolNames()
Whether names of symbols are case-sensitive (e.g JDOQL returns true, but JPQL returns false). |
java.lang.Class |
resolveClass(java.lang.String className)
Method to perform a lookup of the class name from the input name. |
boolean |
supportsImplicitVariables()
Whether we should accept implicit variables in the query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPQLSymbolResolver
public JPQLSymbolResolver(MetaDataManager mmgr,
ClassLoaderResolver clr,
SymbolTable symtbl,
java.lang.Class cls,
java.lang.String alias)
- Constructor for symbol resolver.
- Parameters:
mmgr - MetaData managerclr - ClassLoader resolversymtbl - Symbol tablecls - Candidate classalias - Candidate alias
resolveClass
public java.lang.Class resolveClass(java.lang.String className)
- Method to perform a lookup of the class name from the input name.
Makes use of the lookup via "entity name".
- Parameters:
className - Name of the class
- Returns:
- The class corresponding to this name
- Throws:
ClassNotResolvedException - thrown if not resolvable using entity name
caseSensitiveSymbolNames
public boolean caseSensitiveSymbolNames()
- Description copied from interface:
SymbolResolver
- Whether names of symbols are case-sensitive (e.g JDOQL returns true, but JPQL returns false).
- Returns:
- Whether case sensitive
supportsImplicitVariables
public boolean supportsImplicitVariables()
- Description copied from interface:
SymbolResolver
- Whether we should accept implicit variables in the query.
JDOQL supports variables, yet JPQL doesn't. Also in JDOQL if the user supplies some
explicit variables then it doesn't allow implicit variables.
- Returns:
- Whether to support implicit variables
Copyright © 2010. All Rights Reserved.