| Modifier and Type | Field and Description |
|---|---|
| protected Expression | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | computeHashCode()
Overrides org. |
| public String | descriptionOfNodeType()
Overrides org. |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides org. |
| public ExpressionBuilder | getBuilder()
Implements abstract org. |
| protected Expression | |
| public String | |
| public boolean | isLiteralExpression()
Overrides org. |
| protected void | postCopyIn(Map<K, V> alreadyDone)
Overrides org. |
| public void | printSQL(ExpressionSQLPrinter printer)
Implements abstract org. |
| public Expression | rebuildOn(Expression newBase)
Implements abstract org. |
| public void | resetPlaceHolderBuilder(ExpressionBuilder queryBuilder)
Implements abstract org. |
| public void | setLocalBase(Expression e)
Overrides org. |
| public Expression | twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase)
Overrides org. |
| public Object | valueFromObject(Object object, AbstractSession session, AbstractRecord translationRow, int valueHolderPolicy, boolean
true if object possibly not a clone, but is being
conformed against the unit of work cache. isObjectUnregistered)Overrides org. |
| public void | writeDescriptionOn(BufferedWriter writer)
Overrides org. |
| public void | writeFields(ExpressionSQLPrinter printer, List<DatabaseField> newFields, SQLSelectStatement statement)
Overrides org. |
| localBase | back to summary |
|---|---|
| protected Expression localBase | |
| value | back to summary |
|---|---|
| protected String value | |
| LiteralExpression | back to summary |
|---|---|
| public LiteralExpression() | |
| LiteralExpression | back to summary |
|---|---|
| public LiteralExpression(String newValue, Expression baseExpression) | |
| computeHashCode | back to summary |
|---|---|
| public int computeHashCode() Overrides org. INTERNAL: Compute a consistent hash-code for the expression. This is used to allow dynamic expression's SQL to be cached.
| |
| descriptionOfNodeType | back to summary |
|---|---|
| public String descriptionOfNodeType() Overrides org. INTERNAL: Used for debug printing.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides org. INTERNAL: Return if the expression is equal to the other. This is used to allow dynamic expression's SQL to be cached.
| |
| getBuilder | back to summary |
|---|---|
| public ExpressionBuilder getBuilder() Implements abstract org. Return the expression builder which is the ultimate base of this expression, or null if there isn't one (shouldn't happen if we start from a root)
| |
| getLocalBase | back to summary |
|---|---|
| protected Expression getLocalBase() | |
| getValue | back to summary |
|---|---|
| public String getValue() | |
| isLiteralExpression | back to summary |
|---|---|
| public boolean isLiteralExpression() Overrides org. Doc from org. INTERNAL:
| |
| postCopyIn | back to summary |
|---|---|
| protected void postCopyIn(Map<K, V> alreadyDone) Overrides org. INTERNAL: Used for cloning.
| |
| printSQL | back to summary |
|---|---|
| public void printSQL(ExpressionSQLPrinter printer) Implements abstract org. INTERNAL: Print SQL onto the stream, using the ExpressionPrinter for context
| |
| rebuildOn | back to summary |
|---|---|
| public Expression rebuildOn(Expression newBase) Implements abstract org. INTERNAL: This expression is built on a different base than the one we want. Rebuild it and return the root of the new tree
| |
| resetPlaceHolderBuilder | back to summary |
|---|---|
| public void resetPlaceHolderBuilder(ExpressionBuilder queryBuilder) Implements abstract org. INTERNAL: Search the tree for any expressions (like SubSelectExpressions) that have been built using a builder that is not attached to the query. This happens in case of an Exists call using a new ExpressionBuilder(). This builder needs to be replaced with one from the query.
| |
| setLocalBase | back to summary |
|---|---|
| public void setLocalBase(Expression e) Overrides org. Doc from org. INTERNAL: Set the local base expression, ie the one on the other side of the operator Most types will ignore this, since they don't need it.
| |
| twistedForBaseAndContext | back to summary |
|---|---|
| public Expression twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase) Overrides org. INTERNAL: Rebuild myself against the base, with the values of parameters supplied by the context expression. This is used for transforming a standalone expression (e.g. the join criteria of a mapping) into part of some larger expression. You normally would not call this directly, instead calling twist See the comment there for more details"
| |
| valueFromObject | back to summary |
|---|---|
| public Object valueFromObject(Object object, AbstractSession session, AbstractRecord translationRow, int valueHolderPolicy, boolean isObjectUnregistered) Overrides org. INTERNAL: Return the value for in memory comparison. This is only valid for valueable expressions.
| |
| writeDescriptionOn | back to summary |
|---|---|
| public void writeDescriptionOn(BufferedWriter writer) throws IOException Overrides org. INTERNAL: Used to print a debug form of the expression tree.
| |
| writeFields | back to summary |
|---|---|
| public void writeFields(ExpressionSQLPrinter printer, List<DatabaseField> newFields, SQLSelectStatement statement) Overrides org. INTERNAL: Append the literal value into the printer, accounting for the first element
| |