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

public Class DivideNode

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
isDivideNode()

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

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

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

INTERNAL Validate node and calculates its type.

Constructor Detail

DivideNodeback to summary
public DivideNode()

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 .divide to the where clause returned from step 1 3. Generate the expression for the right side and use it as the parameter for the .divide() 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
isDivideNodeback to summary
public boolean isDivideNode()

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

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

INTERNAL Is this node a Divide 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