| Modifier and Type | Field and Description |
|---|---|
| protected boolean | addAdditionalExpressionsWithinCurrrentExpressionContext
Used to trigger adding additional join operations etc to the expression being processed instead of at the end of the where clause. |
| protected Expression | additionalExpression
A new root expression can be made from joins being added to the original expression. |
| protected Expression | additionalLocalExpression
Local expression from joins being added to the original expression. |
| protected Map | clonedExpressions
Used to maintain identity of cloned expressions. |
| protected AbstractSession | session
The session being normalized in. |
| protected SQLSelectStatement | statement
The statement being normalized. |
| protected List | subSelectExpressions
Subselect expressions found in the course of normalization. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addAdditionalLocalExpression(Expression theExpression)
Similar to addAdditionalExpression, this keeps a running expression used for joins so that they can be added locally within 'OR' predicates rather than to the entire where clause. |
| public void | addSubSelectExpression(SubSelectExpression subSelectExpression)
INTERNAL: Remember this subselect so that it can be normalized after the enclosing select statement is. |
| public boolean | encounteredSubSelectExpressions()
INTERNAL: Were subselect expressions found while normalizing the selection criteria? |
| public Expression | |
| public Map | |
| public AbstractSession | |
| public SQLSelectStatement | |
| public boolean | |
| public void | normalizeSubSelects(Map<K, V> clonedExpressions)
INTERNAL: Normalize all subselect expressions found in the course of normalizing the enclosing query. |
| public Expression | processAdditionalLocalExpressions(Expression localExpression, boolean isLogicalExpression)
INTERNAL This will return the localExpression if isLogicalExpression is false, otherwise it will check the addAdditionalExpressionsWithinCurrrentExpressionContext flag and clear additionalLocalExpression once adding it to the localExpression. |
| public void | setAddAdditionalExpressionsWithinCurrrentExpressionContext(boolean addAdditionalExpressionsWithinCurrrentExpressionContext)
INTERNAL: Allows keeping track when the normalizer is within a logical OR statement, where additionalExpressions might need to be added to the local expression instead of at the end of the where clause. |
| public void | |
| public void | |
| public void | |
| public void |
| addAdditionalExpressionsWithinCurrrentExpressionContext | back to summary |
|---|---|
| protected boolean addAdditionalExpressionsWithinCurrrentExpressionContext Used to trigger adding additional join operations etc to the expression being processed instead of at the end of the where clause. Useful for dealing with Treat within an Or clause, as the type expression needs to be appended within the OR condition rather AND'd to the entire thing. | |
| additionalExpression | back to summary |
|---|---|
| protected Expression additionalExpression A new root expression can be made from joins being added to the original expression. | |
| additionalLocalExpression | back to summary |
|---|---|
| protected Expression additionalLocalExpression Local expression from joins being added to the original expression. | |
| clonedExpressions | back to summary |
|---|---|
| protected Map<Expression, Expression> clonedExpressions Used to maintain identity of cloned expressions. | |
| session | back to summary |
|---|---|
| protected AbstractSession session The session being normalized in. | |
| statement | back to summary |
|---|---|
| protected SQLSelectStatement statement The statement being normalized. | |
| subSelectExpressions | back to summary |
|---|---|
| protected List<SubSelectExpression> subSelectExpressions Subselect expressions found in the course of normalization. | |
| ExpressionNormalizer | back to summary |
|---|---|
| public ExpressionNormalizer(SQLSelectStatement statement) | |
| addAdditionalExpression | back to summary |
|---|---|
| public void addAdditionalExpression(Expression theExpression) | |
| addAdditionalLocalExpression | back to summary |
|---|---|
| public void addAdditionalLocalExpression(Expression theExpression) Similar to addAdditionalExpression, this keeps a running expression used for joins so that they can be added locally within 'OR' predicates rather than to the entire where clause. If addAdditionalExpressionsWithinCurrrentExpressionContext is false, it will work the same as addAdditionalExpression | |
| addSubSelectExpression | back to summary |
|---|---|
| public void addSubSelectExpression(SubSelectExpression subSelectExpression) INTERNAL: Remember this subselect so that it can be normalized after the enclosing select statement is. | |
| encounteredSubSelectExpressions | back to summary |
|---|---|
| public boolean encounteredSubSelectExpressions() INTERNAL: Were subselect expressions found while normalizing the selection criteria? Assumes underlying collection is initialized on first add. | |
| getAdditionalExpression | back to summary |
|---|---|
| public Expression getAdditionalExpression() | |
| getClonedExpressions | back to summary |
|---|---|
| public Map | |
| getSession | back to summary |
|---|---|
| public AbstractSession getSession() | |
| getStatement | back to summary |
|---|---|
| public SQLSelectStatement getStatement() | |
| isAddAdditionalExpressionsWithinCurrrentExpressionContext | back to summary |
|---|---|
| public boolean isAddAdditionalExpressionsWithinCurrrentExpressionContext() | |
| normalizeSubSelects | back to summary |
|---|---|
| public void normalizeSubSelects(Map<K, V> clonedExpressions) INTERNAL: Normalize all subselect expressions found in the course of normalizing the enclosing query. This method allows one to completely normalize the parent statement first (which should treat its sub selects as black boxes), and then normalize the subselects (which require full knowledge of the enclosing statement). This should make things clearer too, Assumes encounteredSubSelectExpressions() true. For CR#4223. | |
| processAdditionalLocalExpressions | back to summary |
|---|---|
| public Expression processAdditionalLocalExpressions(Expression localExpression, boolean isLogicalExpression) INTERNAL This will return the localExpression if isLogicalExpression is false, otherwise it will check the addAdditionalExpressionsWithinCurrrentExpressionContext flag and clear additionalLocalExpression once adding it to the localExpression. | |
| setAddAdditionalExpressionsWithinCurrrentExpressionContext | back to summary |
|---|---|
| public void setAddAdditionalExpressionsWithinCurrrentExpressionContext(boolean addAdditionalExpressionsWithinCurrrentExpressionContext) INTERNAL: Allows keeping track when the normalizer is within a logical OR statement, where additionalExpressions might need to be added to the local expression instead of at the end of the where clause. | |
| setAdditionalExpression | back to summary |
|---|---|
| public void setAdditionalExpression(Expression additionalExpression) | |
| setClonedExpressions | back to summary |
|---|---|
| public void setClonedExpressions(Map<Expression, Expression> clonedExpressions) | |
| setSession | back to summary |
|---|---|
| public void setSession(AbstractSession session) | |
| setStatement | back to summary |
|---|---|
| public void setStatement(SQLSelectStatement statement) | |