public void deleteISOCountryCurrency(ICFSecurityISOCountryCurrencyObj Obj) {
   ICFSecurityISOCountryCurrencyObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountryCurrency()
       .deleteISOCountryCurrency(schema.getAuthorization(), obj.getISOCountryCurrencyBuff());
   obj.forget(true);
 }
 public ICFSecurityISOCountryCurrencyObj updateISOCountryCurrency(
     ICFSecurityISOCountryCurrencyObj Obj) {
   ICFSecurityISOCountryCurrencyObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountryCurrency()
       .updateISOCountryCurrency(schema.getAuthorization(), Obj.getISOCountryCurrencyBuff());
   obj = (ICFSecurityISOCountryCurrencyObj) Obj.realize();
   return (obj);
 }
 public ICFSecurityISOCountryCurrencyObj createISOCountryCurrency(
     ICFSecurityISOCountryCurrencyObj Obj) {
   ICFSecurityISOCountryCurrencyObj obj = Obj;
   CFSecurityISOCountryCurrencyBuff buff = obj.getISOCountryCurrencyBuff();
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountryCurrency()
       .createISOCountryCurrency(schema.getAuthorization(), buff);
   obj.copyBuffToPKey();
   obj = obj.realize();
   return (obj);
 }
  public void startElement(String uri, String localName, String qName, Attributes attrs)
      throws SAXException {
    CFAsteriskXMsgSchemaMessageFormatter 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("RqstISOCountryCurrencyReadAll");

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

      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();

      ICFAsteriskSchemaObj 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<ICFSecurityISOCountryCurrencyObj> list =
          schemaObj.getISOCountryCurrencyTableObj().readAllISOCountryCurrency(true);
      String responseOpening =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFAsteriskXMsgISOCountryCurrencyMessageFormatter
                  .formatISOCountryCurrencyRspnListOpenTag();
      xmsgRqstHandler.appendResponse(responseOpening);
      Iterator<ICFSecurityISOCountryCurrencyObj> iter = list.iterator();
      ICFSecurityISOCountryCurrencyObj cur;
      String subxml;
      while (iter.hasNext()) {
        cur = iter.next();
        subxml =
            CFAsteriskXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRspnDerivedRec(
                "\n\t\t", cur.getISOCountryCurrencyBuff());
        xmsgRqstHandler.appendResponse(subxml);
      }
      String responseClosing =
          "\n"
              + "\t"
              + CFAsteriskXMsgISOCountryCurrencyMessageFormatter
                  .formatISOCountryCurrencyRspnListCloseTag()
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.appendResponse(responseClosing);
    } catch (RuntimeException e) {
      CFAsteriskXMsgRqstHandler xmsgRqstHandler = ((CFAsteriskXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFAsteriskXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    } catch (Error e) {
      CFAsteriskXMsgRqstHandler xmsgRqstHandler = ((CFAsteriskXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFAsteriskXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    }
  }