Top Description Constructors Methods
org.eclipse.persistence.internal.jpa.parsing

public Class MinusNode

extends BinaryOperatorNode
implements AliasableNode
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.jpa.parsing.AliasableNode
Imports
org.eclipse.persistence.expressions.*, org.eclipse.persistence.queries.ObjectLevelReadQuery, .ReportQuery

INTERNAL

Purpose: Represent a '-' in EJBQL

Responsibilities:

Author
Jon Driscoll and Joel Lucuik
Since
July 2003

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.applyToQuery.

INTERNAL Apply this node to the passed query
public Expression
public boolean
public boolean
isMinusNode()

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.isMinusNode.

INTERNAL Is this node a Minus node
public void
validate(ParseTreeContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode.validate.

INTERNAL Validate node and calculates its type.

Constructor Detail

MinusNodeback to summary
public MinusNode()

Method Detail

applyToQueryback to summary
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.applyToQuery.

INTERNAL Apply this node to the passed query

Annotations
@Override
generateExpressionback to summary
public Expression generateExpression(GenerationContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.generateExpression.

INTERNAL Generate the expression. The steps are: 1. Generate the expression for the left node 2. Add the .subtract to the where clause returned from step 1 3. Generate the expression for the right side and use it as the parameter for the .subtract() 4. Return the completed where clause to the caller

Annotations
@Override
isAliasableNodeback to summary
public boolean isAliasableNode()

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.isAliasableNode.

Annotations
@Override
isMinusNodeback to summary
public boolean isMinusNode()

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.isMinusNode.

Doc from org.eclipse.persistence.internal.jpa.parsing.Node.isMinusNode.

INTERNAL Is this node a Minus node

Annotations
@Override
validateback to summary
public void validate(ParseTreeContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode.validate.

INTERNAL Validate node and calculates its type.

Annotations
@Override