Java tutorial
// Description: Java 7 XMsg Client DbIO implementation for AccountConfig. /* * 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.*; /* * CFAccXMsgClientAccountConfigTable XMsg Client DbIO implementation * for AccountConfig. */ public class CFAccXMsgClientAccountConfigTable implements ICFAccAccountConfigTable { private CFAccXMsgClientSchema schema; public CFAccXMsgClientAccountConfigTable(CFAccXMsgClientSchema argSchema) { schema = argSchema; } public void createAccountConfig(CFAccAuthorization Authorization, CFAccAccountConfigBuff Buff) { final String S_ProcName = "createAccountConfig"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstCreate("\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) { ICFAccAccountConfigObj realized = null; if (lastObjectProcessed instanceof ICFAccAccountConfigObj) { realized = (ICFAccAccountConfigObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccAccountConfigObj"); } if (realized != null) { Buff.set(realized.getAccountConfigBuff()); } } else { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getLastObjectProcessed()"); } } public CFAccAccountConfigBuff readDerived(CFAccAuthorization Authorization, CFAccAccountConfigPKey PKey) { final String S_ProcName = "readDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstRead("\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; } CFAccAccountConfigBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccAccountConfigObj realized = null; if (lastObjectProcessed instanceof ICFAccAccountConfigObj) { realized = (ICFAccAccountConfigObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccAccountConfigObj"); } if (realized != null) { buff = realized.getAccountConfigBuff(); } } return (buff); } public CFAccAccountConfigBuff lockDerived(CFAccAuthorization Authorization, CFAccAccountConfigPKey PKey) { final String S_ProcName = "lockDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstLock("\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; } CFAccAccountConfigBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccAccountConfigObj realized = null; if (lastObjectProcessed instanceof ICFAccAccountConfigObj) { realized = (ICFAccAccountConfigObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccAccountConfigObj"); } if (realized != null) { buff = realized.getAccountConfigBuff(); } } return (buff); } public CFAccAccountConfigBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadAll("\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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); } public CFAccAccountConfigBuff readDerivedByIdIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByIdIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadByIdIdx("\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; } CFAccAccountConfigBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccAccountConfigObj realized = null; if (lastObjectProcessed instanceof ICFAccAccountConfigObj) { realized = (ICFAccAccountConfigObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccAccountConfigObj"); } if (realized != null) { buff = realized.getAccountConfigBuff(); } } return (buff); } public CFAccAccountConfigBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadByTenantIdx("\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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); } public CFAccAccountConfigBuff[] readDerivedByDefCcyIdx(CFAccAuthorization Authorization, short argDefaultCurrencyId) { final String S_ProcName = "readDerivedByDefCcyIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter .formatAccountConfigRqstReadByDefCcyIdx("\n\t\t\t", argDefaultCurrencyId) + "\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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); } public CFAccAccountConfigBuff[] readDerivedByCustCtcLstIdx(CFAccAuthorization Authorization, Long argCustContactListTenantId, Long argCustContactListId) { final String S_ProcName = "readDerivedByCustCtcLstIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadByCustCtcLstIdx("\n\t\t\t", argCustContactListTenantId, argCustContactListId) + "\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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); } public CFAccAccountConfigBuff[] readDerivedByEmpCtcLstIdx(CFAccAuthorization Authorization, Long argEmpContactListTenantId, Long argEmpContactListId) { final String S_ProcName = "readDerivedByEmpCtcLstIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadByEmpCtcLstIdx("\n\t\t\t", argEmpContactListTenantId, argEmpContactListId) + "\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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); } public CFAccAccountConfigBuff[] readDerivedByVendCtcLstIdx(CFAccAuthorization Authorization, Long argVendContactListTenantId, Long argVendContactListId) { final String S_ProcName = "readDerivedByVendCtcLstIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstReadByVendCtcLstIdx("\n\t\t\t", argVendContactListTenantId, argVendContactListId) + "\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<CFAccAccountConfigPKey, ICFAccAccountConfigObj> sortedMap = (SortedMap<CFAccAccountConfigPKey, ICFAccAccountConfigObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAccountConfigBuff arr[] = new CFAccAccountConfigBuff[sz]; Iterator<ICFAccAccountConfigObj> iter = sortedMap.values().iterator(); ICFAccAccountConfigObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAccountConfigObj) iter.next(); arr[idx] = cur.getAccountConfigBuff(); } return (arr); } public CFAccAccountConfigBuff readBuff(CFAccAuthorization Authorization, CFAccAccountConfigPKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuff"); } public CFAccAccountConfigBuff lockBuff(CFAccAuthorization Authorization, CFAccAccountConfigPKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lockBuff"); } public CFAccAccountConfigBuff[] readAllBuff(CFAccAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readAllBuff"); } public CFAccAccountConfigBuff readBuffByIdIdx(CFAccAuthorization Authorization, long argTenantId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByIdIdx"); } public CFAccAccountConfigBuff[] readBuffByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByTenantIdx"); } public CFAccAccountConfigBuff[] readBuffByDefCcyIdx(CFAccAuthorization Authorization, short argDefaultCurrencyId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByDefCcyIdx"); } public CFAccAccountConfigBuff[] readBuffByCustCtcLstIdx(CFAccAuthorization Authorization, Long argCustContactListTenantId, Long argCustContactListId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByCustCtcLstIdx"); } public CFAccAccountConfigBuff[] readBuffByEmpCtcLstIdx(CFAccAuthorization Authorization, Long argEmpContactListTenantId, Long argEmpContactListId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByEmpCtcLstIdx"); } public CFAccAccountConfigBuff[] readBuffByVendCtcLstIdx(CFAccAuthorization Authorization, Long argVendContactListTenantId, Long argVendContactListId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByVendCtcLstIdx"); } public void updateAccountConfig(CFAccAuthorization Authorization, CFAccAccountConfigBuff Buff) { final String S_ProcName = "updateAccountConfig"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstUpdate("\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; } CFAccAccountConfigBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccAccountConfigObj realized = null; if (lastObjectProcessed instanceof ICFAccAccountConfigObj) { realized = (ICFAccAccountConfigObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccAccountConfigObj"); } if (realized != null) { buff = realized.getAccountConfigBuff(); } } if (buff != null) { Buff.set(buff); } } public void deleteAccountConfig(CFAccAuthorization Authorization, CFAccAccountConfigBuff Buff) { final String S_ProcName = "deleteAccountConfig"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstDelete("\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 deleteAccountConfigByIdIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "deleteAccountConfigByIdIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstDeleteByIdIdx("\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 deleteAccountConfigByIdIdx(CFAccAuthorization Authorization, CFAccAccountConfigPKey argKey) { deleteAccountConfigByIdIdx(Authorization, argKey.getRequiredTenantId()); } public void deleteAccountConfigByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "deleteAccountConfigByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstDeleteByTenantIdx("\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 deleteAccountConfigByTenantIdx(CFAccAuthorization Authorization, CFAccAccountConfigByTenantIdxKey argKey) { deleteAccountConfigByTenantIdx(Authorization, argKey.getRequiredTenantId()); } public void deleteAccountConfigByDefCcyIdx(CFAccAuthorization Authorization, short argDefaultCurrencyId) { final String S_ProcName = "deleteAccountConfigByDefCcyIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter .formatAccountConfigRqstDeleteByDefCcyIdx("\n\t\t\t", argDefaultCurrencyId) + "\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 deleteAccountConfigByDefCcyIdx(CFAccAuthorization Authorization, CFAccAccountConfigByDefCcyIdxKey argKey) { deleteAccountConfigByDefCcyIdx(Authorization, argKey.getRequiredDefaultCurrencyId()); } public void deleteAccountConfigByCustCtcLstIdx(CFAccAuthorization Authorization, Long argCustContactListTenantId, Long argCustContactListId) { final String S_ProcName = "deleteAccountConfigByCustCtcLstIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstDeleteByCustCtcLstIdx("\n\t\t\t", argCustContactListTenantId, argCustContactListId) + "\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 deleteAccountConfigByCustCtcLstIdx(CFAccAuthorization Authorization, CFAccAccountConfigByCustCtcLstIdxKey argKey) { deleteAccountConfigByCustCtcLstIdx(Authorization, argKey.getOptionalCustContactListTenantId(), argKey.getOptionalCustContactListId()); } public void deleteAccountConfigByEmpCtcLstIdx(CFAccAuthorization Authorization, Long argEmpContactListTenantId, Long argEmpContactListId) { final String S_ProcName = "deleteAccountConfigByEmpCtcLstIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstDeleteByEmpCtcLstIdx("\n\t\t\t", argEmpContactListTenantId, argEmpContactListId) + "\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 deleteAccountConfigByEmpCtcLstIdx(CFAccAuthorization Authorization, CFAccAccountConfigByEmpCtcLstIdxKey argKey) { deleteAccountConfigByEmpCtcLstIdx(Authorization, argKey.getOptionalEmpContactListTenantId(), argKey.getOptionalEmpContactListId()); } public void deleteAccountConfigByVendCtcLstIdx(CFAccAuthorization Authorization, Long argVendContactListTenantId, Long argVendContactListId) { final String S_ProcName = "deleteAccountConfigByVendCtcLstIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAccountConfigMessageFormatter.formatAccountConfigRqstDeleteByVendCtcLstIdx("\n\t\t\t", argVendContactListTenantId, argVendContactListId) + "\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 deleteAccountConfigByVendCtcLstIdx(CFAccAuthorization Authorization, CFAccAccountConfigByVendCtcLstIdxKey argKey) { deleteAccountConfigByVendCtcLstIdx(Authorization, argKey.getOptionalVendContactListTenantId(), argKey.getOptionalVendContactListId()); } public CFAccCursor openAccountConfigCursorAll(CFAccAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openAccountConfigCursorAll"); } public CFAccCursor openAccountConfigCursorByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openAccountConfigCursorByTenantIdx"); } public CFAccCursor openAccountConfigCursorByDefCcyIdx(CFAccAuthorization Authorization, short argDefaultCurrencyId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openAccountConfigCursorByDefCcyIdx"); } public CFAccCursor openAccountConfigCursorByCustCtcLstIdx(CFAccAuthorization Authorization, Long argCustContactListTenantId, Long argCustContactListId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openAccountConfigCursorByCustCtcLstIdx"); } public CFAccCursor openAccountConfigCursorByEmpCtcLstIdx(CFAccAuthorization Authorization, Long argEmpContactListTenantId, Long argEmpContactListId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openAccountConfigCursorByEmpCtcLstIdx"); } public CFAccCursor openAccountConfigCursorByVendCtcLstIdx(CFAccAuthorization Authorization, Long argVendContactListTenantId, Long argVendContactListId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openAccountConfigCursorByVendCtcLstIdx"); } public void closeAccountConfigCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "closeAccountConfigCursor"); } public CFAccAccountConfigBuff nextAccountConfigCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "next$Tablename$Cursor"); } public CFAccAccountConfigBuff prevAccountConfigCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "prevAccountConfigCursor"); } public CFAccAccountConfigBuff firstAccountConfigCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "firstAccountConfigCursor"); } public CFAccAccountConfigBuff lastAccountConfigCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lastAccountConfigCursor"); } public CFAccAccountConfigBuff nthAccountConfigCursor(CFAccCursor Cursor, int Idx) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "nthAccountConfigCursor"); } /** * 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"); } }