Package org.hibernate.engine.query.sql

Examples of org.hibernate.engine.query.sql.NativeSQLQueryReturn


      return internalGetPropertyResultsMap( alias );
    }
  }

  private Map internalGetPropertyResultsMap(String alias) {
    NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) alias2Return.get( alias );
    if ( rtn instanceof NativeSQLQueryNonScalarReturn ) {
      return ( ( NativeSQLQueryNonScalarReturn ) rtn ).getPropertyResultsMap();
    }
    else {
      return null;
View Full Code Here


      this.autodiscovertypes = noReturns;
    }
    else {
      Iterator itr = queryReturns.iterator();
      while ( itr.hasNext() ) {
        NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) itr.next();
        if ( rtn instanceof NativeSQLQueryScalarReturn ) {
          NativeSQLQueryScalarReturn scalar = ( NativeSQLQueryScalarReturn ) rtn;
          if ( scalar.getType() == null ) {
            autodiscovertypes = true;
            break;
View Full Code Here

      this.autodiscovertypes = noReturns;
    }
    else {
      Iterator itr = queryReturns.iterator();
      while ( itr.hasNext() ) {
        NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) itr.next();
        if ( rtn instanceof NativeSQLQueryScalarReturn ) {
          NativeSQLQueryScalarReturn scalar = ( NativeSQLQueryScalarReturn ) rtn;
          if ( scalar.getType() == null ) {
            autodiscovertypes = true;
            break;
View Full Code Here

      return internalGetPropertyResultsMap( alias );
    }
  }

  private Map internalGetPropertyResultsMap(String alias) {
    NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) alias2Return.get( alias );
    if ( rtn instanceof NativeSQLQueryNonScalarReturn ) {
      return ( ( NativeSQLQueryNonScalarReturn ) rtn ).getPropertyResultsMap();
    }
    else {
      return null;
View Full Code Here

            throw new AssertionFailure( "Unsupported named query model. Please report the bug in Hibernate EntityManager");
          }
          if ( queryReturns.length > 1 ) {
            throw new IllegalArgumentException( "Cannot create TypedQuery for query with more than one return" );
          }
          final NativeSQLQueryReturn nativeSQLQueryReturn = queryReturns[0];
          if ( nativeSQLQueryReturn instanceof NativeSQLQueryRootReturn ) {
            final String entityClassName = ( ( NativeSQLQueryRootReturn ) nativeSQLQueryReturn ).getReturnEntityName();
            try {
              actualReturnedClass = ReflectHelper.classForName( entityClassName, AbstractEntityManagerImpl.class );
            }
View Full Code Here

      return internalGetPropertyResultsMap( alias );
    }
  }

  private Map internalGetPropertyResultsMap(String alias) {
    NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) alias2Return.get( alias );
    if ( rtn instanceof NativeSQLQueryNonScalarReturn ) {
      return ( ( NativeSQLQueryNonScalarReturn ) rtn ).getPropertyResultsMap();
    }
    else {
      return null;
View Full Code Here

      return internalGetPropertyResultsMap( alias );
    }
  }

  private Map internalGetPropertyResultsMap(String alias) {
    NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) alias2Return.get( alias );
    if ( rtn instanceof NativeSQLQueryNonScalarReturn ) {
      return ( ( NativeSQLQueryNonScalarReturn ) rtn ).getPropertyResultsMap();
    }
    else {
      return null;
View Full Code Here

      this.autodiscovertypes = noReturns;
    }
    else {
      Iterator itr = queryReturns.iterator();
      while ( itr.hasNext() ) {
        NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) itr.next();
        if ( rtn instanceof NativeSQLQueryScalarReturn ) {
          NativeSQLQueryScalarReturn scalar = ( NativeSQLQueryScalarReturn ) rtn;
          if ( scalar.getType() == null ) {
            autodiscovertypes = true;
            break;
View Full Code Here

      return internalGetPropertyResultsMap( alias );
    }
  }

  private Map internalGetPropertyResultsMap(String alias) {
    NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) alias2Return.get( alias );
    if ( rtn instanceof NativeSQLQueryNonScalarReturn ) {
      return ( ( NativeSQLQueryNonScalarReturn ) rtn ).getPropertyResultsMap();
    }
    else {
      return null;
View Full Code Here

      this.autodiscovertypes = noReturns;
    }
    else {
      Iterator itr = queryReturns.iterator();
      while ( itr.hasNext() ) {
        NativeSQLQueryReturn rtn = ( NativeSQLQueryReturn ) itr.next();
        if ( rtn instanceof NativeSQLQueryScalarReturn ) {
          NativeSQLQueryScalarReturn scalar = ( NativeSQLQueryScalarReturn ) rtn;
          if ( scalar.getType() == null ) {
            autodiscovertypes = true;
            break;
View Full Code Here

TOP

Related Classes of org.hibernate.engine.query.sql.NativeSQLQueryReturn

Copyright © 2018 www.massapicom. 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.