Package com.sleepycat.je

Examples of com.sleepycat.je.Transaction.abort()


                        if (txn != null) {
                            txn.commit();
                        }
                    } else {
                        if (txn != null) {
                            txn.abort();
                        }
                    }
                }
            }
            if (secIndex == null) {
View Full Code Here


            }
            if (txn != null) {
                if (nWritten > 0) {
                    txn.commit();
                } else {
                    txn.abort();
                }
            }
        }
    }
View Full Code Here

        }
        transaction.commit();
      }
      catch (RuntimeException e)
      {
        transaction.abort();
        throw e;
      }
    }
    finally
    {
View Full Code Here

        }
        cursor.close();
        txn.commit();
      } catch (DatabaseException e) {
        if(txn != null) {
          txn.abort();
        }
        e.printStackTrace();
      }
    } catch (DatabaseException e) {
      e.printStackTrace();
View Full Code Here

         if (trace) log.tracef("%s sleepycat transaction %s", commit ? "committing" : "aborting", txn);
         try {
            if (commit)
               txn.commit();
            else
               txn.abort();
         } catch (Exception caught) {
            throw convertToCacheLoaderException("Problem completing transaction", caught);
         }
      } else {
         if (trace) log.tracef("no sleepycat transaction associated  transaction %s", tx);
View Full Code Here

          try {
            dataBinding.objectToEntry(cache, data);
            dbMain.put(tran, key, data);
            tran.commit();
          } catch (Exception e) {
            tran.abort();
            throw e;
          }
        }
      }
    }
View Full Code Here

        } finally {
          cursor.close();
        }
        tran.commit();
      } catch (Exception e) {
        tran.abort();
        throw e;
      }
    }
  }
View Full Code Here

        } finally {
          cursor.close();
        }
        tran.commit();
      } catch (Exception e) {
        tran.abort();
        throw e;
      }
    }
  }
View Full Code Here

        } finally {
          cursor.close();
        }
        tran.commit();
      } catch (Exception e) {
        tran.abort();
        throw e;
      }
    }
  }
View Full Code Here

                        null);
                try {
                    createLayer(layerName, transaction);
                    transaction.commit();
                } catch (RuntimeException e) {
                    transaction.abort();
                }
                return null;
            }
        });
    }
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.