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

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


  public ResultAliasContext process() {
    // first, break down the returns into maps keyed by alias
    // so that role returns can be more easily resolved to their owners
    for ( NativeSQLQueryReturn queryReturn : queryReturns ) {
      if ( queryReturn instanceof NativeSQLQueryNonScalarReturn ) {
        NativeSQLQueryNonScalarReturn rtn = (NativeSQLQueryNonScalarReturn) queryReturn;
        alias2Return.put( rtn.getAlias(), rtn );
        if ( rtn instanceof NativeSQLQueryJoinReturn ) {
          NativeSQLQueryJoinReturn fetchReturn = (NativeSQLQueryJoinReturn) rtn;
          alias2OwnerAlias.put( fetchReturn.getAlias(), fetchReturn.getOwnerAlias() );
        }
      }
View Full Code Here


      throw new HibernateException( "Owner alias [" + ownerAlias + "] is unknown for alias [" + alias + "]" );
    }

    // If this return's alias has not been processed yet, do so b4 further processing of this return
    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );
View Full Code Here

  public ResultAliasContext process() {
    // first, break down the returns into maps keyed by alias
    // so that role returns can be more easily resolved to their owners
    for ( int i = 0; i < queryReturns.length; i++ ) {
      if ( queryReturns[i] instanceof NativeSQLQueryNonScalarReturn ) {
        NativeSQLQueryNonScalarReturn rtn = ( NativeSQLQueryNonScalarReturn ) queryReturns[i];
        alias2Return.put( rtn.getAlias(), rtn );
        if ( rtn instanceof NativeSQLQueryJoinReturn ) {
          NativeSQLQueryJoinReturn fetchReturn = ( NativeSQLQueryJoinReturn ) rtn;
          alias2OwnerAlias.put( fetchReturn.getAlias(), fetchReturn.getOwnerAlias() );
        }
      }
View Full Code Here

      throw new HibernateException( "Owner alias [" + ownerAlias + "] is unknown for alias [" + alias + "]" );
    }

    // If this return's alias has not been processed yet, do so b4 further processing of this return
    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );
View Full Code Here

  public ResultAliasContext process() {
    // first, break down the returns into maps keyed by alias
    // so that role returns can be more easily resolved to their owners
    for ( int i = 0; i < queryReturns.length; i++ ) {
      if ( queryReturns[i] instanceof NativeSQLQueryNonScalarReturn ) {
        NativeSQLQueryNonScalarReturn rtn = ( NativeSQLQueryNonScalarReturn ) queryReturns[i];
        alias2Return.put( rtn.getAlias(), rtn );
        if ( rtn instanceof NativeSQLQueryJoinReturn ) {
          NativeSQLQueryJoinReturn fetchReturn = ( NativeSQLQueryJoinReturn ) rtn;
          alias2OwnerAlias.put( fetchReturn.getAlias(), fetchReturn.getOwnerAlias() );
        }
      }
View Full Code Here

      throw new HibernateException( "Owner alias [" + ownerAlias + "] is unknown for alias [" + alias + "]" );
    }

    // If this return's alias has not been processed yet, do so b4 further processing of this return
    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );
View Full Code Here

  public ResultAliasContext process() {
    // first, break down the returns into maps keyed by alias
    // so that role returns can be more easily resolved to their owners
    for ( NativeSQLQueryReturn queryReturn : queryReturns ) {
      if ( queryReturn instanceof NativeSQLQueryNonScalarReturn ) {
        NativeSQLQueryNonScalarReturn rtn = (NativeSQLQueryNonScalarReturn) queryReturn;
        alias2Return.put( rtn.getAlias(), rtn );
        if ( rtn instanceof NativeSQLQueryJoinReturn ) {
          NativeSQLQueryJoinReturn fetchReturn = (NativeSQLQueryJoinReturn) rtn;
          alias2OwnerAlias.put( fetchReturn.getAlias(), fetchReturn.getOwnerAlias() );
        }
      }
View Full Code Here

      throw new HibernateException( "Owner alias [" + ownerAlias + "] is unknown for alias [" + alias + "]" );
    }

    // If this return's alias has not been processed yet, do so b4 further processing of this return
    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );
View Full Code Here

  public ResultAliasContext process() {
    // first, break down the returns into maps keyed by alias
    // so that role returns can be more easily resolved to their owners
    for ( NativeSQLQueryReturn queryReturn : queryReturns ) {
      if ( queryReturn instanceof NativeSQLQueryNonScalarReturn ) {
        NativeSQLQueryNonScalarReturn rtn = (NativeSQLQueryNonScalarReturn) queryReturn;
        alias2Return.put( rtn.getAlias(), rtn );
        if ( rtn instanceof NativeSQLQueryJoinReturn ) {
          NativeSQLQueryJoinReturn fetchReturn = (NativeSQLQueryJoinReturn) rtn;
          alias2OwnerAlias.put( fetchReturn.getAlias(), fetchReturn.getOwnerAlias() );
        }
      }
View Full Code Here

      throw new HibernateException( "Owner alias [" + ownerAlias + "] is unknown for alias [" + alias + "]" );
    }

    // If this return's alias has not been processed yet, do so b4 further processing of this return
    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );
View Full Code Here

TOP

Related Classes of org.hibernate.engine.query.spi.sql.NativeSQLQueryNonScalarReturn

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.