public class FieldExpression extends DataExpression
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseField |
aliasedField |
protected DatabaseField |
field |
baseExpression, derivedFields, derivedTables, hasBeenNormalized, tableAliasescurrentAlias, lastTable, selectIfOrderedBy| Constructor and Description |
|---|
FieldExpression()
FieldExpression constructor comment.
|
FieldExpression(DatabaseField newField)
FieldExpression constructor comment.
|
FieldExpression(DatabaseField newField,
Expression myBase)
FieldExpression constructor comment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAliases()
INTERNAL:
|
String |
descriptionOfNodeType()
INTERNAL:
Used for debug printing.
|
DatabaseField |
getAliasedField()
INTERNAL:
Return the field appropriately aliased
|
DatabaseField |
getClonedField()
INTERNAL:
If there are any fields associated with this expression, return them
|
Vector |
getClonedFields()
INTERNAL:
If there are any fields associated with this expression, return them
|
DatabaseField |
getField()
INTERNAL:
|
Vector |
getFields()
INTERNAL:
Return all the fields
|
boolean |
isAttribute()
INTERNAL:
|
boolean |
isFieldExpression()
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 |
setField(DatabaseField newField)
INTERNAL:
Set the field in the mapping.
|
Expression |
twistedForBaseAndContext(Expression newBase,
Expression context)
INTERNAL:
Rebuild myself against the base, with the values of parameters supplied by the context
expression.
|
void |
validateNode()
Do any required validation for this node.
|
Object |
valueFromObject(Object object,
AbstractSession session,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean isObjectUnregistered)
INTERNAL:
Return the value for in memory comparison.
|
void |
writeDescriptionOn(BufferedWriter writer)
INTERNAL:
Used to print a debug form of the expression tree.
|
void |
writeFields(ExpressionSQLPrinter printer,
Vector newFields,
SQLSelectStatement statement)
INTERNAL: called from SQLSelectStatement.writeFieldsFromExpression(...)
|
addDerivedField, addDerivedTable, aliasForTable, assignAlias, assignAlias, copyCollection, existingDerivedField, existingDerivedTable, getBaseExpression, getBuilder, getDescriptor, getField, getField, getMapping, getOwnedTables, getQueryKeyOrNull, getTable, getTable, getTableAliases, hasBeenAliased, hasBeenNormalized, hasDerivedFields, hasDerivedTables, isDataExpression, iterateOn, mappingCriteria, newDerivedField, newDerivedTable, normalize, postCopyIn, setBaseExpression, setHasBeenNormalized, setTableAliases, tableAliasesDescription, writeSubexpressionsToaddDate, addDate, addMonths, addMonths, 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, anyOf, anyOfAllowingNone, ascending, asciiValue, assignTableAliasesStartingAt, average, between, between, between, between, between, between, between, between, between, caseStatement, clone, cloneUsing, concat, containsAllKeyWords, containsAnyKeyWords, containsSubstring, containsSubstring, containsSubstringIgnoringCase, containsSubstringIgnoringCase, convertNodeToUseOuterJoin, convertToUseOuterJoin, copiedVersionFrom, count, create, create, createWithBaseLast, currentDate, currentDateDate, currentTime, currentTimeStamp, dateDifference, dateDifference, dateName, datePart, dateToString, decode, descending, detectExpression, difference, distinct, doesConform, doesConform, equal, equal, equal, equal, equal, equal, equal, equal, equal, equal, equalOuterJoin, equalOuterJoin, equalsIgnoreCase, equalsIgnoreCase, exists, existsNode, extract, extractPrimaryKeyValues, extractValue, from, fromConstant, fromLiteral, get, get, getAllowingNull, getAllowingNull, getFieldValue, getFunction, getFunction, getFunction, getFunction, getFunctionWithArguments, getName, getNumberVal, getOperator, getOperator, getParameter, getParameter, getParameter, getSession, getStringVal, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, hasAsOfClause, hexToRaw, ifNull, in, in, in, in, in, in, in, in, in, in, in, in, indexOf, isCompoundExpression, isConstantExpression, isEmpty, isExpressionBuilder, isFragment, isFunctionExpression, isLiteralExpression, isLogicalExpression, isNull, isObjectExpression, isParameterExpression, isQueryKeyExpression, isRelationExpression, isTableExpression, isValueExpression, lastDay, 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, maximum, minimum, monthsBetween, newTime, nextDay, noneOf, 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, notNull, or, performOperator, postfixSQL, prefixSQL, printSQLWithoutConversion, ref, registerIn, replace, replicate, replicate, resetCache, reverse, right, right, rightPad, rightPad, rightTrim, rightTrim, roundDate, selectIfOrderedBy, setLocalBase, setSelectIfOrderedBy, shallowClone, size, some, some, some, some, some, some, some, some, some, some, some, some, standardDeviation, subQuery, substring, substring, sum, toChar, toChar, toCharacter, toDate, toLowerCase, toNumber, toString, toString, toUpperCase, toUppercaseCasedWords, translate, trim, trim, truncateDate, twist, value, value, value, value, value, value, value, value, value, value, valueFromObject, variance, writeFieldprotected DatabaseField field
protected transient DatabaseField aliasedField
public FieldExpression()
public FieldExpression(DatabaseField newField)
public FieldExpression(DatabaseField newField, Expression myBase)
public void clearAliases()
clearAliases in class DataExpressionpublic String descriptionOfNodeType()
descriptionOfNodeType in class Expressionpublic DatabaseField getAliasedField()
getAliasedField in class DataExpressionpublic DatabaseField getClonedField()
getClonedField in class Expressionpublic Vector getClonedFields()
public DatabaseField getField()
getField in class DataExpressionpublic Vector getFields()
getFields in class Expressionpublic boolean isAttribute()
isAttribute in class DataExpressionpublic boolean isFieldExpression()
ExpressionisFieldExpression in class Expressionpublic void printSQL(ExpressionSQLPrinter printer)
printSQL in class DataExpressionpublic void printJava(ExpressionJavaPrinter printer)
printJava in class Expressionpublic Expression rebuildOn(Expression newBase)
rebuildOn in class ExpressionExpression.cloneUsing(Expression newBase)public void setField(DatabaseField newField)
public Expression twistedForBaseAndContext(Expression newBase, Expression context)
twistedForBaseAndContext in class Expressionpublic void validateNode()
validateNode in class Expressionpublic Object valueFromObject(Object object, AbstractSession session, AbstractRecord translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, boolean isObjectUnregistered)
valueFromObject in class Expressionpublic void writeDescriptionOn(BufferedWriter writer) throws IOException
writeDescriptionOn in class ExpressionIOExceptionpublic void writeFields(ExpressionSQLPrinter printer, Vector newFields, SQLSelectStatement statement)
writeFields in class ExpressionCopyright © 2025. All rights reserved.