Examples of SessionException


Examples of org.hibernate.SessionException

    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
  }

  public Object immediateLoad(String entityName, Serializable id)
      throws HibernateException {
    throw new SessionException("proxies cannot be fetched by a stateless session");
  }
View Full Code Here

Examples of org.hibernate.SessionException

  }

  public void initializeCollection(
      PersistentCollection collection,
          boolean writing) throws HibernateException {
    throw new SessionException("collections cannot be fetched by a stateless session");
  }
View Full Code Here

Examples of org.hibernate.SessionException

    return false;
  }

  public void managedClose() {
    if ( isClosed() ) {
      throw new SessionException( "Session was already closed!" );
    }
    transactionCoordinator.close();
    setClosed();
  }
View Full Code Here

Examples of org.hibernate.SessionException

    }

    @Override
    public SessionBuilder tenantIdentifier(String tenantIdentifier) {
      // todo : is this always true?  Or just in the case of sharing JDBC resources?
      throw new SessionException( "Cannot redefine tenant identifier on child session" );
    }
View Full Code Here

Examples of org.hibernate.SessionException

          new ConnectionObserverStatsBridge( factory )
      );
    }
    else {
      if ( connection != null ) {
        throw new SessionException( "Cannot simultaneously share transaction context and specify connection" );
      }
      this.transactionCoordinator = transactionCoordinator;
    }

    loadQueryInfluencers = new LoadQueryInfluencers( factory );
View Full Code Here

Examples of org.hibernate.SessionException

  }

  public Connection close() throws HibernateException {
    LOG.trace( "Closing session" );
    if ( isClosed() ) {
      throw new SessionException( "Session was already closed" );
    }


    if ( factory.getStatistics().isStatisticsEnabled() ) {
      factory.getStatisticsImplementor().closeSession();
View Full Code Here

Examples of org.hibernate.SessionException

    closed = true;
  }

  protected void errorIfClosed() {
    if ( closed ) {
      throw new SessionException( "Session is closed!" );
    }
  }
View Full Code Here

Examples of org.hibernate.SessionException

  }

  public Connection close() throws HibernateException {
    log.trace( "closing session" );
    if ( isClosed() ) {
      throw new SessionException( "Session was already closed" );
    }
   

    if ( factory.getStatistics().isStatisticsEnabled() ) {
      factory.getStatisticsImplementor().closeSession();
View Full Code Here

Examples of org.mule.api.model.SessionException

        {
            serializedEncodedSession = Base64.encodeBytes(serializedSession, Base64.DONT_BREAK_LINES);
        }
        catch (IOException e)
        {
            throw new SessionException(MessageFactory.createStaticMessage("Unable to serialize MuleSession"), e);
        }
       
        if (logger.isDebugEnabled())
        {
            logger.debug("Adding serialized and base64-encoded Session header to message: " + serializedEncodedSession);
View Full Code Here

Examples of sis.customize.exception.SessionException

  public void setUrl(String urlString) throws SessionException {
    try {
      this.url = new URL(urlString);
    } catch (MalformedURLException e) {
      log(e);
      throw new SessionException(e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.