Package er.rest.util

Examples of er.rest.util.ERXRestTransactionRequestAdaptor


   *
   * @return an EOEditingContext
   */
  public EOEditingContext editingContext() {
    if (_editingContext == null) {
      ERXRestTransactionRequestAdaptor transactionAdaptor = ERXRestTransactionRequestAdaptor.defaultAdaptor();
      if (transactionAdaptor.transactionsEnabled() && transactionAdaptor.isExecutingTransaction(context(), request())) {
        _editingContext = newEditingContext(transactionAdaptor.executingTransaction(context(), request()).editingContext());
      }
      else {
        _editingContext = newEditingContext();
      }
    }
View Full Code Here


   */
  public WOActionResults performActionNamed(String actionName, boolean throwExceptions) throws RuntimeException {
    WOActionResults results = null;
   
    try {
      ERXRestTransactionRequestAdaptor transactionAdaptor = ERXRestTransactionRequestAdaptor.defaultAdaptor();
      if (transactionAdaptor.transactionsEnabled() && !transactionAdaptor.isExecutingTransaction(context(), request())) {
        if (!transactionAdaptor.willHandleRequest(context(), request())) {
          if (transactionAdaptor.didHandleRequest(context(), request())) {
            results = stringResponse("Transaction request enqueued.");
          }
          else {
            results = stringResponse("Transaction executed.");
          }
View Full Code Here

TOP

Related Classes of er.rest.util.ERXRestTransactionRequestAdaptor

Copyright © 2018 www.massapicom. 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.