Java tutorial
// Description: Java 7 XMsg Client DbIO implementation for Memo. /* * 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.*; /* * CFAccXMsgClientMemoTable XMsg Client DbIO implementation * for Memo. */ public class CFAccXMsgClientMemoTable implements ICFAccMemoTable { private CFAccXMsgClientSchema schema; public CFAccXMsgClientMemoTable(CFAccXMsgClientSchema argSchema) { schema = argSchema; } public void createMemo(CFAccAuthorization Authorization, CFAccMemoBuff Buff) { final String S_ProcName = "createMemo"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstCreate("\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) { ICFAccMemoObj realized = null; if (lastObjectProcessed instanceof ICFAccMemoObj) { realized = (ICFAccMemoObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccMemoObj"); } if (realized != null) { Buff.set(realized.getMemoBuff()); } } else { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getLastObjectProcessed()"); } } public CFAccMemoBuff readDerived(CFAccAuthorization Authorization, CFAccMemoPKey PKey) { final String S_ProcName = "readDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstRead("\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; } CFAccMemoBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccMemoObj realized = null; if (lastObjectProcessed instanceof ICFAccMemoObj) { realized = (ICFAccMemoObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccMemoObj"); } if (realized != null) { buff = realized.getMemoBuff(); } } return (buff); } public CFAccMemoBuff lockDerived(CFAccAuthorization Authorization, CFAccMemoPKey PKey) { final String S_ProcName = "lockDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstLock("\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; } CFAccMemoBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccMemoObj realized = null; if (lastObjectProcessed instanceof ICFAccMemoObj) { realized = (ICFAccMemoObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccMemoObj"); } if (realized != null) { buff = realized.getMemoBuff(); } } return (buff); } public CFAccMemoBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadAll("\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<CFAccMemoPKey, ICFAccMemoObj> sortedMap = (SortedMap<CFAccMemoPKey, ICFAccMemoObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoBuff arr[] = new CFAccMemoBuff[sz]; Iterator<ICFAccMemoObj> iter = sortedMap.values().iterator(); ICFAccMemoObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoObj) iter.next(); arr[idx] = cur.getMemoBuff(); } return (arr); } public CFAccMemoBuff readDerivedByIdIdx(CFAccAuthorization Authorization, long argTenantId, long argMemoId) { final String S_ProcName = "readDerivedByIdIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadByIdIdx("\n\t\t\t", argTenantId, argMemoId) + "\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; } CFAccMemoBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccMemoObj realized = null; if (lastObjectProcessed instanceof ICFAccMemoObj) { realized = (ICFAccMemoObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccMemoObj"); } if (realized != null) { buff = realized.getMemoBuff(); } } return (buff); } public CFAccMemoBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadByTenantIdx("\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<CFAccMemoPKey, ICFAccMemoObj> sortedMap = (SortedMap<CFAccMemoPKey, ICFAccMemoObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoBuff arr[] = new CFAccMemoBuff[sz]; Iterator<ICFAccMemoObj> iter = sortedMap.values().iterator(); ICFAccMemoObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoObj) iter.next(); arr[idx] = cur.getMemoBuff(); } return (arr); } public CFAccMemoBuff[] readDerivedByMemoContactIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) { final String S_ProcName = "readDerivedByMemoContactIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadByMemoContactIdx("\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; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccMemoPKey, ICFAccMemoObj> sortedMap = (SortedMap<CFAccMemoPKey, ICFAccMemoObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoBuff arr[] = new CFAccMemoBuff[sz]; Iterator<ICFAccMemoObj> iter = sortedMap.values().iterator(); ICFAccMemoObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoObj) iter.next(); arr[idx] = cur.getMemoBuff(); } return (arr); } public CFAccMemoBuff readDerivedByUDescrIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId, String argDescription) { final String S_ProcName = "readDerivedByUDescrIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstReadByUDescrIdx("\n\t\t\t", argTenantId, argContactId, argDescription) + "\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; } CFAccMemoBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccMemoObj realized = null; if (lastObjectProcessed instanceof ICFAccMemoObj) { realized = (ICFAccMemoObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccMemoObj"); } if (realized != null) { buff = realized.getMemoBuff(); } } return (buff); } public CFAccMemoBuff readBuff(CFAccAuthorization Authorization, CFAccMemoPKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuff"); } public CFAccMemoBuff lockBuff(CFAccAuthorization Authorization, CFAccMemoPKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lockBuff"); } public CFAccMemoBuff[] readAllBuff(CFAccAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readAllBuff"); } public CFAccMemoBuff readBuffByIdIdx(CFAccAuthorization Authorization, long argTenantId, long argMemoId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByIdIdx"); } public CFAccMemoBuff[] readBuffByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByTenantIdx"); } public CFAccMemoBuff[] readBuffByMemoContactIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByMemoContactIdx"); } public CFAccMemoBuff readBuffByUDescrIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId, String argDescription) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByUDescrIdx"); } public void updateMemo(CFAccAuthorization Authorization, CFAccMemoBuff Buff) { final String S_ProcName = "updateMemo"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstUpdate("\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; } CFAccMemoBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccMemoObj realized = null; if (lastObjectProcessed instanceof ICFAccMemoObj) { realized = (ICFAccMemoObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccMemoObj"); } if (realized != null) { buff = realized.getMemoBuff(); } } if (buff != null) { Buff.set(buff); } } public void deleteMemo(CFAccAuthorization Authorization, CFAccMemoBuff Buff) { final String S_ProcName = "deleteMemo"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstDelete("\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 deleteMemoByIdIdx(CFAccAuthorization Authorization, long argTenantId, long argMemoId) { final String S_ProcName = "deleteMemoByIdIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstDeleteByIdIdx("\n\t\t\t", argTenantId, argMemoId) + "\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 deleteMemoByIdIdx(CFAccAuthorization Authorization, CFAccMemoPKey argKey) { deleteMemoByIdIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredMemoId()); } public void deleteMemoByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "deleteMemoByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstDeleteByTenantIdx("\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 deleteMemoByTenantIdx(CFAccAuthorization Authorization, CFAccMemoByTenantIdxKey argKey) { deleteMemoByTenantIdx(Authorization, argKey.getRequiredTenantId()); } public void deleteMemoByMemoContactIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) { final String S_ProcName = "deleteMemoByMemoContactIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstDeleteByMemoContactIdx("\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 deleteMemoByMemoContactIdx(CFAccAuthorization Authorization, CFAccMemoByMemoContactIdxKey argKey) { deleteMemoByMemoContactIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredContactId()); } public void deleteMemoByUDescrIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId, String argDescription) { final String S_ProcName = "deleteMemoByUDescrIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoMessageFormatter.formatMemoRqstDeleteByUDescrIdx("\n\t\t\t", argTenantId, argContactId, argDescription) + "\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 deleteMemoByUDescrIdx(CFAccAuthorization Authorization, CFAccMemoByUDescrIdxKey argKey) { deleteMemoByUDescrIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredContactId(), argKey.getRequiredDescription()); } public CFAccCursor openMemoCursorAll(CFAccAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openMemoCursorAll"); } public CFAccCursor openMemoCursorByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openMemoCursorByTenantIdx"); } public CFAccCursor openMemoCursorByMemoContactIdx(CFAccAuthorization Authorization, long argTenantId, long argContactId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openMemoCursorByMemoContactIdx"); } public void closeMemoCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "closeMemoCursor"); } public CFAccMemoBuff nextMemoCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "next$Tablename$Cursor"); } public CFAccMemoBuff prevMemoCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "prevMemoCursor"); } public CFAccMemoBuff firstMemoCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "firstMemoCursor"); } public CFAccMemoBuff lastMemoCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lastMemoCursor"); } public CFAccMemoBuff nthMemoCursor(CFAccCursor Cursor, int Idx) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "nthMemoCursor"); } /** * 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"); } }