Examples of doWork()


Examples of org.hibernate.engine.transaction.IsolatedWork.doWork()

        else {
          Isolater.doNonTransactedWork( work, session );
        }
      }
      else {
        work.doWork( session.getJDBCContext().getConnectionManager().getConnection() );
        session.getJDBCContext().getConnectionManager().afterStatement();
      }
    }
    else {
      // at the very least cleanup the data :)
View Full Code Here

Examples of org.hibernate.engine.transaction.IsolatedWork.doWork()

      else {
        Isolater.doNonTransactedWork( work, session );
      }
    }
    else {
      work.doWork( session.getJDBCContext().getConnectionManager().getConnection() );
      session.getJDBCContext().getConnectionManager().afterStatement();
    }
  }

  protected void dropTemporaryTableIfNecessary(final Queryable persister, final SessionImplementor session) {
View Full Code Here

Examples of org.hibernate.engine.transaction.IsolatedWork.doWork()

        else {
          Isolater.doNonTransactedWork( work, session );
        }
      }
      else {
        work.doWork( session.getJDBCContext().getConnectionManager().getConnection() );
        session.getJDBCContext().getConnectionManager().afterStatement();
      }
    }
    else {
      // at the very least cleanup the data :)
View Full Code Here

Examples of org.hibernate.engine.transaction.IsolatedWork.doWork()

      else {
        Isolater.doNonTransactedWork( work, session );
      }
    }
    else {
      work.doWork( session.getJDBCContext().getConnectionManager().getConnection() );
      session.getJDBCContext().getConnectionManager().afterStatement();
    }
  }

  private static JDBCExceptionReporter.WarningHandler CREATION_WARNING_HANDLER = new JDBCExceptionReporter.WarningHandlerLoggingSupport() {
View Full Code Here

Examples of org.hibernate.engine.transaction.IsolatedWork.doWork()

        else {
          Isolater.doNonTransactedWork( work, session );
        }
      }
      else {
        work.doWork( session.getJDBCContext().getConnectionManager().getConnection() );
        session.getJDBCContext().getConnectionManager().afterStatement();
      }
    }
    else {
      // at the very least cleanup the data :)
View Full Code Here

Examples of org.hibernate.search.FullTextSession.doWork()

  @Test
  public void testBatchSize() throws Exception {
    FullTextSession s = Search.getFullTextSession( openSession() );
    Transaction tx = s.beginTransaction();
    final int loop = 14;
    s.doWork( new Work() {
      @Override
      public void execute(Connection connection) throws SQLException {
        for ( int i = 0; i < loop; i++ ) {
          Statement statmt = connection.createStatement();
            statmt.executeUpdate( "insert into Domain(id, name) values( + "
View Full Code Here

Examples of org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.CrashRecovery.impl.CrashService01.doWork()

      mService.createCrashRecord(mCrashPoint, mCrashType);

      //start transaction  and do work
      startTx();
      mService.setupOper(getUniquePrefix());
      mService.doWork(mMaxIteration);

      ServerIORStore.storeIOR("CrashAbstractRecord", mAtom.get_uid().stringForm());

      commit();
View Full Code Here

Examples of org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.CrashRecovery.impl.CrashService02.doWork()

      CrashService02 mService = new CrashService02(mNumberOfResources, mCrashPoint, mCrashType);

      //start transaction  to check all is ok.
      startTx();
      mService.setupOper(getUniquePrefix());
      mService.doWork(mMaxIteration);
      commit();

      for (int ii = 0; ii < mNumberOfResources; ii++)
      {
        mService.mAbstractRecordList[ii].resetValue();
View Full Code Here

Examples of org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.impl.Service01.doWork()

      getClientThreshold(1);

      Service01 mService = new Service01(mNumberOfResources);
      startTx();
      mService.setupOper(true);
      mService.doWork(mMaxIteration);
      commit();

      //lets go to sleep to see if this helps the vm clean itself up
      qautil.sleep();
View Full Code Here

Examples of org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.impl.Service02.dowork()

      for (int j = 0; j < mNumberOfResources; j++)
      {
        //start transaction
        startTx();
        Service02 mService = new Service02(mNumberOfResources);
        mService.dowork(mMaxIteration);
        expectedCommitted += mMaxIteration / 2;
        expectedRolledback += mMaxIteration / 2;
        expectedNested += mMaxIteration;
        expectedTx += mMaxIteration + 1;
        if (j % 2 == 0)
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.