Class ModifyNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.MajorNode
-
- org.eclipse.persistence.internal.jpa.parsing.QueryNode
-
- org.eclipse.persistence.internal.jpa.parsing.ModifyNode
-
- Direct Known Subclasses:
DeleteNode
,UpdateNode
public abstract class ModifyNode extends QueryNode
INTERNAL: ModifyNode is the superclass for UpdateNode and DeleteNode
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description ModifyNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToQuery(DatabaseQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed query.Expression
generateExpression(GenerationContext context)
INTERNALString
getAbstractSchemaIdentifier()
INTERNALString
getAbstractSchemaName()
INTERNALString
getCanonicalAbstractSchemaIdentifier()
INTERNAL: Returns the canonical name of abstract schema identifier.Class
resolveClass(GenerationContext context)
resolveClass: Answer the class which corresponds to my variableName.void
setAbstractSchemaIdentifier(String identifierName)
INTERNALvoid
setAbstractSchemaName(String abstractSchemaName)
INTERNALvoid
validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.QueryNode
createDatabaseQuery, getParseTree, getReferenceClass, isDeleteNode, isSelectNode, isUpdateNode, setParseTree
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.MajorNode
getContext, setContext
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
-
-
-
Method Detail
-
applyToQuery
public void applyToQuery(DatabaseQuery theQuery, GenerationContext context)
INTERNAL Apply this node to the passed query. This node does not change the query.- Specified by:
applyToQuery
in classQueryNode
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL- Specified by:
generateExpression
in classQueryNode
-
getAbstractSchemaName
public String getAbstractSchemaName()
INTERNAL
-
setAbstractSchemaName
public void setAbstractSchemaName(String abstractSchemaName)
INTERNAL
-
getAbstractSchemaIdentifier
public String getAbstractSchemaIdentifier()
INTERNAL
-
setAbstractSchemaIdentifier
public void setAbstractSchemaIdentifier(String identifierName)
INTERNAL
-
getCanonicalAbstractSchemaIdentifier
public String getCanonicalAbstractSchemaIdentifier()
INTERNAL: Returns the canonical name of abstract schema identifier. If the identifier is not specified(unqualified attribute scenario), the canonical name of abstract schema is returned.
-
resolveClass
public Class resolveClass(GenerationContext context)
resolveClass: Answer the class which corresponds to my variableName. This is the class for an alias, where the variableName is registered to an alias.- Specified by:
resolveClass
in classQueryNode
-
-