站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

Parser (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.hql.classic
Interface Parser

All Known Implementing Classes:
ClauseParser, FromParser, GroupByParser, OrderByParser, PathExpressionParser, PreprocessingParser, SelectParser, WhereParser

public interface Parser

A parser is a state machine that accepts a string of tokens, bounded by start() and end() and modifies a QueryTranslator. Parsers are NOT intended to be threadsafe. They SHOULD be reuseable for more than one token stream.


Method Summary
 void end(QueryTranslatorImpl q)
           
 void start(QueryTranslatorImpl q)
           
 void token(String token, QueryTranslatorImpl q)
           
 

Method Detail

token

public void token(String token,
                  QueryTranslatorImpl q)
           throws QueryException
Throws:
QueryException

start

public void start(QueryTranslatorImpl q)
           throws QueryException
Throws:
QueryException

end

public void end(QueryTranslatorImpl q)
         throws QueryException
Throws:
QueryException