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

CMP11TemplateFormatter

public class CMP11TemplateFormatter extends CMPTemplateFormatter

Fields Summary
private static final String
templateFile
public static final String
one_oneVariables_
public static final String
ejbQuerySetIgnoreCache_
public static final String
helper11Interface_
public static final String
helper11Impl_
public static final String
ejbCreate1_1_
public static final String
ejbCreateUnknownPK1_1_
public static final String
ejbPostCreate1_1_
public static final String
ejbRemove1_1_
public static final String
storeFields1_1_
public static final String
loadFields1_1_
public static final String
setEntityContext1_1_
public static final String
internalMethods1_1_
public static final String
helperMethods1_1_
public static final String
load1_1_
public static final String
store1_1_
public static final String
assertPKStore1_1_
public static final String
pkstore1_1_
public static final String
pkstringstore1_1_
public static final String
pkcopystore1_1_
public static final String
copyload1_1_
public static final String
copystore1_1_
public static final String
arrayload1_1_
public static final String
arraystore1_1_
public static final String
loadSerializable1_1_
public static final String
storeSerializable1_1_
public static final String
signature1_1_
public static MessageFormat
querysetignorecacheformatter
public static MessageFormat
c11formatter
public static MessageFormat
c11unpkformatter
public static MessageFormat
postc11formatter
public static MessageFormat
l11formatter
public static MessageFormat
s11formatter
public static MessageFormat
l11copyformatter
public static MessageFormat
s11copyformatter
public static MessageFormat
l11arrayformatter
public static MessageFormat
s11arrayformatter
public static MessageFormat
assertpks11formatter
public static MessageFormat
pks11formatter
public static MessageFormat
pkstring11formatter
public static MessageFormat
pkcopy11formatter
public static MessageFormat
l11Serializableformatter
public static MessageFormat
s11Serializableformatter
public static String
one_oneVariablesTemplate
public static String
ejbRemove1_1Template
public static String
signature1_1Template
private static boolean
is11HelpersLoaded
Constructors Summary
CMP11TemplateFormatter()
Constructs a new CMP11TemplateFormatter instance.


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

        // 1.1 finder methods
        querysetignorecacheformatter = new MessageFormat(helpers.getProperty(ejbQuerySetIgnoreCache_));

        // CMP1.1 formatters
        c11formatter = new MessageFormat(helpers.getProperty(ejbCreate1_1_));
        c11unpkformatter = new MessageFormat(helpers.getProperty(ejbCreateUnknownPK1_1_));
        postc11formatter = new MessageFormat(helpers.getProperty(ejbPostCreate1_1_));
        l11formatter = new MessageFormat(helpers.getProperty(load1_1_));
        s11formatter = new MessageFormat(helpers.getProperty(store1_1_));
        assertpks11formatter = new MessageFormat(helpers.getProperty(assertPKStore1_1_));
        pks11formatter = new MessageFormat(helpers.getProperty(pkstore1_1_));
        pkstring11formatter = new MessageFormat(helpers.getProperty(pkstringstore1_1_));
        pkcopy11formatter = new MessageFormat(helpers.getProperty(pkcopystore1_1_));
        l11copyformatter = new MessageFormat(helpers.getProperty(copyload1_1_));
        s11copyformatter = new MessageFormat(helpers.getProperty(copystore1_1_));
        l11arrayformatter = new MessageFormat(helpers.getProperty(arrayload1_1_));
        s11arrayformatter = new MessageFormat(helpers.getProperty(arraystore1_1_));
        l11Serializableformatter = new MessageFormat(helpers.getProperty(loadSerializable1_1_));
        s11Serializableformatter = new MessageFormat(helpers.getProperty(storeSerializable1_1_));
    
private static voidinit11Templates()
Initializes standard templates for code generation.

        one_oneVariablesTemplate = helpers.getProperty(one_oneVariables_);
        ejbRemove1_1Template = helpers.getProperty(ejbRemove1_1_);
        signature1_1Template = helpers.getProperty(signature1_1_);
    
static synchronized voidinitHelpers()
Initializes templates for code generation.

        if (is11HelpersLoaded == false) {
            loadProperties(helpers, templateFile);
            init11Formatters();
            init11Templates();

            is11HelpersLoaded = true;

        }