Package org.hibernate.engine.query.spi.sql

Examples of org.hibernate.engine.query.spi.sql.NativeSQLQueryScalarReturn


          type = mappings.getTypeResolver().heuristicType( typeFromXML );
          if ( type == null ) {
            throw new MappingException( "could not determine type " + type );
          }
        }
        definition.addQueryReturn( new NativeSQLQueryScalarReturn( column, type ) );
      }
      else if ( "return".equals( name ) ) {
        definition.addQueryReturn( bindReturn( returnElem, mappings, cnt ) );
      }
      else if ( "return-join".equals( name ) ) {
View Full Code Here


      this.autoDiscoverTypes = noReturns;
    }
    else {
      for ( NativeSQLQueryReturn queryReturn : queryReturns ) {
        if ( queryReturn instanceof NativeSQLQueryScalarReturn ) {
          NativeSQLQueryScalarReturn scalar = (NativeSQLQueryScalarReturn) queryReturn;
          if ( scalar.getType() == null ) {
            autoDiscoverTypes = true;
            break;
          }
        }
        else if ( NativeSQLQueryConstructorReturn.class.isInstance( queryReturn ) ) {
View Full Code Here

    }
    queryReturnBuilders.add( new ReturnBuilder() {

      @Override
      public NativeSQLQueryReturn buildReturn() {
        return new NativeSQLQueryScalarReturn( columnAlias, type );
      }
    } );
    return this;
  }
View Full Code Here

      this.autoDiscoverTypes = noReturns;
    }
    else {
      for ( NativeSQLQueryReturn queryReturn : queryReturns ) {
        if ( queryReturn instanceof NativeSQLQueryScalarReturn ) {
          NativeSQLQueryScalarReturn scalar = (NativeSQLQueryScalarReturn) queryReturn;
          if ( scalar.getType() == null ) {
            autoDiscoverTypes = true;
            break;
          }
        }
        else if ( NativeSQLQueryConstructorReturn.class.isInstance( queryReturn ) ) {
View Full Code Here

    }
    queryReturnBuilders.add( new ReturnBuilder() {

      @Override
      public NativeSQLQueryReturn buildReturn() {
        return new NativeSQLQueryScalarReturn( columnAlias, type );
      }
    } );
    return this;
  }
View Full Code Here

      this.autoDiscoverTypes = noReturns;
    }
    else {
      for ( NativeSQLQueryReturn queryReturn : queryReturns ) {
        if ( queryReturn instanceof NativeSQLQueryScalarReturn ) {
          NativeSQLQueryScalarReturn scalar = (NativeSQLQueryScalarReturn) queryReturn;
          if ( scalar.getType() == null ) {
            autoDiscoverTypes = true;
            break;
          }
        }
        else if ( NativeSQLQueryConstructorReturn.class.isInstance( queryReturn ) ) {
View Full Code Here

      queryReturnBuilders = new ArrayList<ReturnBuilder>();
    }
    queryReturnBuilders.add(
        new ReturnBuilder() {
          public NativeSQLQueryReturn buildReturn() {
            return new NativeSQLQueryScalarReturn( columnAlias, type );
          }
        }
    );
    return this;
  }
View Full Code Here

  public List<Return> generateCustomReturns(boolean queryHadAliases) {
    List<Return> customReturns = new ArrayList<Return>()