Package | Description |
---|---|
oracle.toplink.essentials.internal.parsing |
Modifier and Type | Class and Description |
---|---|
class |
SelectGenerationContext
INTERNAL:
An extension of GenerationContext the provides SELECT specfic behavior.
|
Modifier and Type | Method and Description |
---|---|
GenerationContext |
ParseTree.buildContext(DatabaseQuery query,
AbstractSession sessionForContext)
INTERNAL
Build the context to be used when generating the expression from the parse tree
|
GenerationContext |
EJBQLParseTree.buildContext(ReadQuery readQuery,
AbstractSession session)
INTERNAL
Build the context to be used when generating the expression from the parse tree
|
GenerationContext |
ParseTree.buildContextForReadQuery(AbstractSession sessionForContext)
INTERNAL
Build the context to be used when generating the expression from the parse tree
|
GenerationContext |
SelectGenerationContext.getOuterContext() |
GenerationContext |
EJBQLParseTree.populateSubquery(ObjectLevelReadQuery readQuery,
GenerationContext outer)
Add all of the relevant query settings from an EJBQLParseTree to the given
database query.
|
Modifier and Type | Method and Description |
---|---|
void |
ParseTree.addGroupingToQuery(ObjectLevelReadQuery theQuery,
GenerationContext generationContext)
INTERNAL
Add the grouping to the passed query
|
void |
GroupByNode.addGroupingToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Add the grouping expressions to the passed query
|
void |
HavingNode.addHavingToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Add the having expression to the passed query
|
void |
ParseTree.addHavingToQuery(ObjectLevelReadQuery theQuery,
GenerationContext generationContext)
INTERNAL
Add the having to the passed query
|
void |
ParseTree.addNonFetchJoinAttributes(ObjectLevelReadQuery theQuery,
GenerationContext generationContext)
INTERNAL
|
void |
OrderByNode.addOrderingToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Add the ordering expressions to the passed query
|
void |
ParseTree.addOrderingToQuery(ObjectLevelReadQuery theQuery,
GenerationContext generationContext)
INTERNAL
Add the ordering to the passed query
|
Expression |
AttributeNode.addToExpression(Expression parentExpression,
GenerationContext context) |
Expression |
SortDirectionNode.addToExpression(Expression parentExpression,
GenerationContext context)
INTERNAL
Return the parent expression unmodified
|
Expression |
Node.addToExpression(Expression parentExpression,
GenerationContext context)
INTERNAL
Add my expression semantics to the parentExpression.
|
void |
SetNode.addUpdatesToQuery(UpdateAllQuery theQuery,
GenerationContext context)
Iterate through the updates in this query and build expressions for them.
|
void |
ParseTree.addUpdatesToQuery(UpdateAllQuery theQuery,
GenerationContext generationContext)
INTERNAL
Add the updates to the passed query
|
void |
ParseTree.adjustReferenceClassForQuery(DatabaseQuery theQuery,
GenerationContext generationContext)
INTERNAL
Adjust the reference class of the passed query if necessary
Need to test this for Employee, employee.getAddress(), report query
|
void |
ParseTree.applyQueryNodeToQuery(DatabaseQuery theQuery,
GenerationContext generationContext)
INTERNAL
Apply the select or update to the passed query.
|
void |
ModifyNode.applyToQuery(DatabaseQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query.
|
void |
SelectNode.applyToQuery(DatabaseQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
abstract void |
QueryNode.applyToQuery(DatabaseQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
LiteralNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
DateFunctionNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
DotNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
ConstructorNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
MaxNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
VariableNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext generationContext)
INTERNAL
Apply this node to the passed query
|
void |
CountNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
SumNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
Node.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
AvgNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
void |
MinNode.applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
protected Class |
SumNode.calculateReturnType(GenerationContext context)
INTERNAL
This method calculates the return type of the SUM operation.
|
Class |
ParseTreeContext.classForSchemaName(String schemaName,
GenerationContext context)
INTERNAL
Answer the class associated with the provided schema name
|
boolean |
DotNode.endsWithCollectionField(GenerationContext context)
INTERNAL
():
Answer true if the node has a left and right, and the right represents
a collection mapping.
|
boolean |
DotNode.endsWithDirectToField(GenerationContext context)
INTERNAL
():
Answer true if the SELECTed node has a left and right, and the right represents
a direct-to-field mapping.
|
Expression |
VariableNode.generateBaseBuilderExpression(GenerationContext context) |
Expression |
ParseTree.generateExpression(DatabaseQuery readQuery,
GenerationContext generationContext)
INTERNAL
Build a context for the expression generation
|
Expression |
LikeNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression for this node.
|
Expression |
ConcatNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
AllNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
NullComparisonNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression for this node.
|
Expression |
EqualsNode.generateExpression(GenerationContext context)
Resolve the expression.
|
Expression |
InNode.generateExpression(GenerationContext context)
INTERNAL
Return the TopLink expression for this node
|
Expression |
ModifyNode.generateExpression(GenerationContext context)
INTERNAL
|
Expression |
SubqueryNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
OrderByItemNode.generateExpression(GenerationContext context) |
Expression |
AggregateNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression generated using the left node
|
Expression |
AnyNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
WhereNode.generateExpression(GenerationContext context)
INTERNAL
|
Expression |
LiteralNode.generateExpression(GenerationContext context)
INTERNAL
Generate the a new TopLink ConstantExpression for this node.
|
Expression |
MultiplyNode.generateExpression(GenerationContext context)
INTERNAL
Generate the expression.
|
Expression |
LowerNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
DateFunctionNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
SomeNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
SqrtNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
NotEqualsNode.generateExpression(GenerationContext context)
Resolve the expression.
|
Expression |
DotNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression by getting the required variables using the
left and right nodes
"emp.address.city" = builder.get("address").get("city")
|
Expression |
LengthNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
EscapeNode.generateExpression(GenerationContext context) |
Expression |
TrimNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
ModNode.generateExpression(GenerationContext context) |
Expression |
MinusNode.generateExpression(GenerationContext context)
INTERNAL
Generate the expression.
|
Expression |
NotNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression by calling generateExpression on the right node and adding .not()
to the returned expression
|
Expression |
LessThanEqualToNode.generateExpression(GenerationContext context)
INTERNAL
Resolve the expression.
|
Expression |
PlusNode.generateExpression(GenerationContext context)
INTERNAL
Generate the expression.
|
Expression |
SelectNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression generated using the left node
|
abstract Expression |
QueryNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression generated using the left node
|
Expression |
SizeNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
BetweenNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression by 'BETWEEN' and 'AND'ing the expressions from the left,
rightForBetween and rightForAnd nodes
|
Expression |
ParameterNode.generateExpression(GenerationContext context) |
Expression |
AbsNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
GreaterThanEqualToNode.generateExpression(GenerationContext context)
INTERNAL
Resolve the expression.
|
Expression |
GreaterThanNode.generateExpression(GenerationContext context)
INTERNAL
Resolve the expression.
|
Expression |
VariableNode.generateExpression(GenerationContext generationContext) |
Expression |
SubstringNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
ExistsNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
AndNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression by 'AND'ing the expressions from the left and right nodes
|
Expression |
UpperNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
DivideNode.generateExpression(GenerationContext context)
INTERNAL
Generate the expression.
|
Expression |
LessThanNode.generateExpression(GenerationContext context)
INTERNAL
Resolve the expression.
|
Expression |
EmptyCollectionComparisonNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression for this node.
|
Expression |
Node.generateExpression(GenerationContext context)
INTERNAL
Generate an expression for the node.
|
Expression |
UnaryMinus.generateExpression(GenerationContext context)
INTERNAL
Generate the expression.
|
Expression |
OrNode.generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression by 'OR'ing the expressions from the left and right nodes
|
Expression |
MemberOfNode.generateExpression(GenerationContext context) |
Expression |
LocateNode.generateExpression(GenerationContext context)
INTERNAL
Generate the TopLink expression for this node
|
Expression |
VariableNode.generateExpressionForAlias(GenerationContext context) |
protected Expression |
SetNode.getExpressionForNode(Node node,
Class referenceClass,
GenerationContext context)
Create an expression to represent one of the nodes on a SetToNode.
|
Node |
VariableNode.getNodeForAlias(GenerationContext context) |
Class |
ParseTree.getReferenceClass(DatabaseQuery query,
GenerationContext generationContext)
getReferenceClass(): Answer the class which will be the reference class for the query.
|
Class |
SelectNode.getReferenceClass(GenerationContext context)
Compute the Reference class for this query
|
Class |
QueryNode.getReferenceClass(GenerationContext genContext)
Compute the Reference class for this query
|
ReportQuery |
SubqueryNode.getReportQuery(GenerationContext context) |
Class |
DotNode.getTypeOfDirectToField(GenerationContext context)
INTERNAL
Returns the attribute type if the right represents a direct-to-field mapping.
|
String |
ParseTreeContext.getVariableNameForClass(Class theClass,
GenerationContext context)
INTERNAL
getVariableNameForClass():
Answer the name mapped to the specified class.
|
boolean |
SelectNode.hasOneToOneSelected(GenerationContext context)
INTERNAL
|
void |
ParseTree.initBaseExpression(ModifyAllQuery theQuery,
GenerationContext generationContext)
INTERNAL
Initialize the base expression in the generation context.
|
void |
ParseTree.initBaseExpression(ObjectLevelReadQuery theQuery,
GenerationContext generationContext)
INTERNAL
Initialize the base expression in the generation context.
|
boolean |
VariableNode.isAlias(GenerationContext context)
isAlias: Answer true if this variable represents an alias in the FROM clause.
|
boolean |
SelectNode.isVariableInINClauseSelected(GenerationContext context)
INTERNAL
Answer true if a variable in the IN clause is SELECTed
|
boolean |
SelectNode.nodeRefersToObject(Node node,
GenerationContext context)
INTERNAL
Answer true if this node refers to an object described later in the EJBQL
True: SELECT p FROM Project p
False: SELECT p.id FROM Project p
|
GenerationContext |
EJBQLParseTree.populateSubquery(ObjectLevelReadQuery readQuery,
GenerationContext outer)
Add all of the relevant query settings from an EJBQLParseTree to the given
database query.
|
Class |
ModifyNode.resolveClass(GenerationContext context)
resolveClass: Answer the class which corresponds to my variableName.
|
Class |
AggregateNode.resolveClass(GenerationContext context)
resolveClass: Answer the class associated with my left node.
|
Class |
DotNode.resolveClass(GenerationContext context)
resolveClass: Answer the class which results from traversing the mappings for the receiver's nodes
|
Class |
SelectNode.resolveClass(GenerationContext context)
resolveClass: Answer the class associated with my left node.
|
abstract Class |
QueryNode.resolveClass(GenerationContext context)
Return the class represented in this node.
|
Class |
VariableNode.resolveClass(GenerationContext generationContext)
resolveClass: Answer the class which corresponds to my variableName.
|
Class |
Node.resolveClass(GenerationContext context)
resolveClass: Answer the class associated with the content of this node.
|
Class |
AttributeNode.resolveClass(GenerationContext context,
Class ownerClass)
resolveClass: Answer the class for the mapping associated with the my variableName in the ownerClass.
|
Class |
Node.resolveClass(GenerationContext context,
Class ownerClass)
resolveClass: Answer the class associated with the content of this node.
|
DatabaseMapping |
DotNode.resolveMapping(GenerationContext context)
INTERNAL
Answer the mapping resulting from traversing the receiver's nodes
|
DatabaseMapping |
Node.resolveMapping(GenerationContext context)
resolveMapping: Answer the mapping associated with the contained nodes.
|
DatabaseMapping |
AttributeNode.resolveMapping(GenerationContext context,
Class ownerClass)
resolveMapping: Answer the mapping which corresponds to my variableName.
|
DatabaseMapping |
Node.resolveMapping(GenerationContext context,
Class ownerClass)
resolveMapping: Answer the mapping associated with the contained nodes.
|
void |
ParseTree.setSelectionCriteriaForQuery(DatabaseQuery theQuery,
GenerationContext generationContext) |
void |
ParseTree.verifySelect(DatabaseQuery theQuery,
GenerationContext generationContext)
INTERNAL
Verify that the alias in the SELECT is valid.
|
void |
SelectNode.verifySelectedAlias(GenerationContext context)
Verify that the selected alias is a valid alias.
|
Constructor and Description |
---|
SelectGenerationContext(GenerationContext outer,
ParseTree newParseTree)
Constructor used to create the context for a subquery.
|
Copyright © 2023. All rights reserved.