public CFSecurityAuditActionBuff getBuff() {
   if (buff == null) {
     buff =
         ((ICFFreeSwitchSchema) getOrigAsAuditAction().getSchema().getBackingStore())
             .getFactoryAuditAction()
             .newBuff();
     buff.set(orig.getBuff());
   }
   return (buff);
 }
 public ICFSecurityAuditActionObj create() {
   copyPKeyToBuff();
   copyBuffToOrig();
   orig.copyBuffToPKey();
   ICFSecurityAuditActionObj retobj =
       ((ICFFreeSwitchSchemaObj) getOrigAsAuditAction().getSchema())
           .getAuditActionTableObj()
           .createAuditAction(getOrigAsAuditAction());
   if (retobj == getOrigAsAuditAction()) {
     copyOrigToBuff();
   }
   return (retobj);
 }
 public CFFreeSwitchAuditActionEditObj(ICFSecurityAuditActionObj argOrig) {
   orig = argOrig;
   getBuff();
   CFSecurityAuditActionBuff origBuff = orig.getBuff();
   buff.set(origBuff);
 }
 public void setIsNew(boolean value) {
   orig.setIsNew(value);
 }
 public boolean getIsNew() {
   return (orig.getIsNew());
 }
 public void setPKey(CFSecurityAuditActionPKey value) {
   orig.setPKey(value);
   copyPKeyToBuff();
 }
 public CFSecurityAuditActionPKey getPKey() {
   return (orig.getPKey());
 }
 public ICFSecuritySchemaObj getSchema() {
   return (orig.getSchema());
 }
 public void endEdit() {
   orig.endEdit();
 }
 public ICFSecurityAuditActionTableObj getAuditActionTable() {
   return (orig.getSchema().getAuditActionTableObj());
 }
  public void startElement(String uri, String localName, String qName, Attributes attrs)
      throws SAXException {
    CFInternetXMsgSchemaMessageFormatter schemaFormatter = null;
    try {
      // Common XML Attributes
      String attrId = null;
      // Attribute Extraction
      String attrLocalName;
      int numAttrs;
      int idxAttr;
      final String S_ProcName = "startElement";
      final String S_LocalName = "LocalName";

      assert qName.equals("RqstAuditActionReadAll");

      CFInternetXMsgRqstHandler xmsgRqstHandler = (CFInternetXMsgRqstHandler) getParser();
      if (xmsgRqstHandler == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser()");
      }

      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();

      ICFInternetSchemaObj schemaObj = xmsgRqstHandler.getSchemaObj();
      if (schemaObj == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser().getSchemaObj()");
      }

      // Extract Attributes
      numAttrs = attrs.getLength();
      for (idxAttr = 0; idxAttr < numAttrs; idxAttr++) {
        attrLocalName = attrs.getLocalName(idxAttr);
        if (attrLocalName.equals("Id")) {
          if (attrId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrId = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("schemaLocation")) {
          // ignored
        } else {
          throw CFLib.getDefaultExceptionFactory()
              .newUnrecognizedAttributeException(
                  getClass(), S_ProcName, getParser().getLocationInfo(), attrLocalName);
        }
      }

      // Save named attributes to context
      CFLibXmlCoreContext curContext = getParser().getCurContext();
      // Read the objects and prepare the response XML
      List<ICFSecurityAuditActionObj> list =
          schemaObj.getAuditActionTableObj().readAllAuditAction(true);
      String responseOpening =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFInternetXMsgAuditActionMessageFormatter.formatAuditActionRspnListOpenTag();
      xmsgRqstHandler.appendResponse(responseOpening);
      Iterator<ICFSecurityAuditActionObj> iter = list.iterator();
      ICFSecurityAuditActionObj cur;
      String subxml;
      while (iter.hasNext()) {
        cur = iter.next();
        subxml =
            CFInternetXMsgAuditActionMessageFormatter.formatAuditActionRspnDerivedRec(
                "\n\t\t", cur.getAuditActionBuff());
        xmsgRqstHandler.appendResponse(subxml);
      }
      String responseClosing =
          "\n"
              + "\t"
              + CFInternetXMsgAuditActionMessageFormatter.formatAuditActionRspnListCloseTag()
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.appendResponse(responseClosing);
    } catch (RuntimeException e) {
      CFInternetXMsgRqstHandler xmsgRqstHandler = ((CFInternetXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFInternetXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    } catch (Error e) {
      CFInternetXMsgRqstHandler xmsgRqstHandler = ((CFInternetXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFInternetXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    }
  }