Java tutorial
// Description: Java 7 XMsg Client DbIO implementation for MinorVersion. /* * CF Customer Relations Management model * * Copyright (c) 2010-2014 Mark Sobkow * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * *********************************************************************** * * Code manufactured by MSS Code Factory */ package net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmXMsgClient; 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.cfcrm.v2_0.CFCrm.*; import net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmObj.*; import net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmXMsg.*; import net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmXMsgRspnHandler.*; /* * CFCrmXMsgClientMinorVersionTable XMsg Client DbIO implementation * for MinorVersion. */ public class CFCrmXMsgClientMinorVersionTable implements ICFCrmMinorVersionTable { private CFCrmXMsgClientSchema schema; public CFCrmXMsgClientMinorVersionTable(CFCrmXMsgClientSchema argSchema) { schema = argSchema; } public void createMinorVersion(CFCrmAuthorization Authorization, CFCrmMinorVersionBuff Buff) { final String S_ProcName = "createMinorVersion"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstCreate("\n\t\t\t", Buff) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmMinorVersionObj realized = null; if (lastObjectProcessed instanceof ICFCrmMinorVersionObj) { realized = (ICFCrmMinorVersionObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmMinorVersionObj"); } if (realized != null) { Buff.set(realized.getMinorVersionBuff()); } } else { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getLastObjectProcessed()"); } } public CFCrmMinorVersionBuff readDerived(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { final String S_ProcName = "readDerived"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstRead("\n\t\t\t", PKey) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } CFCrmMinorVersionBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmMinorVersionObj realized = null; if (lastObjectProcessed instanceof ICFCrmMinorVersionObj) { realized = (ICFCrmMinorVersionObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmMinorVersionObj"); } if (realized != null) { buff = realized.getMinorVersionBuff(); } } return (buff); } public CFCrmMinorVersionBuff lockDerived(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { final String S_ProcName = "lockDerived"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstLock("\n\t\t\t", PKey) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } CFCrmMinorVersionBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmMinorVersionObj realized = null; if (lastObjectProcessed instanceof ICFCrmMinorVersionObj) { realized = (ICFCrmMinorVersionObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmMinorVersionObj"); } if (realized != null) { buff = realized.getMinorVersionBuff(); } } return (buff); } public CFCrmMinorVersionBuff[] readAllDerived(CFCrmAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadAll("\n\t\t\t") + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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<CFCrmDomainBasePKey, ICFCrmDomainBaseObj> sortedMap = (SortedMap<CFCrmDomainBasePKey, ICFCrmDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFCrmMinorVersionBuff arr[] = new CFCrmMinorVersionBuff[sz]; Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator(); ICFCrmMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); } public CFCrmMinorVersionBuff readDerivedByIdIdx(CFCrmAuthorization Authorization, long argTenantId, long argId) { final String S_ProcName = "readDerivedByIdIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadByIdIdx("\n\t\t\t", argTenantId, argId) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } CFCrmMinorVersionBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmMinorVersionObj realized = null; if (lastObjectProcessed instanceof ICFCrmMinorVersionObj) { realized = (ICFCrmMinorVersionObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmMinorVersionObj"); } if (realized != null) { buff = realized.getMinorVersionBuff(); } } return (buff); } public CFCrmMinorVersionBuff[] readDerivedByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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<CFCrmDomainBasePKey, ICFCrmDomainBaseObj> sortedMap = (SortedMap<CFCrmDomainBasePKey, ICFCrmDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFCrmMinorVersionBuff arr[] = new CFCrmMinorVersionBuff[sz]; Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator(); ICFCrmMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); } public CFCrmMinorVersionBuff[] readDerivedByMajorIdx(CFCrmAuthorization Authorization, long argTenantId, long argMajorId) { final String S_ProcName = "readDerivedByMajorIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter .formatMinorVersionRqstReadByMajorIdx("\n\t\t\t", argTenantId, argMajorId) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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<CFCrmDomainBasePKey, ICFCrmDomainBaseObj> sortedMap = (SortedMap<CFCrmDomainBasePKey, ICFCrmDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFCrmMinorVersionBuff arr[] = new CFCrmMinorVersionBuff[sz]; Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator(); ICFCrmMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); } public CFCrmMinorVersionBuff readDerivedByNameIdx(CFCrmAuthorization Authorization, long argTenantId, long argMajorId, String argName) { final String S_ProcName = "readDerivedByNameIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter .formatMinorVersionRqstReadByNameIdx("\n\t\t\t", argTenantId, argMajorId, argName) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } CFCrmMinorVersionBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmMinorVersionObj realized = null; if (lastObjectProcessed instanceof ICFCrmMinorVersionObj) { realized = (ICFCrmMinorVersionObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmMinorVersionObj"); } if (realized != null) { buff = realized.getMinorVersionBuff(); } } return (buff); } public CFCrmMinorVersionBuff readBuff(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuff"); } public CFCrmMinorVersionBuff lockBuff(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lockBuff"); } public CFCrmMinorVersionBuff[] readAllBuff(CFCrmAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readAllBuff"); } public CFCrmMinorVersionBuff readBuffByIdIdx(CFCrmAuthorization Authorization, long argTenantId, long argId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByIdIdx"); } public CFCrmMinorVersionBuff[] readBuffByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByTenantIdx"); } public CFCrmMinorVersionBuff[] readBuffByMajorIdx(CFCrmAuthorization Authorization, long argTenantId, long argMajorId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByMajorIdx"); } public CFCrmMinorVersionBuff readBuffByNameIdx(CFCrmAuthorization Authorization, long argTenantId, long argMajorId, String argName) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByNameIdx"); } public void updateMinorVersion(CFCrmAuthorization Authorization, CFCrmMinorVersionBuff Buff) { final String S_ProcName = "updateMinorVersion"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstUpdate("\n\t\t\t", Buff) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } CFCrmMinorVersionBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmMinorVersionObj realized = null; if (lastObjectProcessed instanceof ICFCrmMinorVersionObj) { realized = (ICFCrmMinorVersionObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmMinorVersionObj"); } if (realized != null) { buff = realized.getMinorVersionBuff(); } } if (buff != null) { Buff.set(buff); } } public void deleteMinorVersion(CFCrmAuthorization Authorization, CFCrmMinorVersionBuff Buff) { final String S_ProcName = "deleteMinorVersion"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstDelete("\n\t\t\t", Buff) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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 deleteMinorVersionByIdIdx(CFCrmAuthorization Authorization, long argTenantId, long argId) { final String S_ProcName = "deleteMinorVersionByIdIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgDomainBaseMessageFormatter.formatDomainBaseRqstDeleteByIdIdx("\n\t\t\t", argTenantId, argId) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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 deleteMinorVersionByIdIdx(CFCrmAuthorization Authorization, CFCrmDomainBasePKey argKey) { deleteMinorVersionByIdIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredId()); } public void deleteMinorVersionByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) { final String S_ProcName = "deleteMinorVersionByTenantIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstDeleteByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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 deleteMinorVersionByTenantIdx(CFCrmAuthorization Authorization, CFCrmDomainBaseByTenantIdxKey argKey) { deleteMinorVersionByTenantIdx(Authorization, argKey.getRequiredTenantId()); } public void deleteMinorVersionByMajorIdx(CFCrmAuthorization Authorization, long argTenantId, long argMajorId) { final String S_ProcName = "deleteMinorVersionByMajorIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter .formatMinorVersionRqstDeleteByMajorIdx("\n\t\t\t", argTenantId, argMajorId) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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 deleteMinorVersionByMajorIdx(CFCrmAuthorization Authorization, CFCrmMinorVersionByMajorIdxKey argKey) { deleteMinorVersionByMajorIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredMajorId()); } public void deleteMinorVersionByNameIdx(CFCrmAuthorization Authorization, long argTenantId, long argMajorId, String argName) { final String S_ProcName = "deleteMinorVersionByNameIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstDeleteByNameIdx("\n\t\t\t", argTenantId, argMajorId, argName) + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFCrmXMsgRspnHandler 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 deleteMinorVersionByNameIdx(CFCrmAuthorization Authorization, CFCrmMinorVersionByNameIdxKey argKey) { deleteMinorVersionByNameIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredMajorId(), argKey.getRequiredName()); } public CFCrmCursor openMinorVersionCursorAll(CFCrmAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openMinorVersionCursorAll"); } public CFCrmCursor openMinorVersionCursorByMajorIdx(CFCrmAuthorization Authorization, long argTenantId, long argMajorId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openMinorVersionCursorByMajorIdx"); } public void closeMinorVersionCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "closeMinorVersionCursor"); } public CFCrmMinorVersionBuff nextMinorVersionCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "next$Tablename$Cursor"); } public CFCrmMinorVersionBuff prevMinorVersionCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "prevMinorVersionCursor"); } public CFCrmMinorVersionBuff firstMinorVersionCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "firstMinorVersionCursor"); } public CFCrmMinorVersionBuff lastMinorVersionCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lastMinorVersionCursor"); } public CFCrmMinorVersionBuff nthMinorVersionCursor(CFCrmCursor Cursor, int Idx) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "nthMinorVersionCursor"); } /** * 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"); } }