Package org.hibernate.persister.entity

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


        else {
          return propertyMapping.toColumns( tableAlias, path );
        }
      }
      else {
        String[] columns = propertyMapping.toColumns( path );
        log.trace( "Using non-qualified column reference [" + path + " -> (" + ArrayHelper.toString( columns ) + ")]" );
        return columns;
      }
    }
  }
View Full Code Here


    if ( !inSelect && queryableCollection != null && CollectionProperties.isCollectionProperty( path ) ) {
      Map enabledFilters = fromElement.getWalker().getEnabledFilters();
      String subquery = CollectionSubqueryFactory.createCollectionSubquery(
          joinSequence.copy().setUseThetaStyle( true ),
          enabledFilters,
          propertyMapping.toColumns( tableAlias, path )
      );
            LOG.debugf("toColumns(%s,%s) : subquery = %s", tableAlias, path, subquery);
      return new String[]{"(" + subquery + ")"};
    }
        if (forceAlias) {
View Full Code Here

      );
            LOG.debugf("toColumns(%s,%s) : subquery = %s", tableAlias, path, subquery);
      return new String[]{"(" + subquery + ")"};
    }
        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

      return new String[]{"(" + subquery + ")"};
    }
        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()) {
            // for a subquery, the alias to use depends on a few things (we
            // already know this is not an overall SELECT):
View Full Code Here

        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()) {
            // 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
            // outer-most query
View Full Code Here

            // of that multi-table executor)
            // 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);
                return propertyMapping.toColumns(extractTableName(), path);
      }
            return propertyMapping.toColumns(tableAlias, path);
        } else {
            String[] columns = propertyMapping.toColumns(path);
View Full Code Here

            // 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);
                return propertyMapping.toColumns(extractTableName(), path);
      }
            return propertyMapping.toColumns(tableAlias, path);
        } else {
            String[] columns = propertyMapping.toColumns(path);
            LOG.trace("Using non-qualified column reference [" + path + " -> (" + ArrayHelper.toString(columns) + ")]");
View Full Code Here

            // 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);
        } else {
            String[] columns = propertyMapping.toColumns(path);
            LOG.trace("Using non-qualified column reference [" + path + " -> (" + ArrayHelper.toString(columns) + ")]");
            return columns;
        }
View Full Code Here

                if (isMultiTable()) return propertyMapping.toColumns(tableAlias, path);
                return propertyMapping.toColumns(extractTableName(), path);
      }
            return propertyMapping.toColumns(tableAlias, path);
        } else {
            String[] columns = propertyMapping.toColumns(path);
            LOG.trace("Using non-qualified column reference [" + path + " -> (" + ArrayHelper.toString(columns) + ")]");
            return columns;
        }
  }
View Full Code Here

      //    if the dialect supports select-clause subqueries we could go ahead and generate the subquery also
      Map enabledFilters = fromElement.getWalker().getEnabledFilters();
      String subquery = CollectionSubqueryFactory.createCollectionSubquery(
          joinSequence.copy().setUseThetaStyle( true ),
          enabledFilters,
          propertyMapping.toColumns( tableAlias, path )
      );
      LOG.debugf( "toColumns(%s,%s) : subquery = %s", tableAlias, path, subquery );
      return new String[]{"(" + subquery + ")"};
    }
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.