com.sun.jdo.spi.persistence.support.ejb.ejbc
Class JDOCodeGeneratorHelper

java.lang.Object
  extended by com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGeneratorHelper

public class JDOCodeGeneratorHelper
extends Object


Constructor Summary
JDOCodeGeneratorHelper()
           
 
Method Summary
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, StringBuffer buf)
          Create GeneratorException for this message key, bean name, and a StringBuffer 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                                                          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,
                                                          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.


Copyright © 2012. All Rights Reserved.