public class ParameterExpression extends BaseExpression
shouldUseUpperCaseForIgnoreCase| Constructor and Description |
|---|
ParameterExpression() |
ParameterExpression(DatabaseField field) |
ParameterExpression(DatabaseField field,
Expression localbaseExpression) |
ParameterExpression(java.lang.String fieldName) |
ParameterExpression(java.lang.String fieldName,
Expression localbaseExpression,
java.lang.Object type) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
basicDescription()
Return description.
|
int |
computeHashCode()
INTERNAL:
Compute a consistent hash-code for the expression.
|
java.lang.String |
descriptionOfNodeType()
INTERNAL:
Used for debug printing.
|
boolean |
equals(java.lang.Object object)
INTERNAL:
Return if the expression is equal to the other.
|
Expression |
get(java.lang.String attributeOrQueryKey)
This allows for nesting of parameterized expression.
|
ExpressionBuilder |
getBuilder()
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)
|
DatabaseField |
getField() |
Expression |
getField(DatabaseField field)
This allows for nesting of parametrized expression.
|
Expression |
getLocalBase()
The opposite side of the relation, this is used for conversion of the parameter using the others mapping.
|
java.lang.Object |
getType()
The inferred type of this parameter.
|
java.lang.Object |
getValue(AbstractRecord translationRow,
AbstractSession session)
Extract the value from the row.
|
java.lang.Object |
getValue(AbstractRecord translationRow,
DatabaseQuery query,
AbstractSession session)
Extract the value from the row.
|
boolean |
isParameterExpression()
INTERNAL:
|
boolean |
isProperty()
INTERNAL:
Return true if this parameter expression maps to a property.
|
boolean |
isValueExpression()
INTERNAL:
|
void |
printJava(ExpressionJavaPrinter printer)
INTERNAL:
Print java for project class generation
|
void |
printSQL(ExpressionSQLPrinter printer)
INTERNAL:
Print SQL onto the stream, using the ExpressionPrinter for context
|
Expression |
rebuildOn(Expression newBase)
INTERNAL:
This expression is built on a different base than the one we want.
|
void |
resetPlaceHolderBuilder(ExpressionBuilder queryBuilder)
INTERNAL:
Search the tree for any expressions (like SubSelectExpressions) that have been
built using a builder that is not attached to the query.
|
void |
setField(DatabaseField field)
INTERNAL:
Used to set the internal field value.
|
void |
setIsProperty(boolean isProperty)
INTERNAL:
Set to true if this parameter expression maps to a property value.
|
void |
setLocalBase(Expression localBase)
The opposite side of the relation, this is used for conversion of the parameter using the others mapping.
|
void |
setType(java.lang.Object type)
The inferred type of this parameter.
|
Expression |
twistedForBaseAndContext(Expression newBase,
Expression context,
Expression oldBase)
INTERNAL:
Rebuild against the base, with the values of parameters supplied by the context
expression.
|
java.lang.Object |
valueFromObject(java.lang.Object object,
AbstractSession session,
AbstractRecord translationRow,
int valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
void |
writeDescriptionOn(java.io.BufferedWriter writer)
INTERNAL:
Used to print a debug form of the expression tree.
|
void |
writeFields(ExpressionSQLPrinter printer,
java.util.Vector newFields,
SQLSelectStatement statement)
INTERNAL:
Append the parameter into the printer.
|
void |
writeSubexpressionsTo(java.io.BufferedWriter writer,
int indent)
Print the base for debuggin purposes.
|
getBaseExpression, setBaseExpression, shallowCloneaddDate, addDate, addMonths, addMonths, alias, aliasForTable, all, all, all, all, all, all, all, all, all, all, all, all, all, allOf, and, any, any, any, any, any, any, any, any, any, any, any, any, any, anyOf, anyOf, anyOfAllowingNone, anyOfAllowingNone, as, as, ascending, asciiValue, asOf, assignTableAliasesStartingAt, average, between, between, between, between, between, between, between, between, between, caseConditionStatement, caseConditionStatement, caseStatement, caseStatement, cast, clone, cloneUsing, coalesce, coalesce, concat, containsAllKeyWords, containsAnyKeyWords, containsSubstring, containsSubstring, containsSubstringIgnoringCase, containsSubstringIgnoringCase, convertToUseOuterJoin, copiedVersionFrom, count, create, create, createWithBaseLast, currentDate, currentDateDate, currentTime, currentTimeStamp, dateDifference, dateDifference, dateName, datePart, dateToString, decode, descending, difference, distinct, doesConform, doesConform, equal, equal, equal, equal, equal, equal, equal, equal, equal, equal, equalOuterJoin, equalOuterJoin, equalsIgnoreCase, equalsIgnoreCase, except, except, exceptAll, exceptAll, exists, existsNode, extract, extractFields, extractPrimaryKeyValues, extractValue, extractValues, extractXml, from, fromConstant, fromLiteral, get, getAlias, getAllowingNull, getAsOfClause, getAsOfClauseRecursively, getClonedField, getField, getFields, getFieldValue, getFunction, getFunction, getFunction, getFunction, getFunction, getFunctionWithArguments, getFunctionWithArguments, getLeafDescriptor, getLeafMapping, getName, getNumberVal, getOperator, getOperator, getOwnedTables, getParameter, getParameter, getParameter, getProperty, getSelectionFields, getSelectionFields, getSession, getStringVal, getTable, getTable, getTableAliases, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, hasAsOfClause, hasBeenAliased, hashCode, hexToRaw, ifNull, in, in, in, in, in, in, in, in, in, in, in, in, index, indexOf, intersect, intersect, intersectAll, intersectAll, isClassTypeExpression, isCompoundExpression, isConstantExpression, isDataExpression, isEmpty, isExpressionBuilder, isFieldExpression, isFragment, isFunctionExpression, isLiteralExpression, isLogicalExpression, isMapEntryExpression, isNull, isObjectExpression, isQueryKeyExpression, isRelationExpression, isSubSelectExpression, isTableExpression, isTreatExpression, iterateOn, join, lastDay, leftJoin, leftPad, leftPad, leftTrim, leftTrim, length, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, like, like, like, like, likeIgnoreCase, likeIgnoreCase, literal, locate, locate, locate, mapEntry, mapKey, maximum, minimum, monthsBetween, newTime, nextDay, noneOf, normalize, not, notBetween, notBetween, notBetween, notBetween, notBetween, notBetween, notBetween, notBetween, notBetween, notEmpty, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notExists, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notLike, notNull, nullIf, nullsFirst, nullsLast, operator, or, performOperator, postfixSQL, prefixSQL, ref, regexp, regexp, replace, replicate, replicate, reverse, right, right, rightPad, rightPad, rightTrim, rightTrim, roundDate, selectIfOrderedBy, setSelectIfOrderedBy, size, size, some, some, some, some, some, some, some, some, some, some, some, some, some, sql, standardDeviation, subQuery, substring, substring, substring, substring, sum, toChar, toChar, toCharacter, toDate, toLowerCase, toNumber, toString, toString, toUpperCase, toUppercaseCasedWords, translate, treat, trim, trim, truncateDate, twist, type, union, union, unionAll, unionAll, validateNode, value, value, value, value, value, value, value, value, value, value, valueFromObject, variancepublic ParameterExpression()
public ParameterExpression(java.lang.String fieldName)
public ParameterExpression(DatabaseField field)
public ParameterExpression(java.lang.String fieldName,
Expression localbaseExpression,
java.lang.Object type)
public ParameterExpression(DatabaseField field, Expression localbaseExpression)
public boolean equals(java.lang.Object object)
equals in class Expressionpublic int computeHashCode()
computeHashCode in class Expressionpublic java.lang.String basicDescription()
public java.lang.String descriptionOfNodeType()
descriptionOfNodeType in class Expressionpublic Expression get(java.lang.String attributeOrQueryKey)
get in class Expressionpublic ExpressionBuilder getBuilder()
getBuilder in class BaseExpressionpublic DatabaseField getField()
public void setField(DatabaseField field)
public Expression getField(DatabaseField field)
getField in class Expressionpublic Expression getLocalBase()
public java.lang.Object getType()
public void setType(java.lang.Object type)
public java.lang.Object getValue(AbstractRecord translationRow, AbstractSession session)
public java.lang.Object getValue(AbstractRecord translationRow, DatabaseQuery query, AbstractSession session)
public boolean isParameterExpression()
ExpressionisParameterExpression in class Expressionpublic boolean isValueExpression()
isValueExpression in class Expressionpublic boolean isProperty()
public void printSQL(ExpressionSQLPrinter printer)
printSQL in class Expressionpublic void printJava(ExpressionJavaPrinter printer)
printJava in class Expressionpublic Expression rebuildOn(Expression newBase)
rebuildOn in class ExpressionExpression.cloneUsing(Expression newBase)public void resetPlaceHolderBuilder(ExpressionBuilder queryBuilder)
resetPlaceHolderBuilder in class BaseExpressionpublic void setIsProperty(boolean isProperty)
public void setLocalBase(Expression localBase)
setLocalBase in class Expressionpublic Expression twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase)
twistedForBaseAndContext in class Expressionpublic java.lang.Object valueFromObject(java.lang.Object object,
AbstractSession session,
AbstractRecord translationRow,
int valueHolderPolicy,
boolean isObjectUnregistered)
valueFromObject in class ExpressionisObjectUnregistered - true if object possibly not a clone, but is being
conformed against the unit of work cache.public void writeDescriptionOn(java.io.BufferedWriter writer)
throws java.io.IOException
writeDescriptionOn in class Expressionjava.io.IOExceptionpublic void writeFields(ExpressionSQLPrinter printer, java.util.Vector newFields, SQLSelectStatement statement)
writeFields in class Expressionpublic void writeSubexpressionsTo(java.io.BufferedWriter writer,
int indent)
throws java.io.IOException
writeSubexpressionsTo in class Expressionjava.io.IOExceptionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference