Package org.hibernate.result

Examples of org.hibernate.result.Return


    return outputs().hasMoreReturns();
  }

  @Override
  public int getUpdateCount() {
    final Return nextReturn = outputs().getNextReturn();
    if ( nextReturn.isResultSet() ) {
      return -1;
    }
    return ( (UpdateCountReturn) nextReturn ).getUpdateCount();
  }
View Full Code Here


    return ( (UpdateCountReturn) nextReturn ).getUpdateCount();
  }

  @Override
  public List getResultList() {
    final Return nextReturn = outputs().getNextReturn();
    if ( ! nextReturn.isResultSet() ) {
      return null; // todo : what should be thrown/returned here?
    }
    return ( (ResultSetReturn) nextReturn ).getResultList();
  }
View Full Code Here

    return ( (ResultSetReturn) nextReturn ).getResultList();
  }

  @Override
  public Object getSingleResult() {
    final Return nextReturn = outputs().getNextReturn();
    if ( ! nextReturn.isResultSet() ) {
      return null; // todo : what should be thrown/returned here?
    }
    return ( (ResultSetReturn) nextReturn ).getSingleResult();
  }
View Full Code Here

    return outputs().hasMoreReturns();
  }

  @Override
  public int getUpdateCount() {
    final Return nextReturn = outputs().getNextReturn();
    if ( nextReturn.isResultSet() ) {
      return -1;
    }
    return ( (UpdateCountReturn) nextReturn ).getUpdateCount();
  }
View Full Code Here

    return ( (UpdateCountReturn) nextReturn ).getUpdateCount();
  }

  @Override
  public List getResultList() {
    final Return nextReturn = outputs().getNextReturn();
    if ( ! nextReturn.isResultSet() ) {
      return null; // todo : what should be thrown/returned here?
    }
    return ( (ResultSetReturn) nextReturn ).getResultList();
  }
View Full Code Here

    return ( (ResultSetReturn) nextReturn ).getResultList();
  }

  @Override
  public Object getSingleResult() {
    final Return nextReturn = outputs().getNextReturn();
    if ( ! nextReturn.isResultSet() ) {
      return null; // todo : what should be thrown/returned here?
    }
    return ( (ResultSetReturn) nextReturn ).getSingleResult();
  }
View Full Code Here

TOP

Related Classes of org.hibernate.result.Return

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.