private AST createFromElement(String text) { AST ast = ASTUtil.create( fromClause.getASTFactory(), implied ? IMPLIED_FROM : FROM_FRAGMENT, // This causes the factory to instantiate the desired class. text ); // Reset the node type, because the rest of the system is expecting FROM_FRAGMENT, all we wanted was // for the factory to create the right sub-class. This might get reset again later on anyway to make the // SQL generation simpler. ast.setType( FROM_FRAGMENT ); return ast; }
private FromElement evaluateFromElementPath(String path, String classAlias) throws SemanticException { ASTFactory factory = fromClause.getASTFactory(); FromReferenceNode pathNode = (FromReferenceNode) PathHelper.parsePath( path, factory ); pathNode.recursiveResolve( // This is the root level node. FromReferenceNode.ROOT_LEVEL, // Generate an explicit from clause at the root. false, classAlias, null ); if ( pathNode.getImpliedJoin() != null ) { return pathNode.getImpliedJoin(); } return pathNode.getFromElement(); }
private AST createFromElement(String text) { AST ast = ASTUtil.create( fromClause.getASTFactory(), implied ? IMPLIED_FROM : FROM_FRAGMENT, // This causes the factory to instantiate the desired class. text ); // Reset the node type, because the rest of the system is expecting FROM_FRAGMENT, all we wanted was // for the factory to create the right sub-class. This might get reset again later on anyway to make the // SQL generation simpler. ast.setType( FROM_FRAGMENT ); return ast; }
private AST createFromElement(String text) { AST ast = ASTUtil.create( fromClause.getASTFactory(), implied ? IMPLIED_FROM : FROM_FRAGMENT, // This causes the factory to instantiate the desired class. text ); // Reset the node type, because the rest of the system is expecting FROM_FRAGMENT, all we wanted was // for the factory to create the right sub-class. This might get reset again later on anyway to make the // SQL generation simpler. ast.setType( FROM_FRAGMENT ); return ast; }
private FromElement evaluateFromElementPath(String path, String classAlias) throws SemanticException { ASTFactory factory = fromClause.getASTFactory(); FromReferenceNode pathNode = ( FromReferenceNode ) PathHelper.parsePath( path, factory ); pathNode.recursiveResolve( FromReferenceNode.ROOT_LEVEL, // This is the root level node. false, // Generate an explicit from clause at the root. classAlias, null ); if (pathNode.getImpliedJoin() != null) return pathNode.getImpliedJoin(); return pathNode.getFromElement(); }
private FromElement evaluateFromElementPath(String path, String classAlias) throws SemanticException { ASTFactory factory = fromClause.getASTFactory(); FromReferenceNode pathNode = ( FromReferenceNode ) PathHelper.parsePath( path, factory ); pathNode.recursiveResolve( FromReferenceNode.ROOT_LEVEL, // This is the root level node. false, // Generate an explicit from clause at the root. classAlias, null ); if (pathNode.getImpliedJoin() != null) return pathNode.getImpliedJoin(); return pathNode.getFromElement(); }