Package com.soffid.scimquery.expr
Class AbstractExpression
java.lang.Object
com.soffid.scimquery.expr.AbstractExpression
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AndExpression,ComparisonExpression,NotExpression,OrderByExpression,OrExpression,VoidExpression
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancom.soffid.scimquery.expr.EvaluationContextgenerateHQLNotPrStringReference(HQLQuery query, String attributeReference) com.soffid.scimquery.expr.EvaluationContextgenerateHQLStringReference(HQLQuery query, String attributeReference) Generates HQL Sentence attribute referencevoidgenerateHQLStringReference(HQLQuery query, String attributeReference, com.soffid.scimquery.expr.EvaluationContext ctx) Inner method to translate HSQL sentence on a specific contextabstract voidgenerateHSQLString(HQLQuery query) Generates HQL SentencegenerateHSQLString(Class clazz) getReference(Object object, String referenceName) Evaluates a simple scim attribute reference Multiple values can be obtainedbooleanvoidsetOracleWorkaround(boolean oracleWorkaround)
-
Field Details
-
ROOT_OBJECT_NAME
- See Also:
-
ROOT_OBJECT_NAME2
- See Also:
-
-
Constructor Details
-
AbstractExpression
public AbstractExpression()
-
-
Method Details
-
generateHSQLString
Generates HQL Sentence- Parameters:
query-- Throws:
EvalException
-
evaluate
- Throws:
EvalException
-
getReference
Evaluates a simple scim attribute reference Multiple values can be obtained- Parameters:
object- the bean to get values fromreferenceName- the attribute reference- Returns:
- the values
- Throws:
EvalException
-
generateHQLStringReference
public com.soffid.scimquery.expr.EvaluationContext generateHQLStringReference(HQLQuery query, String attributeReference) throws UnsupportedEncodingException, ClassNotFoundException, EvalException, org.json.JSONException Generates HQL Sentence attribute reference- Parameters:
query- The HQL Sentence configurationattributeReference- Attribute to translate- Returns:
- the translated attribute reference
- Throws:
UnsupportedEncodingExceptionClassNotFoundExceptionEvalExceptionorg.json.JSONException
-
generateHQLNotPrStringReference
public com.soffid.scimquery.expr.EvaluationContext generateHQLNotPrStringReference(HQLQuery query, String attributeReference) throws UnsupportedEncodingException, ClassNotFoundException, org.json.JSONException, EvalException - Throws:
UnsupportedEncodingExceptionClassNotFoundExceptionorg.json.JSONExceptionEvalException
-
generateHQLStringReference
public void generateHQLStringReference(HQLQuery query, String attributeReference, com.soffid.scimquery.expr.EvaluationContext ctx) throws EvalException, UnsupportedEncodingException, ClassNotFoundException, org.json.JSONException Inner method to translate HSQL sentence on a specific context- Parameters:
query-attributeReference-ctx-- Throws:
EvalExceptionUnsupportedEncodingExceptionClassNotFoundExceptionorg.json.JSONException
-
generateHSQLString
public HQLQuery generateHSQLString(Class clazz) throws EvalException, UnsupportedEncodingException, ClassNotFoundException, org.json.JSONException - Throws:
EvalExceptionUnsupportedEncodingExceptionClassNotFoundExceptionorg.json.JSONException
-
isOracleWorkaround
public boolean isOracleWorkaround() -
setOracleWorkaround
public void setOracleWorkaround(boolean oracleWorkaround)
-