Package org.hibernate.engine.spi

Examples of org.hibernate.engine.spi.SessionFactoryImplementor.openSession()


      throwLazyInitializationException( "SessionFactory UUID not known to create temporary Session for loading" );
    }

    SessionFactoryImplementor sf = (SessionFactoryImplementor)
        SessionFactoryRegistry.INSTANCE.getSessionFactory( sessionFactoryUuid );
    return (SessionImplementor) sf.openSession();
  }

  protected Boolean readIndexExistence(final Object index) {
    if ( !initialized ) {
      Boolean extraLazyExistenceCheck = withTemporarySessionIfNeeded(
View Full Code Here


      throwLazyInitializationException( "SessionFactory UUID not known to create temporary Session for loading" );
    }

    final SessionFactoryImplementor sf = (SessionFactoryImplementor)
        SessionFactoryRegistry.INSTANCE.getSessionFactory( sessionFactoryUuid );
    return (SessionImplementor) sf.openSession();
  }

  protected Boolean readIndexExistence(final Object index) {
    if ( !initialized ) {
      final Boolean extraLazyExistenceCheck = withTemporarySessionIfNeeded(
View Full Code Here

      throwLazyInitializationException( "SessionFactory UUID not known to create temporary Session for loading" );
    }

    SessionFactoryImplementor sf = (SessionFactoryImplementor)
        SessionFactoryRegistry.INSTANCE.getSessionFactory( sessionFactoryUuid );
    return (SessionImplementor) sf.openSession();
  }

  protected Boolean readIndexExistence(final Object index) {
    if ( !initialized ) {
      Boolean extraLazyExistenceCheck = withTemporarySessionIfNeeded(
View Full Code Here

        throw new LazyInitializationException( "could not initialize proxy - no Session" );
      }
      try {
        SessionFactoryImplementor sf = (SessionFactoryImplementor)
            SessionFactoryRegistry.INSTANCE.getSessionFactory( sessionFactoryUuid );
        SessionImplementor session = (SessionImplementor) sf.openSession();
        session.getPersistenceContext().setDefaultReadOnly( true );
        session.setFlushMode( FlushMode.MANUAL );

        boolean isJTA = session.getTransactionCoordinator()
            .getTransactionContext().getTransactionEnvironment()
View Full Code Here

      throwLazyInitializationException( "SessionFactory UUID not known to create temporary Session for loading" );
    }

    SessionFactoryImplementor sf = (SessionFactoryImplementor)
        SessionFactoryRegistry.INSTANCE.getSessionFactory( sessionFactoryUuid );
    final SessionImplementor session = (SessionImplementor) sf.openSession();
    session.getPersistenceContext().setDefaultReadOnly( true );
    session.setFlushMode( FlushMode.MANUAL );
    return session;
  }
View Full Code Here

      throwLazyInitializationException( "SessionFactory UUID not known to create temporary Session for loading" );
    }

    SessionFactoryImplementor sf = (SessionFactoryImplementor)
        SessionFactoryRegistry.INSTANCE.getSessionFactory( sessionFactoryUuid );
    return (SessionImplementor) sf.openSession();
  }

  protected Boolean readIndexExistence(final Object index) {
    if ( !initialized ) {
      Boolean extraLazyExistenceCheck = withTemporarySessionIfNeeded(
View Full Code Here

        throw new LazyInitializationException( "could not initialize proxy - no Session" );
      }
      try {
        SessionFactoryImplementor sf = (SessionFactoryImplementor)
            SessionFactoryRegistry.INSTANCE.getSessionFactory( sessionFactoryUuid );
        SessionImplementor session = (SessionImplementor) sf.openSession();

        try {
          target = session.immediateLoad( entityName, id );
        }
        finally {
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.