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

Java tutorial

Introduction

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

Source

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

/*
 *   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.*;

/*
 *   CFAccXMsgClientSecSessionTable XMsg Client DbIO implementation
 *   for SecSession.
 */
public class CFAccXMsgClientSecSessionTable implements ICFAccSecSessionTable {
    private CFAccXMsgClientSchema schema;

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

    public void createSecSession(CFAccAuthorization Authorization, CFAccSecSessionBuff Buff) {
        final String S_ProcName = "createSecSession";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstCreate("\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) {
            ICFAccSecSessionObj realized = null;
            if (lastObjectProcessed instanceof ICFAccSecSessionObj) {
                realized = (ICFAccSecSessionObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccSecSessionObj");
            }
            if (realized != null) {
                Buff.set(realized.getSecSessionBuff());
            }
        } else {
            throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                    "responseHandler.getLastObjectProcessed()");
        }
    }

    public CFAccSecSessionBuff readDerived(CFAccAuthorization Authorization, CFAccSecSessionPKey PKey) {
        final String S_ProcName = "readDerived";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstRead("\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;
        }
        CFAccSecSessionBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccSecSessionObj realized = null;
            if (lastObjectProcessed instanceof ICFAccSecSessionObj) {
                realized = (ICFAccSecSessionObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccSecSessionObj");
            }
            if (realized != null) {
                buff = realized.getSecSessionBuff();
            }
        }
        return (buff);
    }

    public CFAccSecSessionBuff lockDerived(CFAccAuthorization Authorization, CFAccSecSessionPKey PKey) {
        final String S_ProcName = "lockDerived";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstLock("\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;
        }
        CFAccSecSessionBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccSecSessionObj realized = null;
            if (lastObjectProcessed instanceof ICFAccSecSessionObj) {
                realized = (ICFAccSecSessionObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccSecSessionObj");
            }
            if (realized != null) {
                buff = realized.getSecSessionBuff();
            }
        }
        return (buff);
    }

    public CFAccSecSessionBuff[] readAllDerived(CFAccAuthorization Authorization) {
        final String S_ProcName = "readAllDerived";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadAll("\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<CFAccSecSessionPKey, ICFAccSecSessionObj> sortedMap = (SortedMap<CFAccSecSessionPKey, ICFAccSecSessionObj>) sortedMapObj;
        int sz = sortedMap.size();
        CFAccSecSessionBuff arr[] = new CFAccSecSessionBuff[sz];
        Iterator<ICFAccSecSessionObj> iter = sortedMap.values().iterator();
        ICFAccSecSessionObj cur;
        for (int idx = 0; idx < sz; idx++) {
            cur = (ICFAccSecSessionObj) iter.next();
            arr[idx] = cur.getSecSessionBuff();
        }
        return (arr);
    }

    public CFAccSecSessionBuff readDerivedByIdIdx(CFAccAuthorization Authorization, UUID argSecSessionId) {
        final String S_ProcName = "readDerivedByIdIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadByIdIdx("\n\t\t\t", argSecSessionId)
                + "\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;
        }
        CFAccSecSessionBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccSecSessionObj realized = null;
            if (lastObjectProcessed instanceof ICFAccSecSessionObj) {
                realized = (ICFAccSecSessionObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccSecSessionObj");
            }
            if (realized != null) {
                buff = realized.getSecSessionBuff();
            }
        }
        return (buff);
    }

    public CFAccSecSessionBuff[] readDerivedBySecUserIdx(CFAccAuthorization Authorization, UUID argSecUserId) {
        final String S_ProcName = "readDerivedBySecUserIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadBySecUserIdx("\n\t\t\t", argSecUserId)
                + "\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<CFAccSecSessionPKey, ICFAccSecSessionObj> sortedMap = (SortedMap<CFAccSecSessionPKey, ICFAccSecSessionObj>) sortedMapObj;
        int sz = sortedMap.size();
        CFAccSecSessionBuff arr[] = new CFAccSecSessionBuff[sz];
        Iterator<ICFAccSecSessionObj> iter = sortedMap.values().iterator();
        ICFAccSecSessionObj cur;
        for (int idx = 0; idx < sz; idx++) {
            cur = (ICFAccSecSessionObj) iter.next();
            arr[idx] = cur.getSecSessionBuff();
        }
        return (arr);
    }

    public CFAccSecSessionBuff readDerivedByStartIdx(CFAccAuthorization Authorization, UUID argSecUserId,
            Calendar argStart) {
        final String S_ProcName = "readDerivedByStartIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadByStartIdx("\n\t\t\t", argSecUserId,
                        argStart)
                + "\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;
        }
        CFAccSecSessionBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccSecSessionObj realized = null;
            if (lastObjectProcessed instanceof ICFAccSecSessionObj) {
                realized = (ICFAccSecSessionObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccSecSessionObj");
            }
            if (realized != null) {
                buff = realized.getSecSessionBuff();
            }
        }
        return (buff);
    }

    public CFAccSecSessionBuff[] readDerivedByFinishIdx(CFAccAuthorization Authorization, UUID argSecUserId,
            Calendar argFinish) {
        final String S_ProcName = "readDerivedByFinishIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadByFinishIdx("\n\t\t\t", argSecUserId,
                        argFinish)
                + "\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<CFAccSecSessionPKey, ICFAccSecSessionObj> sortedMap = (SortedMap<CFAccSecSessionPKey, ICFAccSecSessionObj>) sortedMapObj;
        int sz = sortedMap.size();
        CFAccSecSessionBuff arr[] = new CFAccSecSessionBuff[sz];
        Iterator<ICFAccSecSessionObj> iter = sortedMap.values().iterator();
        ICFAccSecSessionObj cur;
        for (int idx = 0; idx < sz; idx++) {
            cur = (ICFAccSecSessionObj) iter.next();
            arr[idx] = cur.getSecSessionBuff();
        }
        return (arr);
    }

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

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

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

    public CFAccSecSessionBuff readBuffByIdIdx(CFAccAuthorization Authorization, UUID argSecSessionId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByIdIdx");
    }

    public CFAccSecSessionBuff[] readBuffBySecUserIdx(CFAccAuthorization Authorization, UUID argSecUserId) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffBySecUserIdx");
    }

    public CFAccSecSessionBuff readBuffByStartIdx(CFAccAuthorization Authorization, UUID argSecUserId,
            Calendar argStart) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByStartIdx");
    }

    public CFAccSecSessionBuff[] readBuffByFinishIdx(CFAccAuthorization Authorization, UUID argSecUserId,
            Calendar argFinish) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByFinishIdx");
    }

    public void updateSecSession(CFAccAuthorization Authorization, CFAccSecSessionBuff Buff) {
        final String S_ProcName = "updateSecSession";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstUpdate("\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;
        }
        CFAccSecSessionBuff buff = null;
        Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
        if (lastObjectProcessed != null) {
            ICFAccSecSessionObj realized = null;
            if (lastObjectProcessed instanceof ICFAccSecSessionObj) {
                realized = (ICFAccSecSessionObj) lastObjectProcessed;
            } else {
                throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                        "lastObjectProcessed", lastObjectProcessed, "ICFAccSecSessionObj");
            }
            if (realized != null) {
                buff = realized.getSecSessionBuff();
            }
        }
        if (buff != null) {
            Buff.set(buff);
        }
    }

    public void deleteSecSession(CFAccAuthorization Authorization, CFAccSecSessionBuff Buff) {
        final String S_ProcName = "deleteSecSession";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstDelete("\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 deleteSecSessionByIdIdx(CFAccAuthorization Authorization, UUID argSecSessionId) {
        final String S_ProcName = "deleteSecSessionByIdIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstDeleteByIdIdx("\n\t\t\t", argSecSessionId)
                + "\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 deleteSecSessionByIdIdx(CFAccAuthorization Authorization, CFAccSecSessionPKey argKey) {
        deleteSecSessionByIdIdx(Authorization, argKey.getRequiredSecSessionId());
    }

    public void deleteSecSessionBySecUserIdx(CFAccAuthorization Authorization, UUID argSecUserId) {
        final String S_ProcName = "deleteSecSessionBySecUserIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstDeleteBySecUserIdx("\n\t\t\t",
                        argSecUserId)
                + "\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 deleteSecSessionBySecUserIdx(CFAccAuthorization Authorization,
            CFAccSecSessionBySecUserIdxKey argKey) {
        deleteSecSessionBySecUserIdx(Authorization, argKey.getRequiredSecUserId());
    }

    public void deleteSecSessionByStartIdx(CFAccAuthorization Authorization, UUID argSecUserId, Calendar argStart) {
        final String S_ProcName = "deleteSecSessionByStartIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
                + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstDeleteByStartIdx("\n\t\t\t", argSecUserId,
                        argStart)
                + "\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 deleteSecSessionByStartIdx(CFAccAuthorization Authorization, CFAccSecSessionByStartIdxKey argKey) {
        deleteSecSessionByStartIdx(Authorization, argKey.getRequiredSecUserId(), argKey.getRequiredStart());
    }

    public void deleteSecSessionByFinishIdx(CFAccAuthorization Authorization, UUID argSecUserId,
            Calendar argFinish) {
        final String S_ProcName = "deleteSecSessionByFinishIdx";
        String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
                + "\n" + "\t" + CFAccXMsgSecSessionMessageFormatter
                        .formatSecSessionRqstDeleteByFinishIdx("\n\t\t\t", argSecUserId, argFinish)
                + "\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 deleteSecSessionByFinishIdx(CFAccAuthorization Authorization,
            CFAccSecSessionByFinishIdxKey argKey) {
        deleteSecSessionByFinishIdx(Authorization, argKey.getRequiredSecUserId(), argKey.getOptionalFinish());
    }

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

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

    public CFAccCursor openSecSessionCursorByFinishIdx(CFAccAuthorization Authorization, UUID argSecUserId,
            Calendar argFinish) {
        throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(),
                "openSecSessionCursorByFinishIdx");
    }

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

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

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

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

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

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

    /**
     *   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");
    }
}