Class JDOCodeGeneratorHelper


  • public class JDOCodeGeneratorHelper
    extends Object
    • Constructor Detail

      • JDOCodeGeneratorHelper

        public JDOCodeGeneratorHelper()
    • Method Detail

      • getModuleName

        public static String getModuleName​(EjbBundleDescriptor bundle)
        Calculate module name from a bundle.
        Returns:
        module name.
      • createGeneratorException

        public static GeneratorException createGeneratorException​(String key,
                                                                  EjbBundleDescriptor bundle)
        Create GeneratorException for this message key.
        Parameters:
        key - the message key in the bundle.
        bundle - the ejb bundle.
        Returns:
        GeneratorException.
      • createGeneratorException

        public static GeneratorException createGeneratorException​(String key,
                                                                  EjbBundleDescriptor bundle,
                                                                  Exception e)
        Create GeneratorException for this message key.
        Parameters:
        key - the message key in the bundle.
        bundle - the ejb bundle.
        e - the Exception to use for the message.
        Returns:
        GeneratorException.
      • createGeneratorException

        public static GeneratorException createGeneratorException​(String key,
                                                                  String beanName,
                                                                  EjbBundleDescriptor bundle)
        Create GeneratorException for this message key and bean name.
        Parameters:
        key - the message key in the bundle.
        bundle - the ejb bundle.
        Returns:
        GeneratorException.
      • createGeneratorException

        public static GeneratorException createGeneratorException​(String key,
                                                                  String beanName,
                                                                  EjbBundleDescriptor bundle,
                                                                  Exception e)
        Create GeneratorException for this message key and bean name.
        Parameters:
        key - the message key in the bundle.
        beanName - the CMP bean name that caused the exception.
        bundle - the ejb bundle.
        e - the Exception to use for the message.
        Returns:
        GeneratorException.
      • createGeneratorException

        public static GeneratorException createGeneratorException​(String key,
                                                                  String beanName,
                                                                  EjbBundleDescriptor bundle,
                                                                  Exception e,
                                                                  StringBuilder buf)
        Create GeneratorException for this message key, bean name, and a StringBuilder with validation exceptions.
        Parameters:
        key - the message key in the bundle.
        beanName - the CMP bean name that caused the exception.
        bundle - the ejb bundle.
        e - the Exception to use for the message.
        buf - the StringBuilder with validation exceptions.
        Returns:
        GeneratorException.
      • createGeneratorException

        public static GeneratorException createGeneratorException​(String key,
                                                                  String beanName,
                                                                  EjbBundleDescriptor bundle,
                                                                  String msg)
        Create GeneratorException for this message key and bean name.
        Parameters:
        key - the message key in the bundle.
        beanName - the CMP bean name that caused the exception.
        bundle - the ejb bundle.
        msg - the message text to append.
        Returns:
        GeneratorException.