|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser
public class ODataExpressionParser
This class contains utility methods for parsing the filter expressions built by core library from user OData Query.
| Field Summary | |
|---|---|
static String |
EMPTY
|
static Integer |
methodFlag
|
| Constructor Summary | |
|---|---|
ODataExpressionParser()
|
|
| Method Summary | |
|---|---|
static String |
parseKeyPredicates(List<KeyPredicate> keyPredicates,
String tableAlias)
This method evaluated the where expression for read of an entity based on the keys specified in the query. |
static HashMap<String,String> |
parseKeyPropertiesToJPAOrderByExpression(List<EdmProperty> edmPropertylist,
String tableAlias)
|
static HashMap<String,String> |
parseToJPAOrderByExpression(OrderByExpression orderByExpression,
String tableAlias)
This method parses the order by condition in the query. |
static String |
parseToJPASelectExpression(String tableAlias,
ArrayList<String> selectedFields)
This method parses the select clause |
static String |
parseToJPAWhereExpression(CommonExpression whereExpression,
String tableAlias)
This method returns the parsed where condition corresponding to the filter input in the user query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EMPTY
public static Integer methodFlag
| Constructor Detail |
|---|
public ODataExpressionParser()
| Method Detail |
|---|
public static String parseToJPAWhereExpression(CommonExpression whereExpression,
String tableAlias)
throws ODataException
whereExpression -
ODataException
public static String parseToJPASelectExpression(String tableAlias,
ArrayList<String> selectedFields)
tableAlias - selectedFields -
public static HashMap<String,String> parseToJPAOrderByExpression(OrderByExpression orderByExpression,
String tableAlias)
throws ODataJPARuntimeException
orderByExpression -
ODataJPARuntimeException
public static String parseKeyPredicates(List<KeyPredicate> keyPredicates,
String tableAlias)
throws ODataJPARuntimeException
keyPredicates -
ODataJPARuntimeException
public static HashMap<String,String> parseKeyPropertiesToJPAOrderByExpression(List<EdmProperty> edmPropertylist,
String tableAlias)
throws ODataJPARuntimeException
ODataJPARuntimeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||