Examples of TransactionException


Examples of com.cetsoft.imcache.cache.heap.tx.TransactionException

     */
    public void apply() {
      try {
        committer.doPut(key, value);
      } catch (Exception exception) {
        throw new TransactionException(exception);
      }
    }
View Full Code Here

Examples of com.dbxml.db.core.transaction.TransactionException

         dos.writeByte(EVENT_START);
         dos.writeLong(tx.getID());
         //dos.flush();
      }
      catch ( IOException e ) {
         throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error writing " + file.getName(), e);
      }
   }
View Full Code Here

Examples of com.et.ar.exception.TransactionException

        this.conn = conn;
        try{
            this.conn.setAutoCommit(false);
        }
        catch(SQLException e){
            throw new TransactionException(e);
        }
    }
View Full Code Here

Examples of com.et.ar.exception.TransactionException

                conn.commit();
                conn.close();
            }
        }
        catch(SQLException e){
            throw new TransactionException(e);
        }
    }
View Full Code Here

Examples of com.et.ar.exception.TransactionException

                conn.rollback();
                conn.close();
            }
        }
        catch(SQLException e){
            throw new TransactionException(e);
        }
    }
View Full Code Here

Examples of com.et.ar.exception.TransactionException

                    transaction.beginTransaction();     //增加事务级别
                }
            }
        }
        catch(SQLException e){
            throw new TransactionException(e);
        }
    }
View Full Code Here

Examples of com.hazelcast.transaction.TransactionException

        try {
            Future<Long> f = getNodeEngine().getOperationService().invokeOnPartition(QueueService.SERVICE_NAME, operation, partitionId);
            Long itemId = f.get();
            if (itemId != null) {
                if (!itemIdSet.add(itemId)) {
                    throw new TransactionException("Duplicate itemId: " + itemId);
                }
                offeredQueue.offer(new QueueItem(null, itemId, data));
                tx.addTransactionLog(new QueueTransactionLog(tx.getTxnId(), itemId, name, partitionId, new TxnOfferOperation(name, itemId, data)));
                return true;
            }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.transaction.TransactionException

  public ExternalTransaction(Configuration configuration, DataSource ds, boolean defaultAutoCommit, boolean setAutoCommitAllowed, int isolationLevel) throws TransactionException {
    // Check Parameters
    this.configuration = configuration;
    dataSource = ds;
    if (dataSource == null) {
      throw new TransactionException("ExternalTransaction initialization failed.  DataSource was null.");
    }

    this.defaultAutoCommit = defaultAutoCommit;
    this.setAutoCommitAllowed = setAutoCommitAllowed;
    this.isolationLevel.setIsolationLevel(isolationLevel);
View Full Code Here

Examples of com.im.imjutil.exception.TransactionException

   *
   * @throws TransactionException caso ja estiver ativa.
   */
  public void begin() throws TransactionException {
    if (active) {
      throw new TransactionException("A transacao ja esta ativa");
    }
    this.setActive();
  }
View Full Code Here

Examples of com.ourlinc.swift.exception.TransactionException

  synchronized public <E extends Persistence> PersisterStorage<E> newPersister(Storage storage,
      Class<E> classOf, PodiBase podi) {
    Persister<E> check = getPersister(classOf);
    if (null != check) {
      throw new TransactionException("已有同名的存储器:" + check);
    }

    PersisterStorage<E> persister = new PersisterStorage<E>(storage, MappedAnnotation
        .getInstance(classOf, this, podi), classOf);
    persister.setFlusher(m_Flusher);
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.