Package org.hibernate.jpa.internal

Examples of org.hibernate.jpa.internal.StoredProcedureQueryImpl$ParameterRegistrationImpl


        .getNamedQueryRepository().getNamedProcedureCallMemento( name );
    if ( memento == null ) {
      throw new IllegalArgumentException( "No @NamedStoredProcedureQuery was found with that name : " + name );
    }
    final ProcedureCall procedureCall = memento.makeProcedureCall( internalGetSession() );
    final StoredProcedureQueryImpl jpaImpl = new StoredProcedureQueryImpl( procedureCall, this );
    // apply hints
    if ( memento.getHintsMap() != null ) {
      for ( Map.Entry<String,Object> hintEntry : memento.getHintsMap().entrySet() ) {
        jpaImpl.setHint( hintEntry.getKey(), hintEntry.getValue() );
      }
    }
    return jpaImpl;
  }
View Full Code Here


  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName) {
    checkOpen();
    try {
      return new StoredProcedureQueryImpl(
          internalGetSession().createStoredProcedureCall( procedureName ),
          this
      );
    }
    catch ( HibernateException he ) {
View Full Code Here

  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName, Class... resultClasses) {
    checkOpen();
    try {
      return new StoredProcedureQueryImpl(
          internalGetSession().createStoredProcedureCall( procedureName, resultClasses ),
          this
      );
    }
    catch ( HibernateException he ) {
View Full Code Here

  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName, String... resultSetMappings) {
    checkOpen();
    try {
      return new StoredProcedureQueryImpl(
          internalGetSession().createStoredProcedureCall( procedureName, resultSetMappings ),
          this
      );
    }
    catch ( HibernateException he ) {
View Full Code Here

  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName) {
    checkOpen();
    try {
      ProcedureCall procedureCall = internalGetSession().createStoredProcedureCall( procedureName );
      return new StoredProcedureQueryImpl( procedureCall, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
  }
View Full Code Here

  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName, Class... resultClasses) {
    checkOpen();
    try {
      ProcedureCall procedureCall = internalGetSession().createStoredProcedureCall( procedureName, resultClasses );
      return new StoredProcedureQueryImpl( procedureCall, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
  }
View Full Code Here

      final ProcedureCallMemento memento = ( (SessionImplementor) internalGetSession() ).getFactory()
          .getNamedQueryRepository().getNamedProcedureCallMemento( name );
      if ( memento == null ) {
        throw new IllegalArgumentException( "No @NamedStoredProcedureQuery was found with that name : " + name );
      }
      final StoredProcedureQueryImpl jpaImpl = new StoredProcedureQueryImpl( memento, this );
      // apply hints
      if ( memento.getHintsMap() != null ) {
        for ( Map.Entry<String,Object> hintEntry : memento.getHintsMap().entrySet() ) {
          jpaImpl.setHint( hintEntry.getKey(), hintEntry.getValue() );
        }
      }
      return jpaImpl;
    }
    catch ( RuntimeException e ) {
View Full Code Here

  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName) {
    checkOpen();
    try {
      return new StoredProcedureQueryImpl(
          internalGetSession().createStoredProcedureCall( procedureName ),
          this
      );
    }
    catch ( RuntimeException e ) {
View Full Code Here

  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName, Class... resultClasses) {
    checkOpen();
    try {
      return new StoredProcedureQueryImpl(
          internalGetSession().createStoredProcedureCall( procedureName, resultClasses ),
          this
      );
    }
    catch ( RuntimeException e ) {
View Full Code Here

  @Override
  public StoredProcedureQuery createStoredProcedureQuery(String procedureName, String... resultSetMappings) {
    checkOpen();
    try {
      try {
        return new StoredProcedureQueryImpl(
            internalGetSession().createStoredProcedureCall( procedureName, resultSetMappings ),
            this
        );
      }
      catch (UnknownSqlResultSetMappingException unknownResultSetMapping) {
View Full Code Here

TOP

Related Classes of org.hibernate.jpa.internal.StoredProcedureQueryImpl$ParameterRegistrationImpl

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.