org.eobjects.metamodel.query.parser
Class SelectItemParser
java.lang.Object
org.eobjects.metamodel.query.parser.SelectItemParser
- All Implemented Interfaces:
- QueryPartProcessor
public final class SelectItemParser
- extends Object
- implements QueryPartProcessor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectItemParser
public SelectItemParser(Query query,
boolean allowExpressionBasedSelectItems)
parse
public void parse(String delim,
String itemToken)
throws MetaModelException
- Description copied from interface:
QueryPartProcessor
- Method invoked whenever the
QueryPartParser identifies a token.
- Specified by:
parse in interface QueryPartProcessor
- Parameters:
delim - the (previous) delimitor identified before the token. This
will always be null in case of the first token.itemToken - the token identified.
- Throws:
MetaModelException
findSelectItem
public SelectItem findSelectItem(String expression)
throws SelectItemParser.MultipleSelectItemsParsedException
- Finds/creates a SelectItem based on the given expression. Unlike the
parse(String, String) method, this method will not actually add
the selectitem to the query.
- Parameters:
expression -
- Returns:
-
- Throws:
SelectItemParser.MultipleSelectItemsParsedException - if an expression yielding multiple select-items (such as "*")
was passed in the expression
Copyright © 2007-2013. All Rights Reserved.