/** * Convenience method to check whether a given token represents a from-element alias. * * @param possibleAlias The potential from-element alias to check. * * @return True if the possibleAlias is an alias to a from-element visible * from this point in the query graph. */ public boolean isFromElementAlias(String possibleAlias) { boolean isAlias = containsClassAlias( possibleAlias ); if ( !isAlias && parentFromClause != null ) { // try the parent FromClause... isAlias = parentFromClause.isFromElementAlias( possibleAlias ); } return isAlias; }
@Override protected boolean isNonQualifiedPropertyRef(AST ident) { final String identText = ident.getText(); if ( currentFromClause.isFromElementAlias( identText ) ) { return false; } List fromElements = currentFromClause.getExplicitFromElements(); if ( fromElements.size() == 1 ) { final FromElement fromElement = (FromElement) fromElements.get( 0 ); try { LOG.tracev( "Attempting to resolve property [{0}] as a non-qualified ref", identText ); return fromElement.getPropertyMapping( identText ).toType( identText ) != null; } catch (QueryException e) { // Should mean that no such property was found } } return false; }
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, AST parent, AST parentPredicate) { if (!isResolved()) { if ( getWalker().getCurrentFromClause().isFromElementAlias( getText() ) ) { FromElement fromElement = getWalker().getCurrentFromClause().getFromElement( getText() ); if ( fromElement.getQueryableCollection() != null && fromElement.getQueryableCollection().getElementType().isComponentType() ) { getColumns() != null && ( getWalker().getAST() instanceof AbstractMapComponentNode || getWalker().getAST() instanceof IndexNode ) && getWalker().getCurrentFromClause().isFromElementAlias( getOriginalText() ) ) {
/** * Convenience method to check whether a given token represents a from-element alias. * * @param possibleAlias The potential from-element alias to check. * @return True if the possibleAlias is an alias to a from-element visible * from this point in the query graph. */ public boolean isFromElementAlias(String possibleAlias) { boolean isAlias = containsClassAlias( possibleAlias ); if ( !isAlias && parentFromClause != null ) { // try the parent FromClause... isAlias = parentFromClause.isFromElementAlias( possibleAlias ); } return isAlias; }
/** * Convenience method to check whether a given token represents a from-element alias. * * @param possibleAlias The potential from-element alias to check. * @return True if the possibleAlias is an alias to a from-element visible * from this point in the query graph. */ public boolean isFromElementAlias(String possibleAlias) { boolean isAlias = containsClassAlias( possibleAlias ); if ( !isAlias && parentFromClause != null ) { // try the parent FromClause... isAlias = parentFromClause.isFromElementAlias( possibleAlias ); } return isAlias; }
@Override protected boolean isNonQualifiedPropertyRef(AST ident) { final String identText = ident.getText(); if ( currentFromClause.isFromElementAlias( identText ) ) { return false; } List fromElements = currentFromClause.getExplicitFromElements(); if ( fromElements.size() == 1 ) { final FromElement fromElement = ( FromElement ) fromElements.get( 0 ); try { LOG.tracev( "Attempting to resolve property [{0}] as a non-qualified ref", identText ); return fromElement.getPropertyMapping( identText ).toType( identText ) != null; } catch( QueryException e ) { // Should mean that no such property was found } } return false; }
@Override protected boolean isNonQualifiedPropertyRef(AST ident) { final String identText = ident.getText(); if ( currentFromClause.isFromElementAlias( identText ) ) { return false; } List fromElements = currentFromClause.getExplicitFromElements(); if ( fromElements.size() == 1 ) { final FromElement fromElement = ( FromElement ) fromElements.get( 0 ); try { LOG.tracev( "Attempting to resolve property [{0}] as a non-qualified ref", identText ); return fromElement.getPropertyMapping( identText ).toType( identText ) != null; } catch( QueryException e ) { // Should mean that no such property was found } } return false; }
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, AST parent) { if (!isResolved()) { if (getWalker().getCurrentFromClause().isFromElementAlias(getText())) { if (resolveAsAlias()) { setResolved();
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, AST parent) { if (!isResolved()) { if (getWalker().getCurrentFromClause().isFromElementAlias(getText())) { if (resolveAsAlias()) { setResolved();