当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
PathExpressionParser (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.hql
Class PathExpressionParser
java.lang.Object
net.sf.hibernate.hql.PathExpressionParser
- All Implemented Interfaces:
- Parser
- Direct Known Subclasses:
- FromPathExpressionParser, SelectPathExpressionParser
- public class PathExpressionParser
- extends Object
- implements Parser
Parses an expression of the form foo.bar.baz and builds up an expression
involving two less table joins than there are path components.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathExpressionParser
public PathExpressionParser()
ignoreInitialJoin
public void ignoreInitialJoin()
token
public void token(String token,
QueryTranslator q)
throws QueryException
- Specified by:
token
in interface Parser
- Throws:
QueryException
getPropertyType
protected Type getPropertyType()
throws QueryException
- Throws:
QueryException
currentColumns
protected String[] currentColumns()
throws QueryException
- Throws:
QueryException
start
public void start(QueryTranslator q)
- Specified by:
start
in interface Parser
end
public void end(QueryTranslator q)
throws QueryException
- Specified by:
end
in interface Parser
- Throws:
QueryException
lastCollectionElement
public net.sf.hibernate.hql.PathExpressionParser.CollectionElement lastCollectionElement()
setLastCollectionElementIndexValue
public void setLastCollectionElementIndexValue(String value)
isExpectingCollectionIndex
public boolean isExpectingCollectionIndex()
setExpectingCollectionIndex
protected void setExpectingCollectionIndex()
throws QueryException
- Throws:
QueryException
getWhereJoin
public JoinFragment getWhereJoin()
getWhereColumn
public String getWhereColumn()
throws QueryException
- Throws:
QueryException
getWhereColumns
public String[] getWhereColumns()
getWhereColumnType
public Type getWhereColumnType()
getName
public String getName()
getCollectionSubquery
public String getCollectionSubquery()
throws QueryException
- Throws:
QueryException
isCollectionValued
public boolean isCollectionValued()
throws QueryException
- Throws:
QueryException
addAssociation
public void addAssociation(QueryTranslator q)
addFromAssociation
public String addFromAssociation(QueryTranslator q)
throws QueryException
- Throws:
QueryException
addFromCollection
public String addFromCollection(QueryTranslator q)
throws QueryException
- Throws:
QueryException
fetch
public void fetch(QueryTranslator q,
String entityName)
throws QueryException
- Throws:
QueryException