Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » hql » ast » [javadoc | source]
org.hibernate.hql.ast
public class: QueryTranslatorImpl [javadoc | source]
java.lang.Object
   org.hibernate.hql.ast.QueryTranslatorImpl

All Implemented Interfaces:
    FilterTranslator

A QueryTranslator that uses an Antlr-based parser.
Nested Class Summary:
public static class  QueryTranslatorImpl.JavaConstantConverter   
Constructor:
 public QueryTranslatorImpl(String queryIdentifier,
    String query,
    Map enabledFilters,
    SessionFactoryImplementor factory) 
    Creates a new AST-based query translator.
    Parameters:
    queryIdentifier - The query-identifier (used in stats collection)
    query - The hql query to translate
    enabledFilters - Currently enabled filters
    factory - The session factory constructing this translator instance.
Method from org.hibernate.hql.ast.QueryTranslatorImpl Summary:
collectSqlStrings,   compile,   compile,   containsCollectionFetches,   executeUpdate,   getCollectedParameterSpecifications,   getColumnNames,   getEnabledFilters,   getNamedParameterLocs,   getParameterTranslations,   getQueryIdentifier,   getQuerySpaces,   getQueryString,   getReturnAliases,   getReturnTypes,   getSQLString,   getSqlAST,   isManipulationStatement,   isShallowQuery,   iterate,   list,   scroll,   showHqlAst,   validateScrollability
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.hql.ast.QueryTranslatorImpl Detail:
 public List collectSqlStrings() 
 public  void compile(Map replacements,
    boolean shallow) throws QueryException, MappingException 
    Compile a "normal" query. This method may be called multiple times. Subsequent invocations are no-ops.
 public  void compile(String collectionRole,
    Map replacements,
    boolean shallow) throws QueryException, MappingException 
    Compile a filter. This method may be called multiple times. Subsequent invocations are no-ops.
 public boolean containsCollectionFetches() 
 public int executeUpdate(QueryParameters queryParameters,
    SessionImplementor session) throws HibernateException 
 public List getCollectedParameterSpecifications() 
 public String[][] getColumnNames() 
 public Map getEnabledFilters() 
 public int[] getNamedParameterLocs(String name) 
 public ParameterTranslations getParameterTranslations() 
 public String getQueryIdentifier() 
 public Set getQuerySpaces() 
 public String getQueryString() 
 public String[] getReturnAliases() 
 public Type[] getReturnTypes() 
    Types of the return values of an iterate() style query.
 public String getSQLString() 
    The SQL query string to be called; implemented by all subclasses
 public Statement getSqlAST() 
 public boolean isManipulationStatement() 
 public boolean isShallowQuery() 
 public Iterator iterate(QueryParameters queryParameters,
    EventSource session) throws HibernateException 
    Return the query results as an iterator
 public List list(SessionImplementor session,
    QueryParameters queryParameters) throws HibernateException 
 public ScrollableResults scroll(QueryParameters queryParameters,
    SessionImplementor session) throws HibernateException 
    Return the query results, as an instance of ScrollableResults
  void showHqlAst(AST hqlAst) 
 public  void validateScrollability() throws HibernateException