Examples of toColumns()


Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

      // 2) otherwise (not correlated), use the given alias
      if ( isCorrelation() ) {
        if ( isMultiTable() ) {
          return propertyMapping.toColumns( tableAlias, path );
        }
        return propertyMapping.toColumns( extractTableName(), path );
      }
      return propertyMapping.toColumns( tableAlias, path );
    }

    if ( fromElement.getWalker().getCurrentTopLevelClauseType() == HqlSqlTokenTypes.SELECT ) {
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

        if ( isMultiTable() ) {
          return propertyMapping.toColumns( tableAlias, path );
        }
        return propertyMapping.toColumns( extractTableName(), path );
      }
      return propertyMapping.toColumns( tableAlias, path );
    }

    if ( fromElement.getWalker().getCurrentTopLevelClauseType() == HqlSqlTokenTypes.SELECT ) {
      return propertyMapping.toColumns( tableAlias, path );
    }
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

      }
      return propertyMapping.toColumns( tableAlias, path );
    }

    if ( fromElement.getWalker().getCurrentTopLevelClauseType() == HqlSqlTokenTypes.SELECT ) {
      return propertyMapping.toColumns( tableAlias, path );
    }

    if ( isManipulationQuery() && isMultiTable() && inWhereClause() ) {
      // the actual where-clause will end up being ripped out the update/delete and used in
      // a select to populate the temp table, so its ok to use the table alias to qualify the table refs
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

    if ( isManipulationQuery() && isMultiTable() && inWhereClause() ) {
      // the actual where-clause will end up being ripped out the update/delete and used in
      // a select to populate the temp table, so its ok to use the table alias to qualify the table refs
      // and safer to do so to protect from same-named columns
      return propertyMapping.toColumns( tableAlias, path );
    }

    String[] columns = propertyMapping.toColumns( path );
    LOG.tracev( "Using non-qualified column reference [{0} -> ({1})]", path, ArrayHelper.toString( columns ) );
    return columns;
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

      // a select to populate the temp table, so its ok to use the table alias to qualify the table refs
      // and safer to do so to protect from same-named columns
      return propertyMapping.toColumns( tableAlias, path );
    }

    String[] columns = propertyMapping.toColumns( path );
    LOG.tracev( "Using non-qualified column reference [{0} -> ({1})]", path, ArrayHelper.toString( columns ) );
    return columns;
  }

  private boolean isCorrelation() {
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

    if ( !inSelect && queryableCollection != null && CollectionProperties.isCollectionProperty( path ) ) {
      Map enabledFilters = fromElement.getWalker().getEnabledFilters();
      String subquery = CollectionSubqueryFactory.createCollectionSubquery(
          joinSequence,
              enabledFilters,
          propertyMapping.toColumns( tableAlias, path )
      );
      if ( log.isDebugEnabled() ) {
        log.debug( "toColumns(" + tableAlias + "," + path + ") : subquery = " + subquery );
      }
      return new String[]{"(" + subquery + ")"};
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

      }
      return new String[]{"(" + subquery + ")"};
    }
    else {
      if ( forceAlias ) {
        return propertyMapping.toColumns( tableAlias, path );
      }
      else if ( fromElement.getWalker().getStatementType() == HqlSqlTokenTypes.SELECT ) {
        return propertyMapping.toColumns( tableAlias, path );
      }
      else if ( fromElement.getWalker().getCurrentClauseType() == HqlSqlTokenTypes.SELECT ) {
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

    else {
      if ( forceAlias ) {
        return propertyMapping.toColumns( tableAlias, path );
      }
      else if ( fromElement.getWalker().getStatementType() == HqlSqlTokenTypes.SELECT ) {
        return propertyMapping.toColumns( tableAlias, path );
      }
      else if ( fromElement.getWalker().getCurrentClauseType() == HqlSqlTokenTypes.SELECT ) {
        return propertyMapping.toColumns( tableAlias, path );
      }
      else if ( fromElement.getWalker().isSubQuery() ) {
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

      }
      else if ( fromElement.getWalker().getStatementType() == HqlSqlTokenTypes.SELECT ) {
        return propertyMapping.toColumns( tableAlias, path );
      }
      else if ( fromElement.getWalker().getCurrentClauseType() == HqlSqlTokenTypes.SELECT ) {
        return propertyMapping.toColumns( tableAlias, path );
      }
      else if ( fromElement.getWalker().isSubQuery() ) {
        // for a subquery, the alias to use depends on a few things (we
        // already know this is not an overall SELECT):
        //      1) if this FROM_ELEMENT represents a correlation to the
View Full Code Here

Examples of org.hibernate.persister.entity.PropertyMapping.toColumns()

        //              B) otherwise, we need to use the persister's
        //                  table name as the column qualification
        //      2) otherwise (not correlated), use the given alias
        if ( isCorrelation() ) {
          if ( isMultiTable() ) {
            return propertyMapping.toColumns( tableAlias, path );
          }
          else {
            return propertyMapping.toColumns( extractTableName(), path );
          }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.