/**
   * Creates a S_FrameWork_Query_OperationValueObject through the business facade using information
   * in the HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String createS_FrameWork_Query_Operation() throws ProcessingException {
    String sReturnValue = null;

    FrameworkDefaultLogger.debug(
        "Inside S_FrameWork_Query_OperationWorkerBean::createS_FrameWork_Query_Operation");
    ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();

    try {
      // Create the S_FrameWork_Query_OperationValueObject by calling the
      // static createS_FrameWork_Query_Operation method on S_FrameWork_Query_OperationProxy

      this.m_S_FrameWork_Query_OperationValueObject =
          setDefault(
              (S_FrameWork_Query_OperationValueObject)
                  this.m_S_FrameWork_Query_OperationValueObject,
              "CreateEdit",
              "CREATE_S_FrameWork_Query_Operation");

      IS_FrameWork_Query_OperationValueObject valueObject =
          S_FrameWork_Query_OperationProxy.createS_FrameWork_Query_Operation(
              this.m_S_FrameWork_Query_OperationValueObject);

      if (valueObject != null) {
        FrameworkDefaultLogger.debug(
            "S_FrameWork_Query_OperationWorkerBean:createS_FrameWork_Query_Operation() - successfully created S_FrameWork_Query_OperationValueObject - "
                + valueObject.toString());

        // assign the S_FrameWork_Query_OperationValueObject to the ApplicationUSOM
        objectManager.setCurrentS_FrameWork_Query_Operation(valueObject);

        // update the cached usom
        ValueObjectListProxy voList = objectManager.getS_FrameWork_Query_Operations();
        if (voList != null) {
          Collection coll = voList.getDataValues();
          coll.add(valueObject);
          objectManager.setS_FrameWork_Query_Operations(coll);
        }

        // log the action
        PublicFunction.writeSystemLog(
            this.currentUser, new Long(1), valueObject, this.beforeSaveValueObject);
        sReturnValue = loadAllS_FrameWork_Query_Operations();
      }
    } catch (Exception exc) {
      String sErrorMsg = " Inside WorkerBean:createS_FrameWork_Query_Operation() - " + exc;
      FrameworkDefaultLogger.error(sErrorMsg);
      PublicFunction.CustomProcessingException(objectManager, "保存新增记录时出错,请重新操作!", sErrorMsg, exc);
      // throw new
      // ProcessingException("S_FrameWork_Query_OperationWorkerBean:createS_FrameWork_Query_Operation() - " +
      //    sErrorMsg);
    }

    return (sReturnValue);
  }
  /**
   * Loads a S_FrameWork_Query_OperationValueObject through the business facade using information in
   * the HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String loadS_FrameWork_Query_Operation() throws ProcessingException {
    String sReturnValue = null;

    FrameworkDefaultLogger.debug(
        "Inside S_FrameWork_Query_OperationWorkerBean::loadS_FrameWork_Query_Operation");

    ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();
    IS_FrameWork_Query_OperationValueObject valueObject = null;

    try {
      // load the S_FrameWork_Query_OperationValueObject
      S_FrameWork_Query_OperationPrimaryKey primaryKey = getPrimaryKeyFromServletRequest();
      valueObject = S_FrameWork_Query_OperationProxy.getS_FrameWork_Query_Operation(primaryKey);

      if (valueObject != null) {
        FrameworkDefaultLogger.debug(
            "S_FrameWork_Query_OperationWorkerBean:loadS_FrameWork_Query_Operation() - successfully loaded - "
                + valueObject.toString());

        // assign the S_FrameWork_Query_OperationValueObject to the ApplicationUSOM
        objectManager.setCurrentS_FrameWork_Query_Operation(valueObject);

        // write the log
        PublicFunction.writeSystemLog(
            this.currentUser, new Long(5), valueObject, this.beforeSaveValueObject);
      }

    } catch (Exception exc) {
      String sErrorMsg =
          " S_FrameWork_Query_OperationWorkerBean:loadS_FrameWork_Query_Operation() - " + exc;
      FrameworkDefaultLogger.error(sErrorMsg);
      PublicFunction.CustomProcessingException(objectManager, "读取记录时出错,请重新操作!", sErrorMsg, exc);
      throw new ProcessingException(
          "S_FrameWork_Query_OperationWorkerBean:saveS_FrameWork_Query_Operation() - " + sErrorMsg);
    }

    return (sReturnValue);
  }
  /**
   * Saves a S_FrameWork_Query_OperationValueObject through the business facade using information in
   * the HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String saveS_FrameWork_Query_Operation() throws ProcessingException {
    String sReturnValue = null;

    FrameworkDefaultLogger.debug(
        "Inside S_FrameWork_Query_OperationWorkerBean::saveS_FrameWork_Query_Operation");
    ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();

    try {
      // save the S_FrameWork_Query_OperationValueObject
      this.m_S_FrameWork_Query_OperationValueObject =
          setDefault(
              (S_FrameWork_Query_OperationValueObject)
                  this.m_S_FrameWork_Query_OperationValueObject,
              "CreateEdit",
              "save_S_FrameWork_Query_Operation"); // added by wzp
      IS_FrameWork_Query_OperationProxy proxy =
          new S_FrameWork_Query_OperationProxy(this.m_S_FrameWork_Query_OperationValueObject);
      IS_FrameWork_Query_OperationValueObject valueObject = proxy.saveS_FrameWork_Query_Operation();

      if (valueObject != null) {
        FrameworkDefaultLogger.debug(
            "S_FrameWork_Query_OperationWorkerBean:save() - successfully saved S_FrameWork_Query_OperationValueObject - "
                + valueObject.toString());

        // assign the S_FrameWork_Query_OperationValueObject to the ApplicationUSOM
        objectManager.setCurrentS_FrameWork_Query_Operation(valueObject);

        // write the sytem log
        PublicFunction.writeSystemLog(
            this.currentUser, new Long(3), valueObject, this.beforeSaveValueObject);

        // update the cached list
        ValueObjectListProxy voList = objectManager.getS_FrameWork_Query_Operations();
        if (voList != null) {
          Collection coll = voList.getDataValues();
          Iterator tempIterator = coll.iterator();
          ArrayList tmpColl = new ArrayList();
          while (tempIterator.hasNext()) {
            S_FrameWork_Query_OperationValueObject tmpObj =
                (S_FrameWork_Query_OperationValueObject) tempIterator.next();
            if ((tmpObj.getS_FrameWork_Query_OperationPrimaryKey())
                .equals(beforeSaveValueObject.getS_FrameWork_Query_OperationPrimaryKey())) {
              tmpColl.add(valueObject);
            } else {
              tmpColl.add(tmpObj);
            }
          }
          objectManager.setS_FrameWork_Query_Operations(tmpColl);
        }
      }
    } catch (Exception exc) {
      String sErrorMsg =
          " S_FrameWork_Query_OperationWorkerBean:saveS_FrameWork_Query_Operation() - " + exc;
      FrameworkDefaultLogger.error(sErrorMsg);
      PublicFunction.CustomProcessingException(objectManager, "保存记录时出错,请重新操作!", sErrorMsg, exc);
      // throw new
      // ProcessingException("S_FrameWork_Query_OperationWorkerBean:saveS_FrameWork_Query_Operation() - " +
      //    sErrorMsg);
    }

    return (sReturnValue);
  }