Class JDOCodeGeneratorHelper
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGeneratorHelper
-
public class JDOCodeGeneratorHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description JDOCodeGeneratorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeneratorException
createGeneratorException(String key, EjbBundleDescriptor bundle)
Create GeneratorException for this message key.static GeneratorException
createGeneratorException(String key, EjbBundleDescriptor bundle, Exception e)
Create GeneratorException for this message key.static GeneratorException
createGeneratorException(String key, String beanName, EjbBundleDescriptor bundle)
Create GeneratorException for this message key and bean name.static GeneratorException
createGeneratorException(String key, String beanName, EjbBundleDescriptor bundle, Exception e)
Create GeneratorException for this message key and bean name.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.static GeneratorException
createGeneratorException(String key, String beanName, EjbBundleDescriptor bundle, String msg)
Create GeneratorException for this message key and bean name.static String
getModuleName(EjbBundleDescriptor bundle)
Calculate module name from a bundle.
-
-
-
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.
-
-