Package javax.transaction

Examples of javax.transaction.NotSupportedException


    */
   public void begin() throws NotSupportedException, SystemException
   {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
         throw new NotSupportedException(Thread.currentThread() +
               " is already associated with a transaction (" + currentTx + ")");
      DummyTransaction tx = new DummyTransaction(this);
      setTransaction(tx);
   }
View Full Code Here


    */
   @Override
   public void begin() throws NotSupportedException, SystemException {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
         throw new NotSupportedException(Thread.currentThread() +
               " is already associated with a transaction (" + currentTx + ")");
      DummyTransaction tx = new DummyTransaction(this);
      setTransaction(tx);
   }
View Full Code Here

      {
        checkTransactionState();
      }
      catch (IllegalStateException e1)
      {
                NotSupportedException notSupportedException = new NotSupportedException(e1.getMessage());
                notSupportedException.initCause(e1);
        throw notSupportedException;
      }
      catch (org.omg.CORBA.SystemException e2)
      {
                javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString());
                systemException.initCause(e2);
        throw systemException;
      }
    }

    try
    {
      TransactionImple.putTransaction(new TransactionImple());
    }
    catch (org.omg.CosTransactions.SubtransactionsUnavailable e3)
    {
      // shouldn't happen if we get here from the previous checks!

            NotSupportedException notSupportedException = new NotSupportedException(e3.getMessage());
            notSupportedException.initCause(e3);
            throw notSupportedException;
    }
    catch (org.omg.CORBA.SystemException e4)
    {
            javax.transaction.SystemException systemException = new javax.transaction.SystemException(e4.toString());
View Full Code Here

    *          If the transaction service fails in an unexpected way.
    */
   public void begin() throws NotSupportedException, SystemException {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
         throw new NotSupportedException(Thread.currentThread() +
               " is already associated with a transaction (" + currentTx + ")");
      DummyTransaction tx = new DummyTransaction(this);
      setTransaction(tx);
   }
View Full Code Here

    public void begin()
        throws NotSupportedException, SystemException {
       
        Transaction currentTransaction = getTransaction();
        if (currentTransaction != null)
            throw new NotSupportedException();
       
        currentTransaction = new SlideTransaction(this);
        bindings.put(Thread.currentThread(), currentTransaction);
       
        if (logger.isEnabled(LOG_CHANNEL, Logger.DEBUG)) {
View Full Code Here

    */
   @Override
   public void begin() throws NotSupportedException, SystemException {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
         throw new NotSupportedException(Thread.currentThread() +
               " is already associated with a transaction (" + currentTx + ")");
      DummyTransaction tx = new DummyTransaction(this);
      setTransaction(tx);
   }
View Full Code Here

   public void begin() throws NotSupportedException, SystemException
   {
      Transaction currentTx;
      if ((currentTx = getTransaction()) != null)
      {
         throw new NotSupportedException(Thread.currentThread() +
                 " is already associated with a transaction (" + currentTx + ")");
      }
      AsyncRollbackTransaction tx = new AsyncRollbackTransaction(this, timeout);
      setTransaction(tx);
      txMap.put(tx.generateTransactionId(), tx);
View Full Code Here

    bindings.add(attributeName);
   
    String useImprovedContentCategorySearch = CmsPropertyHandler.getUseImprovedContentCategorySearch();
    if(useImprovedContentCategorySearch != null && useImprovedContentCategorySearch.equalsIgnoreCase("false"))
    {
      throw new NotSupportedException("Not in searches are not supported in the old category search - use the new one (application settings).");
    }
    else
    {
      String categoryClause = ExtendedSearchController.useFull() ? CATEGORY_NOT_SET_CLAUSE_GENERAL : CATEGORY_NOT_SET_CLAUSE_GENERAL_SHORT;
      return MessageFormat.format(categoryClause, new Object[] { nameVariable });
View Full Code Here

        else {

            String tid = getThreadMapping ();
            if ( tid != null ) {
                // error: no nested txs supported
                throw new NotSupportedException (
                        "Nested transaction not allowed here" );
            }

            try {
                tid = txmgrServer_.begin ( timeout_ );
View Full Code Here

      {
        checkTransactionState();
      }
      catch (IllegalStateException e1)
      {
                NotSupportedException notSupportedException = new NotSupportedException(e1.getMessage());
                notSupportedException.initCause(e1);
                throw notSupportedException;
      }
      catch (Exception e2)
      {
                javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString());
View Full Code Here

TOP

Related Classes of javax.transaction.NotSupportedException

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.