Examples of commit()


Examples of net.fortytwo.ripple.model.ModelConnection.commit()

            specialValues.add(Operator.OP, mc);

            // The nil list also needs to be special, so "nil" is also incidentally a keyword.
            specialValues.add(mc.list(), mc);

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

Examples of net.fortytwo.twitlogic.persistence.TweetStoreConnection.commit()

                PlacePersistenceHelper ph = new PlacePersistenceHelper(pc, client, false);
                for (String id : ids) {
                    Place p = new Place(id);
                    Feature f = pc.persist(p);
                    ph.submit(p, f);
                    c.commit();
                }
            } finally {
                c.rollback();
                c.close();
            }

Examples of net.hasor.db.transaction.TransactionManager.commit()

                tranStatus.setRollbackOnly();
            }
            throw e;
        } finally {
            if (tranStatus != null && !tranStatus.isCompleted()) {
                manager.commit(tranStatus);
            }
        }
    }
}

Examples of net.jini.core.transaction.Transaction.commit()

      } catch(Exception ex) {
        System.out.println("--RMServer- Deleting job service aborted "
                           + ex);
        txn.abort();
      }
      txn.commit();
    } catch(Exception e) {
      System.out.println("--RMServer- Deleting job service aborted "
                         + e);
    }
  }

Examples of net.jini.core.transaction.server.TransactionParticipant.commit()

        //where a final outcome is available.
        Object response = null;
        try {
            par.commit(tr.mgr, tr.id);
            response = new Integer(COMMITTED);
        } catch (TransactionException bte) {
            //The participant doesn't have record of the
            //transaction, so it must have already rolled
            //forward.

Examples of net.rim.blackberry.api.pdap.BlackBerryContact.commit()

            ContactParser parser = ParserFactory.getParserInstance(list, contact, modify);

            parser.parseContact(content);

            contact.commit();

            String uid = contact.getString(BlackBerryContact.UID, 0);

            record.setKey(uid);

Examples of net.rim.blackberry.api.pdap.BlackBerryMemo.commit()

            // Launch screen for user-supplied memo information
            UiApplication.getUiApplication().pushModalScreen(
                    new EditMemoScreen(memo, true));
            try {
                memo.commit();
            } catch (final PIMException e) {
                MemoApiDemo.errorDialog("addNewMemo() threw " + e.toString());
            }
            refresh();
        }

Examples of net.rim.device.api.system.PersistentObject.commit()

          PersistentObject store = PersistentStore.getPersistentObject(GUID);
          if(store.getContents() == null){
            _instance = new CustomMessageStore(GUID);
            synchronized(store){             
              store.setContents(_instance.getInboxMessages());
              store.commit();
            }
          }else{
            _instance = new CustomMessageStore(GUID, (ReadableListImpl)store.getContents());
          }
        }

Examples of net.sf.collabreview.core.Repository.commit()

              int microEditCount = MicroEditCastigator.countMicroEdits(repository, artifact, 3, 300 * 1000, microEditCastigatorInstallTime + surveyPeriod - i * surveyPeriod / slices, surveyPeriod / slices);
              microEditCounts[i] += microEditCount;
              result.append("<td>").append(microEditCount).append("</td>");
            }
            result.append("</tr>\n");
            repository.commit();
          }
          result.append(String.format("<tr><td>Total</td><td>%d</td><td>%d</td>", totalMicroEditsBefore, totalMicroEditsAfter));
          for (int i = 0; i < 2 * slices; i++) {
            result.append("<td>").append(microEditCounts[i]).append("</td>");
          }

Examples of net.sf.collabreview.core.users.AuthorManager.commit()

      addedFiles.removeAll(incrementBySameOwner);
      Author ownerAuthor = authorManager.getAuthor(owner);
      if (ownerAuthor == null) {
        ownerAuthor = authorManager.createAuthor(owner);
        authorManager.storeAuthor(ownerAuthor);
        authorManager.commit();
      }
      if (revision > 1) {
        repository.getArtifact(new ArtifactIdentifier(printPath, revision - 1, "")).setObsoleteDate(newRevisionDate);
      }
      repository.addArtifact(new ArtifactIdentifier(printPath, revision, ""),
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.