Java tutorial
// Description: Java 7 XMsg Client DbIO implementation for SecGroupForm. /* * 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.*; /* * CFAccXMsgClientSecGroupFormTable XMsg Client DbIO implementation * for SecGroupForm. */ public class CFAccXMsgClientSecGroupFormTable implements ICFAccSecGroupFormTable { private CFAccXMsgClientSchema schema; public CFAccXMsgClientSecGroupFormTable(CFAccXMsgClientSchema argSchema) { schema = argSchema; } public void createSecGroupForm(CFAccAuthorization Authorization, CFAccSecGroupFormBuff Buff) { final String S_ProcName = "createSecGroupForm"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstCreate("\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) { ICFAccSecGroupFormObj realized = null; if (lastObjectProcessed instanceof ICFAccSecGroupFormObj) { realized = (ICFAccSecGroupFormObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccSecGroupFormObj"); } if (realized != null) { Buff.set(realized.getSecGroupFormBuff()); } } else { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getLastObjectProcessed()"); } } public CFAccSecGroupFormBuff readDerived(CFAccAuthorization Authorization, CFAccSecGroupFormPKey PKey) { final String S_ProcName = "readDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstRead("\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; } CFAccSecGroupFormBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccSecGroupFormObj realized = null; if (lastObjectProcessed instanceof ICFAccSecGroupFormObj) { realized = (ICFAccSecGroupFormObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccSecGroupFormObj"); } if (realized != null) { buff = realized.getSecGroupFormBuff(); } } return (buff); } public CFAccSecGroupFormBuff lockDerived(CFAccAuthorization Authorization, CFAccSecGroupFormPKey PKey) { final String S_ProcName = "lockDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstLock("\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; } CFAccSecGroupFormBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccSecGroupFormObj realized = null; if (lastObjectProcessed instanceof ICFAccSecGroupFormObj) { realized = (ICFAccSecGroupFormObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccSecGroupFormObj"); } if (realized != null) { buff = realized.getSecGroupFormBuff(); } } return (buff); } public CFAccSecGroupFormBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadAll("\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<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj> sortedMap = (SortedMap<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupFormBuff arr[] = new CFAccSecGroupFormBuff[sz]; Iterator<ICFAccSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAccSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); } public CFAccSecGroupFormBuff readDerivedByIdIdx(CFAccAuthorization Authorization, long argClusterId, long argSecGroupFormId) { final String S_ProcName = "readDerivedByIdIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByIdIdx("\n\t\t\t", argClusterId, argSecGroupFormId) + "\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; } CFAccSecGroupFormBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccSecGroupFormObj realized = null; if (lastObjectProcessed instanceof ICFAccSecGroupFormObj) { realized = (ICFAccSecGroupFormObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccSecGroupFormObj"); } if (realized != null) { buff = realized.getSecGroupFormBuff(); } } return (buff); } public CFAccSecGroupFormBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByClusterIdx("\n\t\t\t", argClusterId) + "\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<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj> sortedMap = (SortedMap<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupFormBuff arr[] = new CFAccSecGroupFormBuff[sz]; Iterator<ICFAccSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAccSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); } public CFAccSecGroupFormBuff[] readDerivedByGroupIdx(CFAccAuthorization Authorization, long argClusterId, int argSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByGroupIdx("\n\t\t\t", argClusterId, argSecGroupId) + "\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<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj> sortedMap = (SortedMap<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupFormBuff arr[] = new CFAccSecGroupFormBuff[sz]; Iterator<ICFAccSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAccSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); } public CFAccSecGroupFormBuff[] readDerivedByAppIdx(CFAccAuthorization Authorization, long argClusterId, int argSecAppId) { final String S_ProcName = "readDerivedByAppIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByAppIdx("\n\t\t\t", argClusterId, argSecAppId) + "\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<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj> sortedMap = (SortedMap<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupFormBuff arr[] = new CFAccSecGroupFormBuff[sz]; Iterator<ICFAccSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAccSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); } public CFAccSecGroupFormBuff[] readDerivedByFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecFormId) { final String S_ProcName = "readDerivedByFormIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByFormIdx("\n\t\t\t", argClusterId, argSecFormId) + "\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<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj> sortedMap = (SortedMap<CFAccSecGroupFormPKey, ICFAccSecGroupFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecGroupFormBuff arr[] = new CFAccSecGroupFormBuff[sz]; Iterator<ICFAccSecGroupFormObj> iter = sortedMap.values().iterator(); ICFAccSecGroupFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecGroupFormObj) iter.next(); arr[idx] = cur.getSecGroupFormBuff(); } return (arr); } public CFAccSecGroupFormBuff readDerivedByUFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecGroupId, int argSecFormId) { final String S_ProcName = "readDerivedByUFormIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstReadByUFormIdx("\n\t\t\t", argClusterId, argSecGroupId, argSecFormId) + "\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; } CFAccSecGroupFormBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccSecGroupFormObj realized = null; if (lastObjectProcessed instanceof ICFAccSecGroupFormObj) { realized = (ICFAccSecGroupFormObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccSecGroupFormObj"); } if (realized != null) { buff = realized.getSecGroupFormBuff(); } } return (buff); } public CFAccSecGroupFormBuff readBuff(CFAccAuthorization Authorization, CFAccSecGroupFormPKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuff"); } public CFAccSecGroupFormBuff lockBuff(CFAccAuthorization Authorization, CFAccSecGroupFormPKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lockBuff"); } public CFAccSecGroupFormBuff[] readAllBuff(CFAccAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readAllBuff"); } public CFAccSecGroupFormBuff readBuffByIdIdx(CFAccAuthorization Authorization, long argClusterId, long argSecGroupFormId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByIdIdx"); } public CFAccSecGroupFormBuff[] readBuffByClusterIdx(CFAccAuthorization Authorization, long argClusterId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByClusterIdx"); } public CFAccSecGroupFormBuff[] readBuffByGroupIdx(CFAccAuthorization Authorization, long argClusterId, int argSecGroupId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByGroupIdx"); } public CFAccSecGroupFormBuff[] readBuffByAppIdx(CFAccAuthorization Authorization, long argClusterId, int argSecAppId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByAppIdx"); } public CFAccSecGroupFormBuff[] readBuffByFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecFormId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByFormIdx"); } public CFAccSecGroupFormBuff readBuffByUFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecGroupId, int argSecFormId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByUFormIdx"); } public void updateSecGroupForm(CFAccAuthorization Authorization, CFAccSecGroupFormBuff Buff) { final String S_ProcName = "updateSecGroupForm"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstUpdate("\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; } CFAccSecGroupFormBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFAccSecGroupFormObj realized = null; if (lastObjectProcessed instanceof ICFAccSecGroupFormObj) { realized = (ICFAccSecGroupFormObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFAccSecGroupFormObj"); } if (realized != null) { buff = realized.getSecGroupFormBuff(); } } if (buff != null) { Buff.set(buff); } } public void deleteSecGroupForm(CFAccAuthorization Authorization, CFAccSecGroupFormBuff Buff) { final String S_ProcName = "deleteSecGroupForm"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstDelete("\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 deleteSecGroupFormByIdIdx(CFAccAuthorization Authorization, long argClusterId, long argSecGroupFormId) { final String S_ProcName = "deleteSecGroupFormByIdIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstDeleteByIdIdx("\n\t\t\t", argClusterId, argSecGroupFormId) + "\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 deleteSecGroupFormByIdIdx(CFAccAuthorization Authorization, CFAccSecGroupFormPKey argKey) { deleteSecGroupFormByIdIdx(Authorization, argKey.getRequiredClusterId(), argKey.getRequiredSecGroupFormId()); } public void deleteSecGroupFormByClusterIdx(CFAccAuthorization Authorization, long argClusterId) { final String S_ProcName = "deleteSecGroupFormByClusterIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstDeleteByClusterIdx("\n\t\t\t", argClusterId) + "\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 deleteSecGroupFormByClusterIdx(CFAccAuthorization Authorization, CFAccSecGroupFormByClusterIdxKey argKey) { deleteSecGroupFormByClusterIdx(Authorization, argKey.getRequiredClusterId()); } public void deleteSecGroupFormByGroupIdx(CFAccAuthorization Authorization, long argClusterId, int argSecGroupId) { final String S_ProcName = "deleteSecGroupFormByGroupIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstDeleteByGroupIdx("\n\t\t\t", argClusterId, argSecGroupId) + "\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 deleteSecGroupFormByGroupIdx(CFAccAuthorization Authorization, CFAccSecGroupFormByGroupIdxKey argKey) { deleteSecGroupFormByGroupIdx(Authorization, argKey.getRequiredClusterId(), argKey.getRequiredSecGroupId()); } public void deleteSecGroupFormByAppIdx(CFAccAuthorization Authorization, long argClusterId, int argSecAppId) { final String S_ProcName = "deleteSecGroupFormByAppIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstDeleteByAppIdx("\n\t\t\t", argClusterId, argSecAppId) + "\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 deleteSecGroupFormByAppIdx(CFAccAuthorization Authorization, CFAccSecGroupFormByAppIdxKey argKey) { deleteSecGroupFormByAppIdx(Authorization, argKey.getRequiredClusterId(), argKey.getRequiredSecAppId()); } public void deleteSecGroupFormByFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecFormId) { final String S_ProcName = "deleteSecGroupFormByFormIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstDeleteByFormIdx("\n\t\t\t", argClusterId, argSecFormId) + "\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 deleteSecGroupFormByFormIdx(CFAccAuthorization Authorization, CFAccSecGroupFormByFormIdxKey argKey) { deleteSecGroupFormByFormIdx(Authorization, argKey.getRequiredClusterId(), argKey.getRequiredSecFormId()); } public void deleteSecGroupFormByUFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecGroupId, int argSecFormId) { final String S_ProcName = "deleteSecGroupFormByUFormIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecGroupFormMessageFormatter.formatSecGroupFormRqstDeleteByUFormIdx("\n\t\t\t", argClusterId, argSecGroupId, argSecFormId) + "\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 deleteSecGroupFormByUFormIdx(CFAccAuthorization Authorization, CFAccSecGroupFormByUFormIdxKey argKey) { deleteSecGroupFormByUFormIdx(Authorization, argKey.getRequiredClusterId(), argKey.getRequiredSecGroupId(), argKey.getRequiredSecFormId()); } public CFAccCursor openSecGroupFormCursorAll(CFAccAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openSecGroupFormCursorAll"); } public CFAccCursor openSecGroupFormCursorByClusterIdx(CFAccAuthorization Authorization, long argClusterId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openSecGroupFormCursorByClusterIdx"); } public CFAccCursor openSecGroupFormCursorByGroupIdx(CFAccAuthorization Authorization, long argClusterId, int argSecGroupId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openSecGroupFormCursorByGroupIdx"); } public CFAccCursor openSecGroupFormCursorByAppIdx(CFAccAuthorization Authorization, long argClusterId, int argSecAppId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openSecGroupFormCursorByAppIdx"); } public CFAccCursor openSecGroupFormCursorByFormIdx(CFAccAuthorization Authorization, long argClusterId, int argSecFormId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openSecGroupFormCursorByFormIdx"); } public void closeSecGroupFormCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "closeSecGroupFormCursor"); } public CFAccSecGroupFormBuff nextSecGroupFormCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "next$Tablename$Cursor"); } public CFAccSecGroupFormBuff prevSecGroupFormCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "prevSecGroupFormCursor"); } public CFAccSecGroupFormBuff firstSecGroupFormCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "firstSecGroupFormCursor"); } public CFAccSecGroupFormBuff lastSecGroupFormCursor(CFAccCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lastSecGroupFormCursor"); } public CFAccSecGroupFormBuff nthSecGroupFormCursor(CFAccCursor Cursor, int Idx) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "nthSecGroupFormCursor"); } /** * 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"); } }