Package org.openspp.command

Examples of org.openspp.command.OverallResult


    // process the list of requests
   
    for(BasicUpdateRqstType updateRqst : rqstList){
      SpppCommand command = factory.getUpdateCommand(updateRqst);
     
      OverallResult res = command.execute();
     
      // response has a list List<RqstObjResultCodeType>
      // construct RqstObjResultCodeType and add the result
      RqstObjResultCodeType reqObjResultCode = new RqstObjResultCodeType();
      reqObjResultCode.setCode(res.getResultCode());
      reqObjResultCode.setMsg(res.getStrMessage());
      reqObjResultCode.setRqstObj(updateRqst);
         

      rqstObjResultCodeList.add(reqObjResultCode);
     
      // if the command did not succeed
      if(res.getResultCode().intValue() != CommandResultCodes.REQUESTSUCCEEDED.getResultCode()){
      // if result code not success - flag in overall result
       
        // in case of error should terminate the iterator ?
        break;
      }
View Full Code Here

TOP

Related Classes of org.openspp.command.OverallResult

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.