Examples of Commit()


Examples of com.caucho.db.xa.DbTransaction.commit()

   
    DbTransaction xa = _xa;
    _xa = null;
   
    if (xa != null)
      xa.commit();
  }

  public void rollback()
    throws SQLException
  {

Examples of com.caucho.db.xa.Transaction.commit()

            log.log(Level.WARNING, e.toString(), e);
          }
        }
      }
    } finally {
      xa.commit();
    }
  }

  /**
   * Rebuilds the indexes

Examples of com.cetsoft.imcache.cache.heap.tx.Transaction.commit()

    Transaction transaction1 = CacheTransaction.get();
    transaction1.begin();
    try {
      cache.put(3, 5);
      cache.put(10, 14);
      transaction1.commit();
    } catch (TransactionException exception) {
      transaction1.rollback();
    } finally {
      transaction1.close();
    }

Examples of com.cloud.utils.db.Transaction.commit()

                if (upgradeVersion) {
                    VersionVO version = new VersionVO(upgrade.getUpgradedVersion());
                    _dao.persist(version);
                }

                txn.commit();
            } finally {
                txn.close();
            }
        }

Examples of com.cloud.utils.db.TransactionLegacy.commit()

                if (upgradeVersion) {
                    VersionVO version = new VersionVO(upgrade.getUpgradedVersion());
                    _dao.persist(version);
                }

                txn.commit();
            } catch (CloudRuntimeException e) {
                s_logger.error("Unable to upgrade the database", e);
                throw new CloudRuntimeException("Unable to upgrade the database", e);
            } finally {
                txn.close();

Examples of com.complexible.stardog.api.Connection.commit()

    Connection connection = dataSource.getConnection();
   
    try {
      connection.begin();
      T t =  action.doWithConnection(connection);
      connection.commit();
      return t;
    } catch (StardogException e) {
      log.error("Error executing ConnectionCallback", e);
      throw new RuntimeException(e);
    } finally {

Examples of com.conexao.Transacao.commit()

                System.out.println(rs.getString("nome"));
                System.out.println(rs.getString("caminho"));
                System.out.println(rs.getString("img"));
                System.out.println("******************************");
            }
            t.commit();

        }catch(Exception ex){           
            ex.printStackTrace();
            t.rollback();
        }

Examples of com.cosmo.data.DataAgent.commit()

               "    usrlogoncount = usrlogoncount + 1 " +
               "WHERE Lower(usrlogin) = '" + login.trim().toLowerCase() + "'";
         conn.execute(sql);

         // Confirma los cambios en la bbdd
         if (!conn.isAutoCommit()) conn.commit();
      }
      catch (SQLException ex)
      {
         throw new AuthenticationException(ex.getMessage(), ex);
      }

Examples of com.db4o.ObjectContainer.commit()

      List<Counter> counterSet = fObjectContainer.query(Counter.class);
      Counter counter = counterSet.iterator().next();
      fObjectContainer.activate(counter, Integer.MAX_VALUE);
      db.ext().set(counter, Integer.MAX_VALUE);

      db.commit();
  }

  private Configuration createConfiguration() {
    Configuration config = Db4o.newConfiguration();
    //TODO We can use dbExists to configure our parameters for a more

Examples of com.dbxml.db.core.transaction.Transaction.commit()

            throw new CompilationException(e);
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE ) {
            try {
               tx.commit();
            }
            catch ( DBException e ) {
               e.printStackTrace(System.err);
            }
         }
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.