| Modifier and Type | Field and Description |
|---|---|
| protected Boolean | canBind
'True' indicates this expression can bind parameters 'False' indicates this expression cannot bind parameters Defaults to 'null' to indicate specific no preference |
| protected DatabaseField | field
The parameter field or name. |
| protected boolean | |
| protected Expression | localBase
The opposite side of the relation, this is used for conversion of the parameter using the others mapping. |
| pack-priv Object | type
The inferred type of the parameter. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Boolean | canBind()
INTERNAL: true indicates this expression can bind parameters false indicates this expression cannot bind parameters Defaults to null to indicate no specific preference |
| 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 Expression | get(String attributeOrQueryKey)
Overrides org. |
| public ExpressionBuilder | getBuilder()
Overrides org. |
| public DatabaseField | |
| public Expression | getField(DatabaseField field)
Overrides org. |
| public Expression | getLocalBase()
The opposite side of the relation, this is used for conversion of the parameter using the others mapping. |
| public Object | |
| public Object | |
| public Object | getValue(AbstractRecord translationRow, DatabaseQuery query, AbstractSession session)
Extract the value from the row. |
| public boolean | isParameterExpression()
Overrides org. |
| public boolean | |
| public boolean | isValueExpression()
Overrides org. |
| protected void | postCopyIn(Map<K, V> alreadyDone)
Overrides org. |
| public void | printJava(ExpressionJavaPrinter printer)
Overrides org. |
| public void | printSQL(ExpressionSQLPrinter printer)
Implements abstract org. |
| public Expression | rebuildOn(Expression newBase)
Implements abstract org. |
| public void | resetPlaceHolderBuilder(ExpressionBuilder queryBuilder)
Overrides org. |
| public void | setCanBind(Boolean canBind)
INTERNAL: Set to true if this expression can bind parameters Set to false if this expression cannot bind parameters Set to null to indicate no specific preference |
| public void | |
| public void | setIsProperty(boolean isProperty)
INTERNAL: Set to true if this parameter expression maps to a property value. |
| public void | setLocalBase(Expression localBase)
Overrides org. |
| public void | |
| public Expression | twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase)
Overrides org. |
| protected void | validateParameterValueAgainstMapping(Object value, boolean useBaseExpression)
INTERNAL Validate the passed parameter against the local base mapping. |
| 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. |
| public void | writeSubexpressionsTo(BufferedWriter writer, int indent)
Overrides org. |
| canBind | back to summary |
|---|---|
| protected Boolean canBind 'True' indicates this expression can bind parameters 'False' indicates this expression cannot bind parameters Defaults to 'null' to indicate specific no preference | |
| field | back to summary |
|---|---|
| protected DatabaseField field The parameter field or name. | |
| isProperty | back to summary |
|---|---|
| protected boolean isProperty | |
| localBase | back to summary |
|---|---|
| protected Expression localBase The opposite side of the relation, this is used for conversion of the parameter using the others mapping. | |
| type | back to summary |
|---|---|
| pack-priv Object type The inferred type of the parameter. Please note that the type might not be always initialized to correct value. It might be null if not initialized correctly. | |
| ParameterExpression | back to summary |
|---|---|
| public ParameterExpression() | |
| ParameterExpression | back to summary |
|---|---|
| public ParameterExpression(String fieldName) | |
| ParameterExpression | back to summary |
|---|---|
| public ParameterExpression(DatabaseField field) | |
| ParameterExpression | back to summary |
|---|---|
| public ParameterExpression(String fieldName, Expression localbaseExpression, Object type) | |
| ParameterExpression | back to summary |
|---|---|
| public ParameterExpression(DatabaseField field, Expression localbaseExpression) | |
| basicDescription | back to summary |
|---|---|
| public String basicDescription() Return description. Used for toString. | |
| canBind | back to summary |
|---|---|
| public Boolean canBind() INTERNAL: true indicates this expression can bind parameters false indicates this expression cannot bind parameters Defaults to null to indicate no specific preference | |
| 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.
| |
| get | back to summary |
|---|---|
| public Expression get(String attributeOrQueryKey) Overrides org. This allows for nesting of parameterized expression. This is used for parameterizing object comparisons.
| |
| getBuilder | back to summary |
|---|---|
| public ExpressionBuilder getBuilder() Overrides 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)
| |
| getField | back to summary |
|---|---|
| public DatabaseField getField() | |
| getField | back to summary |
|---|---|
| public Expression getField(DatabaseField field) Overrides org. This allows for nesting of parametrized expression. This is used for parameterizing object comparisons.
| |
| getLocalBase | back to summary |
|---|---|
| public Expression getLocalBase() The opposite side of the relation, this is used for conversion of the parameter using the others mapping. | |
| getType | back to summary |
|---|---|
| public Object getType() The inferred type of this parameter. Please note that the type might not be always initialized to correct value. It might be null if not initialized correctly | |
| getValue | back to summary |
|---|---|
| public Object getValue(AbstractRecord translationRow, AbstractSession session) Extract the value from the row. This may require recursion if it is a nested parameter. | |
| getValue | back to summary |
|---|---|
| public Object getValue(AbstractRecord translationRow, DatabaseQuery query, AbstractSession session) Extract the value from the row. This may require recursion if it is a nested parameter. | |
| isParameterExpression | back to summary |
|---|---|
| public boolean isParameterExpression() Overrides org. Doc from org. INTERNAL:
| |
| isProperty | back to summary |
|---|---|
| public boolean isProperty() INTERNAL: Return true if this parameter expression maps to a property. | |
| isValueExpression | back to summary |
|---|---|
| public boolean isValueExpression() Overrides org. INTERNAL:
| |
| postCopyIn | back to summary |
|---|---|
| protected void postCopyIn(Map<K, V> alreadyDone) Overrides org. INTERNAL: Used for cloning.
| |
| printJava | back to summary |
|---|---|
| public void printJava(ExpressionJavaPrinter printer) Overrides org. INTERNAL: Print java for project class generation
| |
| 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) Overrides 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.
| |
| setCanBind | back to summary |
|---|---|
| public void setCanBind(Boolean canBind) INTERNAL: Set to true if this expression can bind parameters Set to false if this expression cannot bind parameters Set to null to indicate no specific preference | |
| setField | back to summary |
|---|---|
| public void setField(DatabaseField field) INTERNAL: Used to set the internal field value. | |
| setIsProperty | back to summary |
|---|---|
| public void setIsProperty(boolean isProperty) INTERNAL: Set to true if this parameter expression maps to a property value. | |
| setLocalBase | back to summary |
|---|---|
| public void setLocalBase(Expression localBase) Overrides org. The opposite side of the relation, this is used for conversion of the parameter using the others mapping.
| |
| setType | back to summary |
|---|---|
| public void setType(Object type) The inferred type of this parameter. Please note that the type might not be always initialized to correct value. It might be null if not initialized correctly | |
| twistedForBaseAndContext | back to summary |
|---|---|
| public Expression twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase) Overrides org. INTERNAL: Rebuild 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).
| |
| validateParameterValueAgainstMapping | back to summary |
|---|---|
| protected void validateParameterValueAgainstMapping(Object value, boolean useBaseExpression) INTERNAL Validate the passed parameter against the local base mapping. Throw a QueryException if the parameter is of an incorrect class for object comparison. Added for Bug 245268 | |
| 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 parameter into the printer. "Normal" ReadQuery never has ParameterExpression in it's select clause hence for a "normal" ReadQuery this method is never called. The reason this method was added is that UpdateAllQuery (in case temporary storage is required) creates a "helper" ReportQuery with ReportItem corresponding to each update expression - and update expression may be a ParameterExpression. The call created by "helper" ReportQuery is never executed - it's used during construction of insert call into temporary storage.
| |
| writeSubexpressionsTo | back to summary |
|---|---|
| public void writeSubexpressionsTo(BufferedWriter writer, int indent) throws IOException Overrides org. Print the base for debuggin purposes.
| |