/** * INTERNAL * Answer the name of the attribute which is represented by the receiver's * right node. */ public String resolveAttribute() { return ((AttributeNode)getRight()).getAttributeName(); }
/** * INTERNAL * Answer the name of the attribute which is represented by the receiver's * right node. */ public String resolveAttribute() { return ((AttributeNode)getRight()).getAttributeName(); }
/** * INTERNAL * Answer the name of the attribute which is represented by the receiver's * right node. */ public String resolveAttribute() { return ((AttributeNode)getRight()).getAttributeName(); }
/** * INTERNAL * Answer the mapping resulting from traversing the receiver's nodes */ public DatabaseMapping resolveMapping(GenerationContext context) { Class leftClass = getLeft().resolveClass(context); return getRight().resolveMapping(context, leftClass); }
/** * resolveClass: Answer the class which results from traversing the mappings for the receiver's nodes */ public Class resolveClass(GenerationContext context) { Class leftClass = getLeft().resolveClass(context); return getRight().resolveClass(context, leftClass); }
/** * resolveClass: Answer the class which results from traversing the mappings for the receiver's nodes */ public Class resolveClass(GenerationContext context) { Class leftClass = getLeft().resolveClass(context); return getRight().resolveClass(context, leftClass); }
/** * INTERNAL * Answer the mapping resulting from traversing the receiver's nodes */ public DatabaseMapping resolveMapping(GenerationContext context) { Class leftClass = getLeft().resolveClass(context); return getRight().resolveMapping(context, leftClass); }
/** * resolveClass: Answer the class which results from traversing the mappings for the receiver's nodes */ public Class resolveClass(GenerationContext context) { Class leftClass = getLeft().resolveClass(context); return getRight().resolveClass(context, leftClass); }
/** * INTERNAL * Answer the mapping resulting from traversing the receiver's nodes */ public DatabaseMapping resolveMapping(GenerationContext context) { Class leftClass = getLeft().resolveClass(context); return getRight().resolveMapping(context, leftClass); }
/** */ public Object newVariableDecl(int line, int column, Object path, String variable) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); JoinDeclNode node = new JoinDeclNode(); node.setPath(dotNode); node.setVariableName(variable); setPosition(node, line, column); context.registerJoinVariable(node.getCanonicalVariableName(), dotNode, line, column); currentIdentificationVariable = variable; return node; }
/** */ public Object newFetchJoin(int line, int column, boolean outerJoin, Object path) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); rightNode.setOuterJoin(outerJoin); // register the dot expression to be added as joined attribute FetchJoinNode node = new FetchJoinNode(); node.setPath(dotNode); node.setOuterJoin(outerJoin); setPosition(node, line, column); context.registerFetchJoin(currentIdentificationVariable, dotNode); return node; }
/** */ public Object newFetchJoin(int line, int column, boolean outerJoin, Object path) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); rightNode.setOuterJoin(outerJoin); // register the dot expression to be added as joined attribute FetchJoinNode node = new FetchJoinNode(); node.setPath(dotNode); node.setOuterJoin(outerJoin); setPosition(node, line, column); context.registerFetchJoin(currentIdentificationVariable, dotNode); return node; }
/** */ public Object newFetchJoin(int line, int column, boolean outerJoin, Object path) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); rightNode.setOuterJoin(outerJoin); // register the dot expression to be added as joined attribute FetchJoinNode node = new FetchJoinNode(); node.setPath(dotNode); node.setOuterJoin(outerJoin); setPosition(node, line, column); context.registerFetchJoin(currentIdentificationVariable, dotNode); return node; }
/** */ public Object newCollectionMemberVariableDecl(int line, int column, Object path, String variable) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); // The IN-clause expression must be a collection valued path expression rightNode.setRequiresCollectionAttribute(true); CollectionMemberDeclNode node = new CollectionMemberDeclNode(); node.setPath(dotNode); node.setVariableName(variable); setPosition(node, line, column); context.registerJoinVariable(node.getCanonicalVariableName(), dotNode, line, column); currentIdentificationVariable = variable; return node; }
/** */ public Object newCollectionMemberVariableDecl(int line, int column, Object path, String variable) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); // The IN-clause expression must be a collection valued path expression rightNode.setRequiresCollectionAttribute(true); CollectionMemberDeclNode node = new CollectionMemberDeclNode(); node.setPath(dotNode); node.setVariableName(variable); setPosition(node, line, column); context.registerJoinVariable(node.getCanonicalVariableName(), dotNode, line, column); currentIdentificationVariable = variable; return node; }
/** */ public Object newCollectionMemberVariableDecl(int line, int column, Object path, String variable) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); // The IN-clause expression must be a collection valued path expression rightNode.setRequiresCollectionAttribute(true); CollectionMemberDeclNode node = new CollectionMemberDeclNode(); node.setPath(dotNode); node.setVariableName(variable); setPosition(node, line, column); context.registerJoinVariable(node.getCanonicalVariableName(), dotNode, line, column); currentIdentificationVariable = variable; return node; }
/** */ public Object newJoinVariableDecl(int line, int column, boolean outerJoin, Object path, String variable) { DotNode dotNode = (DotNode)path; AttributeNode rightNode = (AttributeNode)dotNode.getRight(); rightNode.setOuterJoin(outerJoin); JoinDeclNode node = new JoinDeclNode(); node.setPath(dotNode); node.setVariableName(variable); node.setOuterJoin(outerJoin); setPosition(node, line, column); context.registerJoinVariable(node.getCanonicalVariableName(), dotNode, line, column); currentIdentificationVariable = variable; return node; }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { DotNode dotNode = (DotNode)getLeft(); Node prefix = dotNode.getLeft(); String variableName = ((AttributeNode)dotNode.getRight()).getAttributeName(); // check whether variable denotes a collection valued field if (!dotNode.endsWithCollectionField(context)) { throw JPQLException.invalidSizeArgument( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), variableName); } Expression whereClause = prefix.generateExpression(context); whereClause = whereClause.size(variableName); return whereClause; }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { DotNode dotNode = (DotNode)getLeft(); Node prefix = dotNode.getLeft(); String variableName = ((AttributeNode)dotNode.getRight()).getAttributeName(); // check whether variable denotes a collection valued field if (!dotNode.endsWithCollectionField(context)) { throw JPQLException.invalidSizeArgument( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), variableName); } Expression whereClause = prefix.generateExpression(context); whereClause = whereClause.size(variableName); return whereClause; }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { DotNode dotNode = (DotNode)getLeft(); Node prefix = dotNode.getLeft(); String variableName = ((AttributeNode)dotNode.getRight()).getAttributeName(); // check whether variable denotes a collection valued field if (!dotNode.endsWithCollectionField(context)) { throw JPQLException.invalidSizeArgument( context.getParseTreeContext().getQueryInfo(), getLine(), getColumn(), variableName); } Expression whereClause = prefix.generateExpression(context); whereClause = whereClause.size(variableName); return whereClause; }