@Override public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws SemanticException { resolve( generateJoin, implicitJoin ); }
public void recursiveResolve(int level, boolean impliedAtRoot, String classAlias, AST parent) throws SemanticException { AST lhs = getFirstChild(); int nextLevel = level + 1; if ( lhs != null ) { FromReferenceNode n = (FromReferenceNode) lhs; n.recursiveResolve( nextLevel, impliedAtRoot, null, this ); } resolveFirstChild(); boolean impliedJoin = true; if ( level == ROOT_LEVEL && !impliedAtRoot ) { impliedJoin = false; } resolve( true, impliedJoin, classAlias, parent ); }
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, AST parent) throws SemanticException { resolve( generateJoin, implicitJoin, classAlias, parent, null ); }
public void recursiveResolve(int level, boolean impliedAtRoot, String classAlias, AST parent) throws SemanticException { AST lhs = getFirstChild(); int nextLevel = level + 1; if ( lhs != null ) { FromReferenceNode n = ( FromReferenceNode ) lhs; n.recursiveResolve( nextLevel, impliedAtRoot, null, this ); } resolveFirstChild(); boolean impliedJoin = true; if ( level == ROOT_LEVEL && !impliedAtRoot ) { impliedJoin = false; } resolve( true, impliedJoin, classAlias, parent ); }
@Override public void resolve(boolean generateJoin, boolean implicitJoin) throws SemanticException { resolve( generateJoin, implicitJoin, null ); }
public void recursiveResolve(int level, boolean impliedAtRoot, String classAlias, AST parent) throws SemanticException { AST lhs = getFirstChild(); int nextLevel = level + 1; if ( lhs != null ) { FromReferenceNode n = ( FromReferenceNode ) lhs; n.recursiveResolve( nextLevel, impliedAtRoot, null, this ); } resolveFirstChild(); boolean impliedJoin = true; if ( level == ROOT_LEVEL && !impliedAtRoot ) { impliedJoin = false; } resolve( true, impliedJoin, classAlias, parent ); }
@Override public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias) throws SemanticException { resolve( generateJoin, implicitJoin, classAlias, null ); }
@Override public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws SemanticException { if ( isResolved() ) { return; } Type propertyType = prepareLhs(); // Prepare the left hand side and get the data type. if ( propertyType != null && propertyType.isCollectionType() ) { resolveIndex( null ); } else { resolveFirstChild(); super.resolve( generateJoin, implicitJoin ); } }
@Override protected void resolveSelectExpression(AST node) throws SemanticException { // This is called when it's time to fully resolve a path expression. int type = node.getType(); switch ( type ) { case DOT: { DotNode dot = (DotNode) node; dot.resolveSelectExpression(); break; } case ALIAS_REF: { // Notify the FROM element that it is being referenced by the select. FromReferenceNode aliasRefNode = (FromReferenceNode) node; //aliasRefNode.resolve( false, false, aliasRefNode.getText() ); //TODO: is it kosher to do it here? aliasRefNode.resolve( false, false ); //TODO: is it kosher to do it here? FromElement fromElement = aliasRefNode.getFromElement(); if ( fromElement != null ) { fromElement.setIncludeSubclasses( true ); } break; } default: { break; } } }
/** * Resolves the left hand side of the DOT. * * @throws SemanticException */ @Override public void resolveFirstChild() throws SemanticException { FromReferenceNode lhs = (FromReferenceNode) getFirstChild(); SqlNode property = (SqlNode) lhs.getNextSibling(); // Set the attributes of the property reference expression. String propName = property.getText(); propertyName = propName; // If the uresolved property path isn't set yet, just use the property name. if ( propertyPath == null ) { propertyPath = propName; } // Resolve the LHS fully, generate implicit joins. Pass in the property name so that the resolver can // discover foreign key (id) properties. lhs.resolve( true, true, null, this ); setFromElement( lhs.getFromElement() ); // The 'from element' that the property is in. checkSubclassOrSuperclassPropertyReference( lhs, propName ); }
if ( mapFromElement == null ) { final FromReferenceNode mapReference = getMapReference(); mapReference.resolve( true, true );
public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws SemanticException { resolve( generateJoin, implicitJoin ); }
public void resolve(boolean generateJoin, boolean implicitJoin) throws SemanticException { resolve( generateJoin, implicitJoin, null ); }
public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws SemanticException { resolve( generateJoin, implicitJoin ); }
public void resolve(boolean generateJoin, boolean implicitJoin) throws SemanticException { resolve( generateJoin, implicitJoin, null ); }
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias) throws SemanticException { resolve( generateJoin, implicitJoin, classAlias, null ); }
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias) throws SemanticException { resolve( generateJoin, implicitJoin, classAlias, null ); }
@Override public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws SemanticException { if ( isResolved() ) { return; } Type propertyType = prepareLhs(); // Prepare the left hand side and get the data type. if ( propertyType!=null && propertyType.isCollectionType() ) { resolveIndex(null); } else { resolveFirstChild(); super.resolve(generateJoin, implicitJoin); } }
@Override public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws SemanticException { if ( isResolved() ) { return; } Type propertyType = prepareLhs(); // Prepare the left hand side and get the data type. if ( propertyType!=null && propertyType.isCollectionType() ) { resolveIndex(null); } else { resolveFirstChild(); super.resolve(generateJoin, implicitJoin); } }
/** * Resolves the left hand side of the DOT. * * @throws SemanticException */ @Override public void resolveFirstChild() throws SemanticException { FromReferenceNode lhs = ( FromReferenceNode ) getFirstChild(); SqlNode property = ( SqlNode ) lhs.getNextSibling(); // Set the attributes of the property reference expression. String propName = property.getText(); propertyName = propName; // If the uresolved property path isn't set yet, just use the property name. if ( propertyPath == null ) { propertyPath = propName; } // Resolve the LHS fully, generate implicit joins. Pass in the property name so that the resolver can // discover foreign key (id) properties. lhs.resolve( true, true, null, this ); setFromElement( lhs.getFromElement() ); // The 'from element' that the property is in. checkSubclassOrSuperclassPropertyReference( lhs, propName ); }