public class NodeFactoryImpl extends Object implements NodeFactory
Purpose: Implements a node factory used by the EJBQLParser class.
Responsibilities:
NodeFactory.TrimSpecification
Constructor and Description |
---|
NodeFactoryImpl(String queryInfo)
No-arg Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
newAbs(int line,
int column,
Object arg) |
Object |
newAll(int line,
int column,
Object subquery) |
Object |
newAnd(int line,
int column,
Object left,
Object right) |
Object |
newAny(int line,
int column,
Object subquery) |
Object |
newAscOrdering(int line,
int column,
Object arg) |
Object |
newAttribute(int line,
int column,
String identifier) |
Object |
newAvg(int line,
int column,
boolean distinct,
Object arg) |
Object |
newBetween(int line,
int column,
boolean not,
Object arg,
Object lower,
Object upper) |
Object |
newBooleanLiteral(int line,
int column,
Object value) |
Object |
newCollectionMemberVariableDecl(int line,
int column,
Object path,
String variable) |
Object |
newConcat(int line,
int column,
Object left,
Object right) |
Object |
newConstructor(int line,
int column,
String className,
List args) |
Object |
newCount(int line,
int column,
boolean distinct,
Object arg) |
Object |
newCurrentDate(int line,
int column) |
Object |
newCurrentTime(int line,
int column) |
Object |
newCurrentTimestamp(int line,
int column) |
Object |
newDeleteClause(int line,
int column,
String schema,
String variable) |
Object |
newDeleteStatement(int line,
int column,
Object delete,
Object where) |
Object |
newDescOrdering(int line,
int column,
Object arg) |
Object |
newDivide(int line,
int column,
Object left,
Object right) |
Object |
newDot(int line,
int column,
Object left,
Object right) |
Object |
newDoubleLiteral(int line,
int column,
Object value) |
Object |
newEquals(int line,
int column,
Object left,
Object right) |
Object |
newEscape(int line,
int column,
Object arg) |
Object |
newExists(int line,
int column,
boolean not,
Object subquery) |
Object |
newFetchJoin(int line,
int column,
boolean outerJoin,
Object path) |
Object |
newFloatLiteral(int line,
int column,
Object value) |
Object |
newFromClause(int line,
int column,
List decls) |
Object |
newGreaterThan(int line,
int column,
Object left,
Object right) |
Object |
newGreaterThanEqual(int line,
int column,
Object left,
Object right) |
Object |
newGroupByClause(int line,
int column,
List items) |
Object |
newHavingClause(int line,
int column,
Object arg) |
Object |
newIn(int line,
int column,
boolean not,
Object expr,
List items) |
Object |
newIn(int line,
int column,
boolean not,
Object expr,
Object subquery) |
Object |
newIntegerLiteral(int line,
int column,
Object value) |
Object |
newIsEmpty(int line,
int column,
boolean not,
Object expr) |
Object |
newIsNull(int line,
int column,
boolean not,
Object expr) |
Object |
newJoinVariableDecl(int line,
int column,
boolean outerJoin,
Object path,
String variable) |
Object |
newLength(int line,
int column,
Object arg) |
Object |
newLessThan(int line,
int column,
Object left,
Object right) |
Object |
newLessThanEqual(int line,
int column,
Object left,
Object right) |
Object |
newLike(int line,
int column,
boolean not,
Object string,
Object pattern,
Object escape) |
Object |
newLocate(int line,
int column,
Object pattern,
Object arg,
Object startPos) |
Object |
newLongLiteral(int line,
int column,
Object value) |
Object |
newLower(int line,
int column,
Object arg) |
Object |
newMax(int line,
int column,
boolean distinct,
Object arg) |
Object |
newMemberOf(int line,
int column,
boolean not,
Object expr,
Object collection) |
Object |
newMin(int line,
int column,
boolean distinct,
Object arg) |
Object |
newMinus(int line,
int column,
Object left,
Object right) |
Object |
newMod(int line,
int column,
Object left,
Object right) |
Object |
newMultiply(int line,
int column,
Object left,
Object right) |
Object |
newNamedParameter(int line,
int column,
String name) |
Object |
newNot(int line,
int column,
Object arg) |
Object |
newNotEquals(int line,
int column,
Object left,
Object right) |
Object |
newNullLiteral(int line,
int column) |
Object |
newOr(int line,
int column,
Object left,
Object right) |
Object |
newOrderByClause(int line,
int column,
List items) |
Object |
newPlus(int line,
int column,
Object left,
Object right) |
Object |
newPositionalParameter(int line,
int column,
String position) |
Object |
newQualifiedAttribute(int line,
int column,
String variable,
String attribute) |
Object |
newRangeVariableDecl(int line,
int column,
String schema,
String variable) |
Object |
newSelectClause(int line,
int column,
boolean distinct,
List selectExprs) |
Object |
newSelectStatement(int line,
int column,
Object select,
Object from,
Object where,
Object groupBy,
Object having,
Object orderBy) |
Object |
newSetAssignmentClause(int line,
int column,
Object target,
Object value) |
Object |
newSetClause(int line,
int column,
List assignments) |
Object |
newSize(int line,
int column,
Object arg) |
Object |
newSome(int line,
int column,
Object subquery) |
Object |
newSqrt(int line,
int column,
Object arg) |
Object |
newStringLiteral(int line,
int column,
Object value) |
Object |
newSubquery(int line,
int column,
Object select,
Object from,
Object where,
Object groupBy,
Object having) |
Object |
newSubstring(int line,
int column,
Object string,
Object start,
Object length) |
Object |
newSum(int line,
int column,
boolean distinct,
Object arg) |
Object |
newTrim(int line,
int column,
NodeFactory.TrimSpecification trimSpec,
Object trimChar,
Object string) |
Object |
newUnaryMinus(int line,
int column,
Object arg) |
Object |
newUnaryPlus(int line,
int column,
Object arg) |
Object |
newUpdateClause(int line,
int column,
String schema,
String variable) |
Object |
newUpdateStatement(int line,
int column,
Object update,
Object set,
Object where) |
Object |
newUpper(int line,
int column,
Object arg) |
Object |
newVariableAccess(int line,
int column,
String identifier) |
Object |
newVariableDecl(int line,
int column,
Object path,
String variable) |
Object |
newWhereClause(int line,
int column,
Object condition) |
public NodeFactoryImpl(String queryInfo)
public Object newSelectStatement(int line, int column, Object select, Object from, Object where, Object groupBy, Object having, Object orderBy)
newSelectStatement
in interface NodeFactory
public Object newUpdateStatement(int line, int column, Object update, Object set, Object where)
newUpdateStatement
in interface NodeFactory
public Object newDeleteStatement(int line, int column, Object delete, Object where)
newDeleteStatement
in interface NodeFactory
public Object newSelectClause(int line, int column, boolean distinct, List selectExprs)
newSelectClause
in interface NodeFactory
public Object newFromClause(int line, int column, List decls)
newFromClause
in interface NodeFactory
public Object newWhereClause(int line, int column, Object condition)
newWhereClause
in interface NodeFactory
public Object newGroupByClause(int line, int column, List items)
newGroupByClause
in interface NodeFactory
public Object newHavingClause(int line, int column, Object arg)
newHavingClause
in interface NodeFactory
public Object newOrderByClause(int line, int column, List items)
newOrderByClause
in interface NodeFactory
public Object newUpdateClause(int line, int column, String schema, String variable)
newUpdateClause
in interface NodeFactory
public Object newDeleteClause(int line, int column, String schema, String variable)
newDeleteClause
in interface NodeFactory
public Object newRangeVariableDecl(int line, int column, String schema, String variable)
newRangeVariableDecl
in interface NodeFactory
public Object newJoinVariableDecl(int line, int column, boolean outerJoin, Object path, String variable)
newJoinVariableDecl
in interface NodeFactory
public Object newFetchJoin(int line, int column, boolean outerJoin, Object path)
newFetchJoin
in interface NodeFactory
public Object newCollectionMemberVariableDecl(int line, int column, Object path, String variable)
newCollectionMemberVariableDecl
in interface NodeFactory
public Object newVariableDecl(int line, int column, Object path, String variable)
newVariableDecl
in interface NodeFactory
public Object newDot(int line, int column, Object left, Object right)
newDot
in interface NodeFactory
public Object newVariableAccess(int line, int column, String identifier)
newVariableAccess
in interface NodeFactory
public Object newAttribute(int line, int column, String identifier)
newAttribute
in interface NodeFactory
public Object newQualifiedAttribute(int line, int column, String variable, String attribute)
newQualifiedAttribute
in interface NodeFactory
public Object newAvg(int line, int column, boolean distinct, Object arg)
newAvg
in interface NodeFactory
public Object newMax(int line, int column, boolean distinct, Object arg)
newMax
in interface NodeFactory
public Object newMin(int line, int column, boolean distinct, Object arg)
newMin
in interface NodeFactory
public Object newSum(int line, int column, boolean distinct, Object arg)
newSum
in interface NodeFactory
public Object newCount(int line, int column, boolean distinct, Object arg)
newCount
in interface NodeFactory
public Object newOr(int line, int column, Object left, Object right)
newOr
in interface NodeFactory
public Object newAnd(int line, int column, Object left, Object right)
newAnd
in interface NodeFactory
public Object newEquals(int line, int column, Object left, Object right)
newEquals
in interface NodeFactory
public Object newNotEquals(int line, int column, Object left, Object right)
newNotEquals
in interface NodeFactory
public Object newGreaterThan(int line, int column, Object left, Object right)
newGreaterThan
in interface NodeFactory
public Object newGreaterThanEqual(int line, int column, Object left, Object right)
newGreaterThanEqual
in interface NodeFactory
public Object newLessThan(int line, int column, Object left, Object right)
newLessThan
in interface NodeFactory
public Object newLessThanEqual(int line, int column, Object left, Object right)
newLessThanEqual
in interface NodeFactory
public Object newPlus(int line, int column, Object left, Object right)
newPlus
in interface NodeFactory
public Object newMinus(int line, int column, Object left, Object right)
newMinus
in interface NodeFactory
public Object newMultiply(int line, int column, Object left, Object right)
newMultiply
in interface NodeFactory
public Object newDivide(int line, int column, Object left, Object right)
newDivide
in interface NodeFactory
public Object newUnaryPlus(int line, int column, Object arg)
newUnaryPlus
in interface NodeFactory
public Object newUnaryMinus(int line, int column, Object arg)
newUnaryMinus
in interface NodeFactory
public Object newNot(int line, int column, Object arg)
newNot
in interface NodeFactory
public Object newBetween(int line, int column, boolean not, Object arg, Object lower, Object upper)
newBetween
in interface NodeFactory
public Object newLike(int line, int column, boolean not, Object string, Object pattern, Object escape)
newLike
in interface NodeFactory
public Object newEscape(int line, int column, Object arg)
newEscape
in interface NodeFactory
public Object newIn(int line, int column, boolean not, Object expr, List items)
newIn
in interface NodeFactory
public Object newIsNull(int line, int column, boolean not, Object expr)
newIsNull
in interface NodeFactory
public Object newIsEmpty(int line, int column, boolean not, Object expr)
newIsEmpty
in interface NodeFactory
public Object newMemberOf(int line, int column, boolean not, Object expr, Object collection)
newMemberOf
in interface NodeFactory
public Object newPositionalParameter(int line, int column, String position)
newPositionalParameter
in interface NodeFactory
public Object newNamedParameter(int line, int column, String name)
newNamedParameter
in interface NodeFactory
public Object newBooleanLiteral(int line, int column, Object value)
newBooleanLiteral
in interface NodeFactory
public Object newIntegerLiteral(int line, int column, Object value)
newIntegerLiteral
in interface NodeFactory
public Object newLongLiteral(int line, int column, Object value)
newLongLiteral
in interface NodeFactory
public Object newFloatLiteral(int line, int column, Object value)
newFloatLiteral
in interface NodeFactory
public Object newDoubleLiteral(int line, int column, Object value)
newDoubleLiteral
in interface NodeFactory
public Object newStringLiteral(int line, int column, Object value)
newStringLiteral
in interface NodeFactory
public Object newNullLiteral(int line, int column)
newNullLiteral
in interface NodeFactory
public Object newConcat(int line, int column, Object left, Object right)
newConcat
in interface NodeFactory
public Object newSubstring(int line, int column, Object string, Object start, Object length)
newSubstring
in interface NodeFactory
public Object newTrim(int line, int column, NodeFactory.TrimSpecification trimSpec, Object trimChar, Object string)
newTrim
in interface NodeFactory
public Object newLower(int line, int column, Object arg)
newLower
in interface NodeFactory
public Object newUpper(int line, int column, Object arg)
newUpper
in interface NodeFactory
public Object newLocate(int line, int column, Object pattern, Object arg, Object startPos)
newLocate
in interface NodeFactory
public Object newLength(int line, int column, Object arg)
newLength
in interface NodeFactory
public Object newAbs(int line, int column, Object arg)
newAbs
in interface NodeFactory
public Object newSqrt(int line, int column, Object arg)
newSqrt
in interface NodeFactory
public Object newMod(int line, int column, Object left, Object right)
newMod
in interface NodeFactory
public Object newSize(int line, int column, Object arg)
newSize
in interface NodeFactory
public Object newCurrentDate(int line, int column)
newCurrentDate
in interface NodeFactory
public Object newCurrentTime(int line, int column)
newCurrentTime
in interface NodeFactory
public Object newCurrentTimestamp(int line, int column)
newCurrentTimestamp
in interface NodeFactory
public Object newSubquery(int line, int column, Object select, Object from, Object where, Object groupBy, Object having)
newSubquery
in interface NodeFactory
public Object newExists(int line, int column, boolean not, Object subquery)
newExists
in interface NodeFactory
public Object newIn(int line, int column, boolean not, Object expr, Object subquery)
newIn
in interface NodeFactory
public Object newAll(int line, int column, Object subquery)
newAll
in interface NodeFactory
public Object newAny(int line, int column, Object subquery)
newAny
in interface NodeFactory
public Object newSome(int line, int column, Object subquery)
newSome
in interface NodeFactory
public Object newAscOrdering(int line, int column, Object arg)
newAscOrdering
in interface NodeFactory
public Object newDescOrdering(int line, int column, Object arg)
newDescOrdering
in interface NodeFactory
public Object newConstructor(int line, int column, String className, List args)
newConstructor
in interface NodeFactory
public Object newSetClause(int line, int column, List assignments)
newSetClause
in interface NodeFactory
public Object newSetAssignmentClause(int line, int column, Object target, Object value)
newSetAssignmentClause
in interface NodeFactory
Copyright © 2021. All rights reserved.