/** * INTERNAL makeNodeOneToMany: * Traverse to the leaf on theNode and mark as one to many */ public void makeNodeOneToMany(Node theNode) { Node currentNode = theNode; do { if (!currentNode.hasRight()) { ((AttributeNode)currentNode).setRequiresCollectionAttribute(true); return; } currentNode = currentNode.getRight(); } while (true); }
/** * INTERNAL makeNodeOneToMany: * Traverse to the leaf on theNode and mark as one to many */ public void makeNodeOneToMany(Node theNode) { Node currentNode = theNode; do { if (!currentNode.hasRight()) { ((AttributeNode)currentNode).setRequiresCollectionAttribute(true); return; } currentNode = currentNode.getRight(); } while (true); }
/** * INTERNAL makeNodeOneToMany: * Traverse to the leaf on theNode and mark as one to many */ public void makeNodeOneToMany(Node theNode) { Node currentNode = theNode; do { if (!currentNode.hasRight()) { ((AttributeNode)currentNode).setRequiresCollectionAttribute(true); return; } currentNode = currentNode.getRight(); } while (true); }
/** */ 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; }