org.hibernate.hql.classic

Class PathExpressionParser

Implemented Interfaces:
Parser
Known Direct Subclasses:
FromPathExpressionParser, SelectPathExpressionParser

public class PathExpressionParser
extends java.lang.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.

Method Summary

void
addAssociation(QueryTranslatorImpl q)
String
addFromAssociation(QueryTranslatorImpl q)
String
addFromCollection(QueryTranslatorImpl q)
protected String[]
currentColumns()
void
end(QueryTranslatorImpl q)
void
fetch(QueryTranslatorImpl q, String entityName)
String
getCollectionSubquery(Map enabledFilters)
String
getName()
protected Type
getPropertyType()
String
getWhereColumn()
Type
getWhereColumnType()
String[]
getWhereColumns()
JoinSequence
getWhereJoin()
void
ignoreInitialJoin()
boolean
isCollectionValued()
boolean
isExpectingCollectionIndex()
org.hibernate.hql.classic.PathExpressionParser.CollectionElement
lastCollectionElement()
protected void
setExpectingCollectionIndex()
void
setLastCollectionElementIndexValue(String value)
void
start(QueryTranslatorImpl q)
void
token(String token, QueryTranslatorImpl q)

Method Details

addAssociation

public void addAssociation(QueryTranslatorImpl q)
            throws QueryException

addFromAssociation

public String addFromAssociation(QueryTranslatorImpl q)
            throws QueryException

addFromCollection

public String addFromCollection(QueryTranslatorImpl q)
            throws QueryException

currentColumns

protected String[] currentColumns()
            throws QueryException

end

public void end(QueryTranslatorImpl q)
            throws QueryException
Specified by:
end in interface Parser

fetch

public void fetch(QueryTranslatorImpl q,
                  String entityName)
            throws QueryException

getCollectionSubquery

public String getCollectionSubquery(Map enabledFilters)
            throws QueryException

getName

public String getName()

getPropertyType

protected Type getPropertyType()
            throws QueryException

getWhereColumn

public String getWhereColumn()
            throws QueryException

getWhereColumnType

public Type getWhereColumnType()

getWhereColumns

public String[] getWhereColumns()

getWhereJoin

public JoinSequence getWhereJoin()

ignoreInitialJoin

public void ignoreInitialJoin()

isCollectionValued

public boolean isCollectionValued()
            throws QueryException

isExpectingCollectionIndex

public boolean isExpectingCollectionIndex()

lastCollectionElement

public org.hibernate.hql.classic.PathExpressionParser.CollectionElement lastCollectionElement()

setExpectingCollectionIndex

protected void setExpectingCollectionIndex()
            throws QueryException

setLastCollectionElementIndexValue

public void setLastCollectionElementIndexValue(String value)

start

public void start(QueryTranslatorImpl q)
Specified by:
start in interface Parser

token

public void token(String token,
                  QueryTranslatorImpl q)
            throws QueryException
Specified by:
token in interface Parser