/** * Returns true if the from node contains the class alias name. * * @param alias The HQL class alias name. * * @return true if the from node contains the class alias name. */ public boolean containsClassAlias(String alias) { boolean isAlias = fromElementByClassAlias.containsKey( alias ); if ( !isAlias && getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() ) { isAlias = findIntendedAliasedFromElementBasedOnCrazyJPARequirements( alias ) != null; } return isAlias; }
/** * Retrieve the from-element represented by the given alias. * * @param aliasOrClassName The alias by which to locate the from-element. * * @return The from-element assigned the given alias, or null if none. */ public FromElement getFromElement(String aliasOrClassName) { FromElement fromElement = fromElementByClassAlias.get( aliasOrClassName ); if ( fromElement == null && getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() ) { fromElement = findIntendedAliasedFromElementBasedOnCrazyJPARequirements( aliasOrClassName ); } if ( fromElement == null && parentFromClause != null ) { fromElement = parentFromClause.getFromElement( aliasOrClassName ); } return fromElement; }
/** * Returns true if the from node contains the class alias name. * * @param alias The HQL class alias name. * @return true if the from node contains the class alias name. */ public boolean containsClassAlias(String alias) { boolean isAlias = fromElementByClassAlias.containsKey( alias ); if ( !isAlias && getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() ) { isAlias = findIntendedAliasedFromElementBasedOnCrazyJPARequirements( alias ) != null; } return isAlias; }
/** * Returns true if the from node contains the class alias name. * * @param alias The HQL class alias name. * @return true if the from node contains the class alias name. */ public boolean containsClassAlias(String alias) { boolean isAlias = fromElementByClassAlias.containsKey( alias ); if ( !isAlias && getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() ) { isAlias = findIntendedAliasedFromElementBasedOnCrazyJPARequirements( alias ) != null; } return isAlias; }
/** * Retreives the from-element represented by the given alias. * * @param aliasOrClassName The alias by which to locate the from-element. * @return The from-element assigned the given alias, or null if none. */ public FromElement getFromElement(String aliasOrClassName) { FromElement fromElement = ( FromElement ) fromElementByClassAlias.get( aliasOrClassName ); if ( fromElement == null && getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() ) { fromElement = findIntendedAliasedFromElementBasedOnCrazyJPARequirements( aliasOrClassName ); } if ( fromElement == null && parentFromClause != null ) { fromElement = parentFromClause.getFromElement( aliasOrClassName ); } return fromElement; }
/** * Retreives the from-element represented by the given alias. * * @param aliasOrClassName The alias by which to locate the from-element. * @return The from-element assigned the given alias, or null if none. */ public FromElement getFromElement(String aliasOrClassName) { FromElement fromElement = ( FromElement ) fromElementByClassAlias.get( aliasOrClassName ); if ( fromElement == null && getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() ) { fromElement = findIntendedAliasedFromElementBasedOnCrazyJPARequirements( aliasOrClassName ); } if ( fromElement == null && parentFromClause != null ) { fromElement = parentFromClause.getFromElement( aliasOrClassName ); } return fromElement; }