net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientContactTable.java Source code

Java tutorial

Introduction

Here is the source code for net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientContactTable.java

Source

// Description: Java 7 XMsg Client DbIO implementation for Contact.

/*
 *   MSS Code Factory Accounting Business Application Model
 *
 *   Copyright (c) 2014 Mark Sobkow
 *   
 *   This program is available as free software under the GNU GPL v3, or
 *   under a commercial license from Mark Sobkow.  For commercial licensing
 *   details, please contact msobkow@sasktel.net.
 *   
 *   Under the terms of the GPL:
 *   
 *      This program is free software: you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation, either version 3 of the License, or
 *      (at your option) any later version.
 *     
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *     
 *      You should have received a copy of the GNU General Public License
 *      along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *   
 *      This source code incorporates modified modules originally licensed
 *      under the Apache 2.0 license by MSS Code Factory including CFSecurity
 *      (net-sourceforge-msscodefactory-2.0-cfsecurity.xml),
 *      CFInternet (net-sourceforge-msscodefactory-2.0-cfinternet.xml), and
 *      CFCrm 2.0 (net-sourceforge-msscodefactory-2.0-cfcrm.xml), with all of the
 *      required models being available as part of the MSS Code Factory 1.11
 *      distribution source and install zips.
 *   
 *      You can download installations of MSS Code Factory 1.11 from
 *      http://msscodefactory.sourceforge.net/
 *   
 * ***********************************************************************
 *
 *   Code manufactured by MSS Code Factory
 */

package net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient;

import java.math.*;
import java.sql.*;
import java.text.*;
import java.util.*;
import net.sourceforge.msscodefactory.cflib.v1_11.CFLib.*;
import org.apache.commons.codec.binary.Base64;
import net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.*;
import net.sourceforge.msscodefactory.cfacc.v2_0.CFAccObj.*;
import net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsg.*;
import net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgRspnHandler.*;

/*
 *   CFAccXMsgClientContactTable XMsg Client DbIO implementation
 *   for Contact.
 */
public class CFAccXMsgClientContactTable implements ICFAccContactTable {
    private CFAccXMsgClientSchema schema;

    public CFAccXMsgClientContactTable(CFAccXMsgClientSchema argSchema) {
        schema = argSchema;
    }

    public void createContact(CFAccAuthorization Authorization, CFAccContactBuff Buff) {
        final String S_ProcName = "createContact";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstCreate("\n\t\t\t", Buff) + "\n"
                + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccContactObj realized = null;
            if (lastObjectProcessed instanceof ICFAccContactObj) {
                realized = (ICFAccContactObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccContactObj");
            }
            if (realized != null) {
                Buff.set(realized.getContactBuff());
            }
        } else {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                    "responseHandler.getLastObjectProcessed()");
        }
    }

    public CFAccContactBuff readDerived(CFAccAuthorization Authorization, CFAccContactPKey PKey) {
        final String S_ProcName = "readDerived";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstRead("\n\t\t\t", PKey) + "\n"
                + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        CFAccContactBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccContactObj realized = null;
            if (lastObjectProcessed instanceof ICFAccContactObj) {
                realized = (ICFAccContactObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccContactObj");
            }
            if (realized != null) {
                buff = realized.getContactBuff();
            }
        }
        return (buff);
    }

    public CFAccContactBuff lockDerived(CFAccAuthorization Authorization, CFAccContactPKey PKey) {
        final String S_ProcName = "lockDerived";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstLock("\n\t\t\t", PKey) + "\n"
                + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        CFAccContactBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccContactObj realized = null;
            if (lastObjectProcessed instanceof ICFAccContactObj) {
                realized = (ICFAccContactObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccContactObj");
            }
            if (realized != null) {
                buff = realized.getContactBuff();
            }
        }
        return (buff);
    }

    public CFAccContactBuff[] readAllDerived(CFAccAuthorization Authorization) {
        final String S_ProcName = "readAllDerived";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstReadAll("\n\t\t\t") + "\n"
                + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        Object sortedMapObj = responseHandler.getSortedMapOfObjects();
        if (sortedMapObj == null) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                    "responseHandler.getSortedMapOfObjects");
        }
        SortedMap<CFAccContactPKey, ICFAccContactObj> sortedMap = (SortedMap<CFAccContactPKey, ICFAccContactObj>) sortedMapObj;
        int sz = sortedMap.size();
        CFAccContactBuff arr[] = new CFAccContactBuff[sz];
        Iterator<ICFAccContactObj> iter = sortedMap.values().iterator();
        ICFAccContactObj cur;
        for (int idx = 0; idx < sz; idx++) {
            cur = (ICFAccContactObj) iter.next();
            arr[idx] = cur.getContactBuff();
        }
        return (arr);
    }

    public CFAccContactBuff readDerivedByIdIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactId) {
        final String S_ProcName = "readDerivedByIdIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
                + "\n" + "\t" + CFAccXMsgContactMessageFormatter.formatContactRqstReadByIdIdx("\n\t\t\t",
                        argTenantId, argContactId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        CFAccContactBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccContactObj realized = null;
            if (lastObjectProcessed instanceof ICFAccContactObj) {
                realized = (ICFAccContactObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccContactObj");
            }
            if (realized != null) {
                buff = realized.getContactBuff();
            }
        }
        return (buff);
    }

    public CFAccContactBuff[] readDerivedByContTentIdx(CFAccAuthorization Authorization, long argTenantId) {
        final String S_ProcName = "readDerivedByContTentIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstReadByContTentIdx("\n\t\t\t", argTenantId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        Object sortedMapObj = responseHandler.getSortedMapOfObjects();
        if (sortedMapObj == null) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                    "responseHandler.getSortedMapOfObjects");
        }
        SortedMap<CFAccContactPKey, ICFAccContactObj> sortedMap = (SortedMap<CFAccContactPKey, ICFAccContactObj>) sortedMapObj;
        int sz = sortedMap.size();
        CFAccContactBuff arr[] = new CFAccContactBuff[sz];
        Iterator<ICFAccContactObj> iter = sortedMap.values().iterator();
        ICFAccContactObj cur;
        for (int idx = 0; idx < sz; idx++) {
            cur = (ICFAccContactObj) iter.next();
            arr[idx] = cur.getContactBuff();
        }
        return (arr);
    }

    public CFAccContactBuff[] readDerivedByContListIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactListId) {
        final String S_ProcName = "readDerivedByContListIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
                + "\n" + "\t" + CFAccXMsgContactMessageFormatter.formatContactRqstReadByContListIdx("\n\t\t\t",
                        argTenantId, argContactListId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        Object sortedMapObj = responseHandler.getSortedMapOfObjects();
        if (sortedMapObj == null) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                    "responseHandler.getSortedMapOfObjects");
        }
        SortedMap<CFAccContactPKey, ICFAccContactObj> sortedMap = (SortedMap<CFAccContactPKey, ICFAccContactObj>) sortedMapObj;
        int sz = sortedMap.size();
        CFAccContactBuff arr[] = new CFAccContactBuff[sz];
        Iterator<ICFAccContactObj> iter = sortedMap.values().iterator();
        ICFAccContactObj cur;
        for (int idx = 0; idx < sz; idx++) {
            cur = (ICFAccContactObj) iter.next();
            arr[idx] = cur.getContactBuff();
        }
        return (arr);
    }

    public CFAccContactBuff readDerivedByFullNameIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactListId, String argFullName) {
        final String S_ProcName = "readDerivedByFullNameIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstReadByFullNameIdx("\n\t\t\t", argTenantId,
                        argContactListId, argFullName)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        CFAccContactBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccContactObj realized = null;
            if (lastObjectProcessed instanceof ICFAccContactObj) {
                realized = (ICFAccContactObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccContactObj");
            }
            if (realized != null) {
                buff = realized.getContactBuff();
            }
        }
        return (buff);
    }

    public CFAccContactBuff[] readDerivedByTimezoneIdx(CFAccAuthorization Authorization, Short argISOTimezoneId) {
        final String S_ProcName = "readDerivedByTimezoneIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstReadByTimezoneIdx("\n\t\t\t", argISOTimezoneId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        Object sortedMapObj = responseHandler.getSortedMapOfObjects();
        if (sortedMapObj == null) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                    "responseHandler.getSortedMapOfObjects");
        }
        SortedMap<CFAccContactPKey, ICFAccContactObj> sortedMap = (SortedMap<CFAccContactPKey, ICFAccContactObj>) sortedMapObj;
        int sz = sortedMap.size();
        CFAccContactBuff arr[] = new CFAccContactBuff[sz];
        Iterator<ICFAccContactObj> iter = sortedMap.values().iterator();
        ICFAccContactObj cur;
        for (int idx = 0; idx < sz; idx++) {
            cur = (ICFAccContactObj) iter.next();
            arr[idx] = cur.getContactBuff();
        }
        return (arr);
    }

    public CFAccContactBuff readBuff(CFAccAuthorization Authorization, CFAccContactPKey PKey) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuff");
    }

    public CFAccContactBuff lockBuff(CFAccAuthorization Authorization, CFAccContactPKey PKey) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lockBuff");
    }

    public CFAccContactBuff[] readAllBuff(CFAccAuthorization Authorization) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readAllBuff");
    }

    public CFAccContactBuff readBuffByIdIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByIdIdx");
    }

    public CFAccContactBuff[] readBuffByContTentIdx(CFAccAuthorization Authorization, long argTenantId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByContTentIdx");
    }

    public CFAccContactBuff[] readBuffByContListIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactListId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByContListIdx");
    }

    public CFAccContactBuff readBuffByFullNameIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactListId, String argFullName) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByFullNameIdx");
    }

    public CFAccContactBuff[] readBuffByTimezoneIdx(CFAccAuthorization Authorization, Short argISOTimezoneId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByTimezoneIdx");
    }

    public void updateContact(CFAccAuthorization Authorization, CFAccContactBuff Buff) {
        final String S_ProcName = "updateContact";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstUpdate("\n\t\t\t", Buff) + "\n"
                + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        CFAccContactBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccContactObj realized = null;
            if (lastObjectProcessed instanceof ICFAccContactObj) {
                realized = (ICFAccContactObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccContactObj");
            }
            if (realized != null) {
                buff = realized.getContactBuff();
            }
        }
        if (buff != null) {
            Buff.set(buff);
        }
    }

    public void deleteContact(CFAccAuthorization Authorization, CFAccContactBuff Buff) {
        final String S_ProcName = "deleteContact";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstDelete("\n\t\t\t", Buff) + "\n"
                + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        boolean deleted = responseHandler.getDeleted();
        if (!deleted) {
            throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                    "Server did not respond with a Deleted message");
        }
    }

    public void deleteContactByIdIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) {
        final String S_ProcName = "deleteContactByIdIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
                + "\n" + "\t" + CFAccXMsgContactMessageFormatter.formatContactRqstDeleteByIdIdx("\n\t\t\t",
                        argTenantId, argContactId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        boolean deleted = responseHandler.getDeleted();
        if (!deleted) {
            throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                    "Server did not respond with a Deleted message");
        }
    }

    public void deleteContactByIdIdx(CFAccAuthorization Authorization, CFAccContactPKey argKey) {
        deleteContactByIdIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredContactId());
    }

    public void deleteContactByContTentIdx(CFAccAuthorization Authorization, long argTenantId) {
        final String S_ProcName = "deleteContactByContTentIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstDeleteByContTentIdx("\n\t\t\t", argTenantId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        boolean deleted = responseHandler.getDeleted();
        if (!deleted) {
            throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                    "Server did not respond with a Deleted message");
        }
    }

    public void deleteContactByContTentIdx(CFAccAuthorization Authorization, CFAccContactByContTentIdxKey argKey) {
        deleteContactByContTentIdx(Authorization, argKey.getRequiredTenantId());
    }

    public void deleteContactByContListIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactListId) {
        final String S_ProcName = "deleteContactByContListIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
                + "\n" + "\t" + CFAccXMsgContactMessageFormatter.formatContactRqstDeleteByContListIdx("\n\t\t\t",
                        argTenantId, argContactListId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        boolean deleted = responseHandler.getDeleted();
        if (!deleted) {
            throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                    "Server did not respond with a Deleted message");
        }
    }

    public void deleteContactByContListIdx(CFAccAuthorization Authorization, CFAccContactByContListIdxKey argKey) {
        deleteContactByContListIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredContactListId());
    }

    public void deleteContactByFullNameIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactListId, String argFullName) {
        final String S_ProcName = "deleteContactByFullNameIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstDeleteByFullNameIdx("\n\t\t\t", argTenantId,
                        argContactListId, argFullName)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        boolean deleted = responseHandler.getDeleted();
        if (!deleted) {
            throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                    "Server did not respond with a Deleted message");
        }
    }

    public void deleteContactByFullNameIdx(CFAccAuthorization Authorization, CFAccContactByFullNameIdxKey argKey) {
        deleteContactByFullNameIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredContactListId(),
                argKey.getRequiredFullName());
    }

    public void deleteContactByTimezoneIdx(CFAccAuthorization Authorization, Short argISOTimezoneId) {
        final String S_ProcName = "deleteContactByTimezoneIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgContactMessageFormatter.formatContactRqstDeleteByTimezoneIdx("\n\t\t\t",
                        argISOTimezoneId)
                + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
        String rspn = schema.sendReceive(Authorization, rqst);
        if ((rspn == null) || (rspn.length() <= 0)) {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
        }
        CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler();
        responseHandler.parseStringContents(rspn);
        CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
        if (exceptionRaised != null) {
            throw exceptionRaised;
        }
        boolean deleted = responseHandler.getDeleted();
        if (!deleted) {
            throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                    "Server did not respond with a Deleted message");
        }
    }

    public void deleteContactByTimezoneIdx(CFAccAuthorization Authorization, CFAccContactByTimezoneIdxKey argKey) {
        deleteContactByTimezoneIdx(Authorization, argKey.getOptionalISOTimezoneId());
    }

    public CFAccCursor openContactCursorAll(CFAccAuthorization Authorization) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openContactCursorAll");
    }

    public CFAccCursor openContactCursorByContTentIdx(CFAccAuthorization Authorization, long argTenantId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(),
                "openContactCursorByContTentIdx");
    }

    public CFAccCursor openContactCursorByContListIdx(CFAccAuthorization Authorization, long argTenantId,
            long argContactListId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(),
                "openContactCursorByContListIdx");
    }

    public CFAccCursor openContactCursorByTimezoneIdx(CFAccAuthorization Authorization, Short argISOTimezoneId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(),
                "openContactCursorByTimezoneIdx");
    }

    public void closeContactCursor(CFAccCursor Cursor) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "closeContactCursor");
    }

    public CFAccContactBuff nextContactCursor(CFAccCursor Cursor) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "next$Tablename$Cursor");
    }

    public CFAccContactBuff prevContactCursor(CFAccCursor Cursor) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "prevContactCursor");
    }

    public CFAccContactBuff firstContactCursor(CFAccCursor Cursor) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "firstContactCursor");
    }

    public CFAccContactBuff lastContactCursor(CFAccCursor Cursor) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lastContactCursor");
    }

    public CFAccContactBuff nthContactCursor(CFAccCursor Cursor, int Idx) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "nthContactCursor");
    }

    /**
     *   Release the prepared statements.
     *   <p>
     *   When the schema changes connections, the prepared statements
     *   have to be released because they contain connection-specific
     *   information for most databases.
     */
    public void releasePreparedStatements() {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "releasePreparedStatements");
    }
}