| Modifier and Type | Field and Description |
|---|---|
| protected Boolean | |
| protected Expression | |
| protected ObjectExpression |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Expression | additionalTreatExpressionCriteria()
INTERNAL: Return the expression to join the main table of this node to any auxiliary tables. |
| public Map | additionalTreatExpressionCriteriaMap()
INTERNAL: Used in case outer joins should be printed in FROM clause. |
| public DatabaseTable | aliasForTable(DatabaseTable table)
Overrides org. |
| protected void | assignAlias(DatabaseTable alias, DatabaseTable table)
Overrides org. |
| public int | assignTableAliasesStartingAt(int initialValue)
Overrides org. |
| public ClassDescriptor | convertToCastDescriptor(ClassDescriptor rootDescriptor, AbstractSession session)
Overrides org. |
| public Expression | convertToUseOuterJoin()
Overrides org. |
| public String | descriptionOfNodeType()
Overrides org. |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides org. |
| public List | getAdditionalTables()
Overrides org. |
| public Expression | getAlias(Expression subSelect)
Overrides org. |
| public ClassDescriptor | |
| public Vector | getFields()
Overrides org. |
| public Object | getFieldValue(Object objectValue, AbstractSession session)
Overrides org. |
| public ClassDescriptor | getLeafDescriptor(DatabaseQuery query, ClassDescriptor rootDescriptor, AbstractSession session)
Overrides org. |
| public DatabaseMapping | getLeafMapping(DatabaseQuery query, ClassDescriptor rootDescriptor, AbstractSession session)
Overrides org. |
| public List | getOwnedSubTables()
INTERNAL: much like getOwnedTables(), this gets the tables represented from the descriptor. |
| public List | getOwnedTables()
Overrides org. |
| public DatabaseTable | getReferenceTable()
Overrides org. |
| public DatabaseTable | Returns: DatabaseTableOverrides org. |
| public DatabaseTable | getSourceTable()
Overrides org. |
| public TableAliasLookup | getTableAliases()
Overrides org. |
| public Expression | Returns: ExpressionINTERNAL: this returns a single expression to represent the join from the main table to all child descriptor tables Only if outer joins should be printed in the where clause |
| public Expression | |
| public boolean | hasAsOfClause()
Overrides org. this is to be queried as of a past time.
|
| public boolean | |
| public boolean | isTreatExpression()
Overrides org. |
| public Expression | |
| public Expression | normalize(ExpressionNormalizer normalizer, Expression base, List<Expression> foreignKeyJoinPointer)
Overrides org. |
| protected void | postCopyIn(Map<K, V> alreadyDone)
Overrides org. |
| public void | printJava(ExpressionJavaPrinter printer)
Overrides org. |
| public void | printSQL(ExpressionSQLPrinter printer)
Overrides org. |
| public Expression | rebuildOn(Expression newBase)
Overrides org. |
| public boolean | selectIfOrderedBy()
Overrides org. |
| public Expression | twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase)
Overrides org. |
| public void | validateNode()
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 Object | valueFromObject(Object object, AbstractSession session, AbstractRecord translationRow, int valueHolderPolicy)
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. |
| isDowncast | back to summary |
|---|---|
| protected Boolean isDowncast | |
| typeExpression | back to summary |
|---|---|
| protected Expression typeExpression | |
| typeExpressionBase | back to summary |
|---|---|
| protected ObjectExpression typeExpressionBase | |
| TreatAsExpression | back to summary |
|---|---|
| public TreatAsExpression(Class<?> castClass, ObjectExpression baseExpression) | |
| additionalTreatExpressionCriteria | back to summary |
|---|---|
| public Expression additionalTreatExpressionCriteria() INTERNAL: Return the expression to join the main table of this node to any auxiliary tables. | |
| additionalTreatExpressionCriteriaMap | back to summary |
|---|---|
| public Map INTERNAL: Used in case outer joins should be printed in FROM clause. Each of the additional tables mapped to expressions that joins it. | |
| aliasForTable | back to summary |
|---|---|
| public DatabaseTable aliasForTable(DatabaseTable table) Overrides org. Doc from org. INTERNAL: Find the alias for a given table
| |
| assignAlias | back to summary |
|---|---|
| protected void assignAlias(DatabaseTable alias, DatabaseTable table) Overrides org. INTERNAL: Alias a particular table within this node
| |
| assignTableAliasesStartingAt | back to summary |
|---|---|
| public int assignTableAliasesStartingAt(int initialValue) Overrides org. INTERNAL: Assign aliases to any tables which I own. Start with t(initialValue), and return the new value of the counter , i.e. if initialValue is one and I have tables ADDRESS and EMPLOYEE I will assign them t1 and t2 respectively, and return 3.
| |
| convertToCastDescriptor | back to summary |
|---|---|
| public ClassDescriptor convertToCastDescriptor(ClassDescriptor rootDescriptor, AbstractSession session) Overrides org. INTERNAL - Return the descriptor which contains this query key, look in the inheritance hierarchy of rootDescriptor for the descriptor. Does not set the descriptor, only returns it.
| |
| convertToUseOuterJoin | back to summary |
|---|---|
| public Expression convertToUseOuterJoin() Overrides org. Doc from org. INTERNAL: Modify this expression to use outer joins wherever there are equality operations between two field nodes.
| |
| descriptionOfNodeType | back to summary |
|---|---|
| public String descriptionOfNodeType() Overrides org. Doc from org. INTERNAL: Used for debug printing.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides org. Doc from org. INTERNAL: Return if the expression is equal to the other. This is used to allow dynamic expression's SQL to be cached.
| |
| getAdditionalTables | back to summary |
|---|---|
| public List Overrides org. Doc from org. INTERNAL: Return any additional tables that belong to this expression An example of how this method is used is to return any tables that belong to the map key when this expression traverses a mapping that uses a Map
| |
| getAlias | back to summary |
|---|---|
| public Expression getAlias(Expression subSelect) Overrides org. Doc from org. ADVANCED: Return an expression representing a sub-select in the from clause. Example:
builder.getAlias(builder.subQuery(reportQuery)).get("type").equal("S");
| |
| getDescriptor | back to summary |
|---|---|
| public ClassDescriptor getDescriptor() Overrides org.
| |
| getFields | back to summary |
|---|---|
| public Vector Overrides org. Doc from org. INTERNAL: Return all the fields
| |
| getFieldValue | back to summary |
|---|---|
| public Object getFieldValue(Object objectValue, AbstractSession session) Overrides org. Doc from org. INTERNAL: Transform the object-level value into a database-level value
| |
| getLeafDescriptor | back to summary |
|---|---|
| public ClassDescriptor getLeafDescriptor(DatabaseQuery query, ClassDescriptor rootDescriptor, AbstractSession session) Overrides org. Doc from org. INTERNAL: Lookup the descriptor for this item by traversing its expression recursively.
| |
| getLeafMapping | back to summary |
|---|---|
| public DatabaseMapping getLeafMapping(DatabaseQuery query, ClassDescriptor rootDescriptor, AbstractSession session) Overrides org. Doc from org. INTERNAL: Lookup the mapping for this item by traversing its expression recursively. If an aggregate of foreign mapping is found it is traversed.
| |
| getOwnedSubTables | back to summary |
|---|---|
| public List INTERNAL: much like getOwnedTables(), this gets the tables represented from the descriptor. Difference is this only returns local tables for the child casted descriptor, and excludes tables owned by the parent descriptor | |
| getOwnedTables | back to summary |
|---|---|
| public List Overrides org. This owns (can access) the child's extra tables as well as its parent's tables so we should pull these from super (which gets them from the current descriptor)
| |
| getReferenceTable | back to summary |
|---|---|
| public DatabaseTable getReferenceTable() Overrides org. Doc from org. Calculate the reference table for based on the various QueryKeyExpression
usages (join query keys, custom defined query keys, or query keys for
mappings).
Called from
| |
| getRelationTable | back to summary |
|---|---|
| public DatabaseTable getRelationTable() Overrides org. Calculate the relation table for based on the various QueryKeyExpression
usages (join query keys, custom defined query keys, or query keys for
mappings).
Does not apply to Treat
Called from
| |
| getSourceTable | back to summary |
|---|---|
| public DatabaseTable getSourceTable() Overrides org. Doc from org. Calculate the source table for based on the various QueryKeyExpression
usages (join query keys, custom defined query keys, or query keys for
mappings).
Called from
| |
| getTableAliases | back to summary |
|---|---|
| public TableAliasLookup getTableAliases() Overrides org. Doc from org. INTERNAL: Return the aliases used. For CR#2456 must never lazily initialize as also used for Expression identity.
| |
| getTreatCriteria | back to summary |
|---|---|
| public Expression getTreatCriteria() INTERNAL: this returns a single expression to represent the join from the main table to all child descriptor tables Only if outer joins should be printed in the where clause
| |
| getTypeClause | back to summary |
|---|---|
| public Expression getTypeClause() | |
| hasAsOfClause | back to summary |
|---|---|
| public boolean hasAsOfClause() Overrides org. Doc from org. ADVANCED:
Answers true if
| |
| isDowncast | back to summary |
|---|---|
| public boolean isDowncast() INTERNAL: | |
| isTreatExpression | back to summary |
|---|---|
| public boolean isTreatExpression() Overrides org. INTERNAL:
| |
| mappingCriteria | back to summary |
|---|---|
| public Expression mappingCriteria(Expression base) Overrides org.
| |
| normalize | back to summary |
|---|---|
| public Expression normalize(ExpressionNormalizer normalizer, Expression base, List<Expression> foreignKeyJoinPointer) Overrides org. Doc from org. INTERNAL: For CR#2456 if this is part of an objExp.equal(objExp), do not need to add additional expressions to normalizer both times, and the foreign key join replaces the equal expression.
| |
| postCopyIn | back to summary |
|---|---|
| protected void postCopyIn(Map<K, V> alreadyDone) Overrides org. Doc from 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) Overrides org. Doc from org. INTERNAL: Print SQL onto the stream, using the ExpressionPrinter for context
| |
| rebuildOn | back to summary |
|---|---|
| public Expression rebuildOn(Expression newBase) Overrides 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
| |
| selectIfOrderedBy | back to summary |
|---|---|
| public boolean selectIfOrderedBy() Overrides org. Doc from org. PUBLIC: Return whether this expression should be included in the SELECT clause if it is used in an ORDER BY clause
| |
| twistedForBaseAndContext | back to summary |
|---|---|
| public Expression twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase) Overrides org. Doc from 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"
| |
| validateNode | back to summary |
|---|---|
| public void validateNode() Overrides org. Doc from org. Do any required validation for this node. Throw an exception if it's incorrect.
| |
| valueFromObject | back to summary |
|---|---|
| public Object valueFromObject(Object object, AbstractSession session, AbstractRecord translationRow, int valueHolderPolicy, boolean isObjectUnregistered) Overrides org. Doc from org. INTERNAL: Return the value for in memory comparison. This is only valid for valueable expressions.
| |
| valueFromObject | back to summary |
|---|---|
| public Object valueFromObject(Object object, AbstractSession session, AbstractRecord translationRow, int valueHolderPolicy) Overrides org. Doc from 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. Doc from 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. Doc from org. INTERNAL: called from SQLSelectStatement.writeFieldsFromExpression(...)
| |
| writeSubexpressionsTo | back to summary |
|---|---|
| public void writeSubexpressionsTo(BufferedWriter writer, int indent) throws IOException Overrides org. Doc from org. Print the base for debuggin purposes.
| |