private static String getParentClassName(EJBWrapperType wrapperType, String internalEJBClassName)
    {
        // Basically, just map the wrapper type to the subclass of
        // EJSWrapperBase that corresponds.

        // Note: a 'switch' statement could be used here.... except
        // when using enums, that results in very inefficient code
        // being generated, as it will use an inner class and multiple
        // try catch blocks... ouch!

        String internalParentName = null;

        if (wrapperType == REMOTE ||
            wrapperType == REMOTE_HOME)
        {
            internalParentName = "com/ibm/ejs/container/EJSWrapper";
        }
        else if (wrapperType == LOCAL ||
                 wrapperType == LOCAL_HOME)
        {
            internalParentName = "com/ibm/ejs/container/EJSLocalWrapper";
        }
        else if (wrapperType == BUSINESS_LOCAL)
        {
            internalParentName = "com/ibm/ejs/container/BusinessLocalWrapper";
        }
        else if (wrapperType == BUSINESS_REMOTE)
        {
            internalParentName = "com/ibm/ejs/container/BusinessRemoteWrapper";
        }
        else if (wrapperType == LOCAL_BEAN || // F743-1756
                 wrapperType == MANAGED_BEAN) // F743-34301.1
        {
            internalParentName = "com/ibm/ejs/container/LocalBeanWrapper";
        }
        else if (wrapperType == MDB_PROXY)
        {
            internalParentName = "com/ibm/ws/ejbcontainer/mdb/MessageEndpointBase";
        }
        else if (wrapperType == MDB_NO_METHOD_INTERFACE_PROXY)
        {
            internalParentName = internalEJBClassName;
        }
        else
        {
            // This is an APAR condition... but should never really happen.
            // Really, this is here to make it obvious that a change is
            // needed here when new wrapperTypes are added in the future,
            // so a Tr.error is not needed.                               d457128.2
            throw new ContainerEJBException("EJBContainer internal error: " +
                                            "Wrapper Type not supported: " +
                                            wrapperType);
        }

        return internalParentName;
    }
private static String getParentClassName ( EJBWrapperType wrapperType , String internalEJBClassName ) { String internalParentName = null ; if ( wrapperType == REMOTE || wrapperType == REMOTE_HOME ) { internalParentName = "com/ibm/ejs/container/EJSWrapper" ; } else if ( wrapperType == LOCAL || wrapperType == LOCAL_HOME ) { internalParentName = "com/ibm/ejs/container/EJSLocalWrapper" ; } else if ( wrapperType == BUSINESS_LOCAL ) { internalParentName = "com/ibm/ejs/container/BusinessLocalWrapper" ; } else if ( wrapperType == BUSINESS_REMOTE ) { internalParentName = "com/ibm/ejs/container/BusinessRemoteWrapper" ; } else if ( wrapperType == LOCAL_BEAN || wrapperType == MANAGED_BEAN ) { internalParentName = "com/ibm/ejs/container/LocalBeanWrapper" ; } else if ( wrapperType == MDB_PROXY ) { internalParentName = "com/ibm/ws/ejbcontainer/mdb/MessageEndpointBase" ; } else if ( wrapperType == MDB_NO_METHOD_INTERFACE_PROXY ) { internalParentName = internalEJBClassName ; } else { throw new ContainerEJBException ( "EJBContainer internal error: " + "Wrapper Type not supported: " + wrapperType ) ; } return internalParentName ; }
Returns the fully qualified 'internal' name of the parent class
for the specified wrapper type. <p>

Note that for No-Interface View (LocalBean), an interface to be
implemented is returned rather than the parent class, as for
No-Interface View, the parent class must be the bean implementation. <p>

@param wrapperType the type of wrapper being generated.