Java tutorial
// Description: Java 7 XMsg Client DbIO implementation for SubProject. /* * 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.*; /* * CFCrmXMsgClientSubProjectTable XMsg Client DbIO implementation * for SubProject. */ public class CFCrmXMsgClientSubProjectTable implements ICFCrmSubProjectTable { private CFCrmXMsgClientSchema schema; public CFCrmXMsgClientSubProjectTable(CFCrmXMsgClientSchema argSchema) { schema = argSchema; } public void createSubProject(CFCrmAuthorization Authorization, CFCrmSubProjectBuff Buff) { final String S_ProcName = "createSubProject"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstCreate("\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) { ICFCrmSubProjectObj realized = null; if (lastObjectProcessed instanceof ICFCrmSubProjectObj) { realized = (ICFCrmSubProjectObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmSubProjectObj"); } if (realized != null) { Buff.set(realized.getSubProjectBuff()); } } else { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getLastObjectProcessed()"); } } public CFCrmSubProjectBuff readDerived(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { final String S_ProcName = "readDerived"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstRead("\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; } CFCrmSubProjectBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmSubProjectObj realized = null; if (lastObjectProcessed instanceof ICFCrmSubProjectObj) { realized = (ICFCrmSubProjectObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmSubProjectObj"); } if (realized != null) { buff = realized.getSubProjectBuff(); } } return (buff); } public CFCrmSubProjectBuff lockDerived(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { final String S_ProcName = "lockDerived"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstLock("\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; } CFCrmSubProjectBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmSubProjectObj realized = null; if (lastObjectProcessed instanceof ICFCrmSubProjectObj) { realized = (ICFCrmSubProjectObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmSubProjectObj"); } if (realized != null) { buff = realized.getSubProjectBuff(); } } return (buff); } public CFCrmSubProjectBuff[] readAllDerived(CFCrmAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstReadAll("\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(); CFCrmSubProjectBuff arr[] = new CFCrmSubProjectBuff[sz]; Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator(); ICFCrmSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); } public CFCrmSubProjectBuff readDerivedByIdIdx(CFCrmAuthorization Authorization, long argTenantId, long argId) { final String S_ProcName = "readDerivedByIdIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByIdIdx("\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; } CFCrmSubProjectBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmSubProjectObj realized = null; if (lastObjectProcessed instanceof ICFCrmSubProjectObj) { realized = (ICFCrmSubProjectObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmSubProjectObj"); } if (realized != null) { buff = realized.getSubProjectBuff(); } } return (buff); } public CFCrmSubProjectBuff[] readDerivedByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByTenantIdx("\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(); CFCrmSubProjectBuff arr[] = new CFCrmSubProjectBuff[sz]; Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator(); ICFCrmSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); } public CFCrmSubProjectBuff[] readDerivedByParentIdx(CFCrmAuthorization Authorization, long argTenantId, long argParentProjectId) { final String S_ProcName = "readDerivedByParentIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByParentIdx("\n\t\t\t", argTenantId, argParentProjectId) + "\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(); CFCrmSubProjectBuff arr[] = new CFCrmSubProjectBuff[sz]; Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator(); ICFCrmSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFCrmSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); } public CFCrmSubProjectBuff readDerivedByNameIdx(CFCrmAuthorization Authorization, long argTenantId, long argParentProjectId, String argName) { final String S_ProcName = "readDerivedByNameIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByNameIdx("\n\t\t\t", argTenantId, argParentProjectId, 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; } CFCrmSubProjectBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmSubProjectObj realized = null; if (lastObjectProcessed instanceof ICFCrmSubProjectObj) { realized = (ICFCrmSubProjectObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmSubProjectObj"); } if (realized != null) { buff = realized.getSubProjectBuff(); } } return (buff); } public CFCrmSubProjectBuff readBuff(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuff"); } public CFCrmSubProjectBuff lockBuff(CFCrmAuthorization Authorization, CFCrmDomainBasePKey PKey) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lockBuff"); } public CFCrmSubProjectBuff[] readAllBuff(CFCrmAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readAllBuff"); } public CFCrmSubProjectBuff readBuffByIdIdx(CFCrmAuthorization Authorization, long argTenantId, long argId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByIdIdx"); } public CFCrmSubProjectBuff[] readBuffByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByTenantIdx"); } public CFCrmSubProjectBuff[] readBuffByParentIdx(CFCrmAuthorization Authorization, long argTenantId, long argParentProjectId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByParentIdx"); } public CFCrmSubProjectBuff readBuffByNameIdx(CFCrmAuthorization Authorization, long argTenantId, long argParentProjectId, String argName) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "readBuffByNameIdx"); } public void updateSubProject(CFCrmAuthorization Authorization, CFCrmSubProjectBuff Buff) { final String S_ProcName = "updateSubProject"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstUpdate("\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; } CFCrmSubProjectBuff buff = null; Object lastObjectProcessed = responseHandler.getLastObjectProcessed(); if (lastObjectProcessed != null) { ICFCrmSubProjectObj realized = null; if (lastObjectProcessed instanceof ICFCrmSubProjectObj) { realized = (ICFCrmSubProjectObj) lastObjectProcessed; } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "lastObjectProcessed", lastObjectProcessed, "ICFCrmSubProjectObj"); } if (realized != null) { buff = realized.getSubProjectBuff(); } } if (buff != null) { Buff.set(buff); } } public void deleteSubProject(CFCrmAuthorization Authorization, CFCrmSubProjectBuff Buff) { final String S_ProcName = "deleteSubProject"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstDelete("\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 deleteSubProjectByIdIdx(CFCrmAuthorization Authorization, long argTenantId, long argId) { final String S_ProcName = "deleteSubProjectByIdIdx"; 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 deleteSubProjectByIdIdx(CFCrmAuthorization Authorization, CFCrmDomainBasePKey argKey) { deleteSubProjectByIdIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredId()); } public void deleteSubProjectByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) { final String S_ProcName = "deleteSubProjectByTenantIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstDeleteByTenantIdx("\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 deleteSubProjectByTenantIdx(CFCrmAuthorization Authorization, CFCrmDomainBaseByTenantIdxKey argKey) { deleteSubProjectByTenantIdx(Authorization, argKey.getRequiredTenantId()); } public void deleteSubProjectByParentIdx(CFCrmAuthorization Authorization, long argTenantId, long argParentProjectId) { final String S_ProcName = "deleteSubProjectByParentIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter .formatSubProjectRqstDeleteByParentIdx("\n\t\t\t", argTenantId, argParentProjectId) + "\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 deleteSubProjectByParentIdx(CFCrmAuthorization Authorization, CFCrmSubProjectByParentIdxKey argKey) { deleteSubProjectByParentIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredParentProjectId()); } public void deleteSubProjectByNameIdx(CFCrmAuthorization Authorization, long argTenantId, long argParentProjectId, String argName) { final String S_ProcName = "deleteSubProjectByNameIdx"; String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFCrmXMsgSubProjectMessageFormatter.formatSubProjectRqstDeleteByNameIdx("\n\t\t\t", argTenantId, argParentProjectId, 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 deleteSubProjectByNameIdx(CFCrmAuthorization Authorization, CFCrmSubProjectByNameIdxKey argKey) { deleteSubProjectByNameIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredParentProjectId(), argKey.getRequiredName()); } public CFCrmCursor openSubProjectCursorAll(CFCrmAuthorization Authorization) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openSubProjectCursorAll"); } public CFCrmCursor openSubProjectCursorByParentIdx(CFCrmAuthorization Authorization, long argTenantId, long argParentProjectId) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "openSubProjectCursorByParentIdx"); } public void closeSubProjectCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "closeSubProjectCursor"); } public CFCrmSubProjectBuff nextSubProjectCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "next$Tablename$Cursor"); } public CFCrmSubProjectBuff prevSubProjectCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "prevSubProjectCursor"); } public CFCrmSubProjectBuff firstSubProjectCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "firstSubProjectCursor"); } public CFCrmSubProjectBuff lastSubProjectCursor(CFCrmCursor Cursor) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "lastSubProjectCursor"); } public CFCrmSubProjectBuff nthSubProjectCursor(CFCrmCursor Cursor, int Idx) { throw CFLib.getDefaultExceptionFactory().newNotSupportedException(getClass(), "nthSubProjectCursor"); } /** * 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"); } }