org.datanucleus.query.compiler
Class AbstractSymbolResolver

java.lang.Object
  extended by org.datanucleus.query.compiler.AbstractSymbolResolver
All Implemented Interfaces:
SymbolResolver
Direct Known Subclasses:
JPQLSymbolResolver

public abstract class AbstractSymbolResolver
extends java.lang.Object
implements SymbolResolver

Base symbol resolver, to be extended for particular query languages.


Field Summary
protected  java.lang.String candidateAlias
           
protected  java.lang.Class candidateClass
           
protected  ClassLoaderResolver clr
           
protected  MetaDataManager metaDataManager
           
protected  SymbolTable symtbl
           
 
Constructor Summary
AbstractSymbolResolver(MetaDataManager mmgr, ClassLoaderResolver clr, SymbolTable symtbl, java.lang.Class cls, java.lang.String alias)
          Constructor for symbol resolver.
 
Method Summary
 java.lang.Class getPrimaryClass()
          Accessor for the candidate class of the query.
 java.lang.Class getType(java.util.List tuples)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.symbol.SymbolResolver
caseSensitiveSymbolNames, resolveClass, supportsImplicitVariables
 

Field Detail

metaDataManager

protected MetaDataManager metaDataManager

clr

protected ClassLoaderResolver clr

symtbl

protected SymbolTable symtbl

candidateClass

protected java.lang.Class candidateClass

candidateAlias

protected java.lang.String candidateAlias
Constructor Detail

AbstractSymbolResolver

public AbstractSymbolResolver(MetaDataManager mmgr,
                              ClassLoaderResolver clr,
                              SymbolTable symtbl,
                              java.lang.Class cls,
                              java.lang.String alias)
Constructor for symbol resolver.

Parameters:
mmgr - MetaData manager
clr - ClassLoader resolver
symtbl - Symbol table
cls - Candidate class
alias - Candidate alias
Method Detail

getType

public java.lang.Class getType(java.util.List tuples)
Specified by:
getType in interface SymbolResolver

getPrimaryClass

public java.lang.Class getPrimaryClass()
Description copied from interface: SymbolResolver
Accessor for the candidate class of the query.

Specified by:
getPrimaryClass in interface SymbolResolver
Returns:
The candidate class


Copyright © 2010. All Rights Reserved.