Package org.dmlite.model.action

Examples of org.dmlite.model.action.EntitiesAction.execute()


      EntitiesAction action = new RemoveAction(session);
      Comments comments = getComments();
      Comment firstComment = (Comment) comments.first();
      action.setEntities(comments);
      action.setEntity(firstComment);
      done = action.execute();
      log.info("Successful Action: " + done);
    } catch (ActionException ae) {
      log.info("Action problem: " + ae.getMessage());
    }
  }
View Full Code Here


      EntitiesAction action = new RemoveAction(session);
      Comments comments = getComments();
      Comment firstComment = (Comment) comments.first();
      action.setEntities(comments);
      action.setEntity(firstComment);
      action.execute();
      undone = action.undo();
      log.info("Undone Action: " + undone);
    } catch (ActionException ae) {
      log.info("Action problem: " + ae.getMessage());
    }
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.