FileDocCategorySizeDatePackage
CMP20TemplateFormatter.javaAPI DocGlassfish v2 API17624Fri May 04 22:34:48 BST 2007com.sun.jdo.spi.persistence.support.ejb.ejbc

CMP20TemplateFormatter

public class CMP20TemplateFormatter extends CMPTemplateFormatter

Fields Summary
private static final String
templateFile
public static final String
local_
public static final String
ejbLocalObject_
public static final String
ejbLocalHome_
public static final String
getter_
public static final String
setter_
public static final String
assertPKsetter_
public static final String
pksetter_
public static final String
pkstringsetter_
public static final String
pkcopysetter_
public static final String
copygetter_
public static final String
copysetter_
public static final String
arraygetter_
public static final String
arraysetter_
public static final String
sfldgetter_
public static final String
sfldsetter_
public static final String
cmrGetter_
public static final String
cmrSetter_
public static final String
cmrGetterCollection_
public static final String
cmrSetterCollection_
public static final String
startCascadeDelete_
public static final String
endCascadeDelete_
public static final String
cmrCascadeDelete_
public static final String
cmrCascadeDeleteCollection_
public static final String
localCmrVariables_
public static final String
cleanCollectionCmr_
public static final String
ejbFinderSelectorParamCheckLocalInterface_
public static final String
ejbFinderSelectorParamCheckRemoteInterface_
public static final String
ejbMultiSelectorBodyConversion_
public static final String
ejbMultiSelectorBody_
public static final String
ejbMultiSelectorBodySet_
public static final String
ejbSingleSelectorReturnBodyConversion_
public static final String
ejbSingleSelectorReturnBody_
public static final String
ejbAggregateSelectorPrimitiveReturnBody_
public static final String
ejbAggregateSelectorReturnBody_
public static final String
ejbAggregateSelectorReturnBodyConversion_
public static final String
ejbAggregateSelectorReturnBigDecimalConversion_
public static final String
ejbAggregateSelectorReturnBigIntegerConversion_
public static final String
ejbSingleSelectorBody_
public static final String
preSelect_
public static final String
convertPCToEJBLocalObject_
public static final String
convertCollectionPCToEJBObject_
public static final String
convertCollectionPCToEJBObjectSet_
public static final String
convertCollectionPCToEJBLocalObject_
public static final String
convertCollectionPCToEJBLocalObjectSet_
public static final String
jdoCleanCollectionRef_
public static final String
helper20Interface_
public static final String
helper20Impl_
public static final String
ejbHashSetImport_
public static final String
assertInstanceOfLocalInterfaceImpl_
public static final String
signature2_0_
public static MessageFormat
gformatter
public static MessageFormat
sformatter
public static MessageFormat
copygformatter
public static MessageFormat
copysformatter
public static MessageFormat
arraygformatter
public static MessageFormat
arraysformatter
public static MessageFormat
assertpksformatter
public static MessageFormat
pksformatter
public static MessageFormat
pkstringsformatter
public static MessageFormat
pkcopysformatter
public static MessageFormat
sfldgformatter
public static MessageFormat
sfldsformatter
public static MessageFormat
cmrgformatter
public static MessageFormat
cmrsformatter
public static MessageFormat
cmrCgformatter
public static MessageFormat
cmrCsformatter
public static MessageFormat
cmrcdformatter
public static MessageFormat
cmrcdCformatter
public static MessageFormat
cmrvformatter
public static MessageFormat
cleancmrformatter
public static MessageFormat
cformatter
public static MessageFormat
cunpkformatter
public static MessageFormat
postcformatter
public static MessageFormat
rmformatter
public static MessageFormat
finderselectorchecklocalformatter
public static MessageFormat
finderselectorcheckremoteformatter
public static MessageFormat
preselectformatter
public static MessageFormat
multiselectorconvformatter
public static MessageFormat
multiselectorformatter
public static MessageFormat
multiselectorsetformatter
public static MessageFormat
singleselectorreturnconvformatter
public static MessageFormat
singleselectorreturnformatter
public static MessageFormat
aggregateselectorprimitivereturnformatter
public static MessageFormat
aggregateselectorreturnformatter
public static MessageFormat
aggregateselectorreturnconvformatter
public static MessageFormat
aggregateselectorreturnbigdecimalconvformatter
public static MessageFormat
aggregateselectorreturnbigintegerconvformatter
public static MessageFormat
singleselectorformatter
public static String
startCascadeDeleteTemplate
public static String
endCascadeDeleteTemplate
public static String
assertInstanceOfLocalInterfaceImplTemplate
public static String
signature2_0Template
private static boolean
is20HelpersLoaded
Constructors Summary
CMP20TemplateFormatter()
Constructs a new CMP20TemplateFormatter instance.


              
     
    
Methods Summary
private static voidinit20Formatters()
Initializes MessageFormats for code generation.

        // getters and setters
        gformatter = new MessageFormat(helpers.getProperty(getter_));
        sformatter = new MessageFormat(helpers.getProperty(setter_));
        copygformatter = new MessageFormat(helpers.getProperty(copygetter_));
        copysformatter = new MessageFormat(helpers.getProperty(copysetter_));
        arraygformatter = new MessageFormat(helpers.getProperty(arraygetter_));
        arraysformatter = new MessageFormat(helpers.getProperty(arraysetter_));
        assertpksformatter = new MessageFormat(helpers.getProperty(assertPKsetter_));
        pksformatter = new MessageFormat(helpers.getProperty(pksetter_));
        pkstringsformatter = new MessageFormat(helpers.getProperty(pkstringsetter_));
        pkcopysformatter = new MessageFormat(helpers.getProperty(pkcopysetter_));
        sfldsformatter = new MessageFormat(helpers.getProperty(sfldsetter_));
        sfldgformatter = new MessageFormat(helpers.getProperty(sfldgetter_));
        cmrgformatter = new MessageFormat(helpers.getProperty(cmrGetter_));
        cmrsformatter = new MessageFormat(helpers.getProperty(cmrSetter_));
        cmrCgformatter = new MessageFormat(helpers.getProperty(cmrGetterCollection_));
        cmrCsformatter = new MessageFormat(helpers.getProperty(cmrSetterCollection_));
        cmrcdformatter = new MessageFormat(helpers.getProperty(cmrCascadeDelete_));
        cmrcdCformatter = new MessageFormat(helpers.getProperty(cmrCascadeDeleteCollection_));

        // 2.0 variables
        cmrvformatter = new MessageFormat(helpers.getProperty(localCmrVariables_));
        cleancmrformatter = new MessageFormat(helpers.getProperty(cleanCollectionCmr_));

        // 2.0 methods
        cformatter = new MessageFormat(helpers.getProperty(ejbCreate_));
        cunpkformatter = new MessageFormat(helpers.getProperty(ejbCreateUnknownPK_));
        postcformatter = new MessageFormat(helpers.getProperty(ejbPostCreate_));
        rmformatter = new MessageFormat(helpers.getProperty(ejbRemove_));

        // 2.0 finder/selector methods
        finderselectorchecklocalformatter = new MessageFormat(helpers.getProperty(ejbFinderSelectorParamCheckLocalInterface_));
        finderselectorcheckremoteformatter = new MessageFormat(helpers.getProperty(ejbFinderSelectorParamCheckRemoteInterface_));
        preselectformatter = new MessageFormat(helpers.getProperty(preSelect_));
        multiselectorconvformatter = new MessageFormat(helpers.getProperty(ejbMultiSelectorBodyConversion_));
        multiselectorformatter = new MessageFormat(helpers.getProperty(ejbMultiSelectorBody_));
        multiselectorsetformatter = new MessageFormat(helpers.getProperty(ejbMultiSelectorBodySet_));
        singleselectorreturnconvformatter = new MessageFormat(helpers.getProperty(ejbSingleSelectorReturnBodyConversion_));
        singleselectorreturnformatter = new MessageFormat(helpers.getProperty(ejbSingleSelectorReturnBody_));
        aggregateselectorprimitivereturnformatter = new MessageFormat(helpers.getProperty(ejbAggregateSelectorPrimitiveReturnBody_));
        aggregateselectorreturnformatter = new MessageFormat(helpers.getProperty(ejbAggregateSelectorReturnBody_));
        aggregateselectorreturnconvformatter = new MessageFormat(helpers.getProperty(ejbAggregateSelectorReturnBodyConversion_));
        aggregateselectorreturnbigdecimalconvformatter = new MessageFormat(helpers.getProperty(ejbAggregateSelectorReturnBigDecimalConversion_));
        aggregateselectorreturnbigintegerconvformatter = new MessageFormat(helpers.getProperty(ejbAggregateSelectorReturnBigIntegerConversion_));
        singleselectorformatter = new MessageFormat(helpers.getProperty(ejbSingleSelectorBody_));
    
private static voidinit20Templates()
Initializes standard templates for code generation.

        startCascadeDeleteTemplate = helpers.getProperty(startCascadeDelete_);
        endCascadeDeleteTemplate = helpers.getProperty(endCascadeDelete_);
        assertInstanceOfLocalInterfaceImplTemplate = helpers.getProperty(
            assertInstanceOfLocalInterfaceImpl_);
        signature2_0Template = helpers.getProperty(signature2_0_);
    
static synchronized voidinitHelpers()
Initializes templates for code generation.

        if (is20HelpersLoaded == false) {
            loadProperties(helpers, templateFile);
            init20Formatters();
            init20Templates();

            is20HelpersLoaded = true;

        }