Class JDOCodeGeneratorHelper
java.lang.Object
com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGeneratorHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorExceptioncreateGeneratorException(String key, com.sun.enterprise.deployment.EjbBundleDescriptor bundle) Create GeneratorException for this message key.static GeneratorExceptioncreateGeneratorException(String key, com.sun.enterprise.deployment.EjbBundleDescriptor bundle, Exception e) Create GeneratorException for this message key.static GeneratorExceptioncreateGeneratorException(String key, String beanName, com.sun.enterprise.deployment.EjbBundleDescriptor bundle) Create GeneratorException for this message key and bean name.static GeneratorExceptioncreateGeneratorException(String key, String beanName, com.sun.enterprise.deployment.EjbBundleDescriptor bundle, Exception e) Create GeneratorException for this message key and bean name.static GeneratorExceptioncreateGeneratorException(String key, String beanName, com.sun.enterprise.deployment.EjbBundleDescriptor bundle, Exception e, StringBuffer buf) Create GeneratorException for this message key, bean name, and a StringBuffer with validation exceptions.static GeneratorExceptioncreateGeneratorException(String key, String beanName, com.sun.enterprise.deployment.EjbBundleDescriptor bundle, String msg) Create GeneratorException for this message key and bean name.static StringgetModuleName(com.sun.enterprise.deployment.EjbBundleDescriptor bundle) Calculate module name from a bundle.
-
Constructor Details
-
JDOCodeGeneratorHelper
public JDOCodeGeneratorHelper()
-
-
Method Details
-
getModuleName
Calculate module name from a bundle.- Returns:
- module name.
-
createGeneratorException
public static GeneratorException createGeneratorException(String key, com.sun.enterprise.deployment.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, com.sun.enterprise.deployment.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, com.sun.enterprise.deployment.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, com.sun.enterprise.deployment.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, com.sun.enterprise.deployment.EjbBundleDescriptor bundle, Exception e, StringBuffer buf) Create GeneratorException for this message key, bean name, and a StringBuffer 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 StringBuffer with validation exceptions.- Returns:
- GeneratorException.
-
createGeneratorException
public static GeneratorException createGeneratorException(String key, String beanName, com.sun.enterprise.deployment.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.
-