Search in sources :

Example 1 with ClientClassGenerationAction

use of org.apache.cayenne.gen.ClientClassGenerationAction in project cayenne by apache.

the class CayenneGeneratorTask method createGeneratorAction.

protected ClassGenerationAction createGeneratorAction() {
    ClassGenerationAction action = client ? new ClientClassGenerationAction() : new ClassGenerationAction();
    action.setContext(getVppContext());
    action.setDestDir(destDir);
    action.setEncoding(encoding);
    action.setMakePairs(makepairs);
    action.setArtifactsGenerationMode(mode);
    action.setOutputPattern(outputPattern);
    action.setOverwrite(overwrite);
    action.setSuperPkg(superpkg);
    action.setSuperTemplate(supertemplate);
    action.setTemplate(template);
    action.setEmbeddableSuperTemplate(embeddablesupertemplate);
    action.setEmbeddableTemplate(embeddabletemplate);
    action.setQueryTemplate(querytemplate);
    action.setQuerySuperTemplate(querysupertemplate);
    action.setUsePkgPath(usepkgpath);
    action.setCreatePropertyNames(createpropertynames);
    return action;
}
Also used : ClientClassGenerationAction(org.apache.cayenne.gen.ClientClassGenerationAction) ClassGenerationAction(org.apache.cayenne.gen.ClassGenerationAction) ClientClassGenerationAction(org.apache.cayenne.gen.ClientClassGenerationAction)

Example 2 with ClientClassGenerationAction

use of org.apache.cayenne.gen.ClientClassGenerationAction in project cayenne by apache.

the class CayenneGeneratorMojo method createGenerator.

/**
 * Factory method to create internal class generator. Called from
 * constructor.
 */
protected ClassGenerationAction createGenerator() {
    ClassGenerationAction action;
    if (client) {
        action = new ClientClassGenerationAction();
    } else {
        action = new ClassGenerationAction();
    }
    injector.injectMembers(action);
    action.setDestDir(destDir);
    action.setEncoding(encoding);
    action.setMakePairs(makePairs);
    action.setArtifactsGenerationMode(mode);
    action.setOutputPattern(outputPattern);
    action.setOverwrite(overwrite);
    action.setSuperPkg(superPkg);
    action.setSuperTemplate(superTemplate);
    action.setTemplate(template);
    action.setEmbeddableSuperTemplate(embeddableSuperTemplate);
    action.setEmbeddableTemplate(embeddableTemplate);
    action.setUsePkgPath(usePkgPath);
    action.setCreatePropertyNames(createPropertyNames);
    return action;
}
Also used : ClientClassGenerationAction(org.apache.cayenne.gen.ClientClassGenerationAction) ClassGenerationAction(org.apache.cayenne.gen.ClassGenerationAction) ClientClassGenerationAction(org.apache.cayenne.gen.ClientClassGenerationAction)

Aggregations

ClassGenerationAction (org.apache.cayenne.gen.ClassGenerationAction)2 ClientClassGenerationAction (org.apache.cayenne.gen.ClientClassGenerationAction)2