Examples of startTransaction()


Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.startTransaction()

  }

  private <T>T saveAndReloadUniqueFromDB(Object object, String reloadQuery, Class<T> resultType) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(object);
      s.endTransaction();

      s.close();
View Full Code Here

Examples of org.freeplane.core.undo.IUndoHandler.startTransaction()

    if(styleMap == null){
      UITools.errorMessage(TextUtils.getText("no_styles_found_in_map"));
      return;
    }
    final IUndoHandler undoHandler = (IUndoHandler) map.getExtension(IUndoHandler.class);
    undoHandler.startTransaction();
    init();
    SModeController modeController = getModeController();
    modeController.getMapController().newMapView(styleMap);
    Controller controller = modeController.getController();
    Component mapViewComponent = controller.getMapViewManager().getMapViewComponent();
View Full Code Here

Examples of org.freeplane.core.undo.IUndoHandler.startTransaction()

        if(transactionLevel == 0){
            return;
        }
    if(transactionLevel == 1){
        oldUndoHandler.commit();
        newUndoHandler.startTransaction();
        return;
    }
    throw new RuntimeException("can not create map inside transaction");
  }
View Full Code Here

Examples of org.freeplane.core.undo.IUndoHandler.startTransaction()

  @Override
  public void startTransaction() {
    final MapModel map = getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.startTransaction();
  }

  @Override
  public void forceNewTransaction() {
    final MapModel map = getController().getMap();
View Full Code Here

Examples of org.freeplane.features.mode.ModeController.startTransaction()

    final Controller controller = Controller.getCurrentController();
    final MapModel map = controller.getMap();
    final ConditionalStyleModel conditionalStyleModel = getConditionalStyleModel();
    Component pane = createConditionalStylePane(map, conditionalStyleModel);
    final ModeController modeController = Controller.getCurrentModeController();
    modeController.startTransaction();
    try{
      final int confirmed = JOptionPane.showConfirmDialog(controller.getMapViewManager().getMapViewComponent(), pane, TextUtils.getText(TextUtils.removeMnemonic("ManageNodeConditionalStylesAction.text")), JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);
      if(JOptionPane.OK_OPTION == confirmed){
        modeController.commit();
        modeController.getMapController().nodeChanged(controller.getSelection().getSelected(),NodeModel.UNKNOWN_PROPERTY,null,null);
View Full Code Here

Examples of org.freeplane.features.mode.ModeController.startTransaction()

    final TextController textController = TextController.getController();
    if (textController instanceof MTextController) {
      ((MTextController) textController).stopEditing();
    }
    if (textController instanceof MTextController) {
      modeController.startTransaction();
      try {
        ((MTextController) TextController.getController()).stopEditing();
      }
      finally {
        modeController.commit();
View Full Code Here

Examples of org.freeplane.features.mode.mindmapmode.MModeController.startTransaction()

      }
      else {
        nodes.addAll(selection.getSelection());
      }
      final MModeController modeController = (MModeController) Controller.getCurrentModeController();
      modeController.startTransaction();
      for (final NodeModel node : nodes) {
        try {
          if (mode == ExecutionMode.ON_SELECTED_NODE_RECURSIVELY) {
            // TODO: ensure that a script is invoked only once on every node?
            // (might be a problem with recursive actions if parent and child
View Full Code Here

Examples of org.geotools.arcsde.session.ISession.startTransaction()

            public Void execute(ISession session, SeConnection connection) throws SeException,
                    IOException {

                try {
                    session.commitTransaction();
                    session.startTransaction();
                } catch (IOException se) {
                    LOGGER.log(Level.WARNING, se.getMessage(), se);
                    throw se;
                }
                return null;
View Full Code Here

Examples of org.jtester.core.context.TransactionManager.startTransaction()

    @Override
    public void beforeMethodRunning(Object testObject, Method testMethod) {
      boolean isEnabledTransaction = TestedObject.isTransactionsEnabled();
      TransactionManager transaction = TestedObject.getLocalTransactionManager();
      if (isEnabledTransaction && transaction != null) {
        transaction.startTransaction();
      }
    }

    @Override
    public void afterMethodRunned(Object testObject, Method testMethod, Throwable testThrowable) {
View Full Code Here

Examples of org.openntf.domino.Database.startTransaction()

  public static void transactionTest(boolean successOrFail) {
    StringBuilder sb = new StringBuilder();
    Database db = Factory.getSession().getCurrentDatabase();
    Utils.addAllListeners(db);
    DatabaseTransaction txn = db.startTransaction();
    try {
      String selVal = (String) ExtLibUtil.getViewScope().get("selectedState");
      boolean toggle = true;
      int count = 0;
      if ("".equals(selVal)) {
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.